Grand Exchange

API for the Grand Exchange (marketplace).

class artifacts.api.grand_exchange.GrandExchangeAPI[source]

Bases: object

Grand Exchange public endpoints.

__init__(http)[source]
Parameters:

http (HttpClient)

async get_history(code, *, account=None, page=1, size=50)[source]

GET /grandexchange/history/{code}

Return type:

DataPage[GeOrderHistorySchema]

Parameters:
  • code (str)

  • account (str | None)

  • page (int)

  • size (int)

async get_orders(*, code=None, account=None, type=None, page=1, size=50)[source]

GET /grandexchange/orders

Return type:

DataPage[GEOrderSchema]

Parameters:
  • code (str | None)

  • account (str | None)

  • type (GEOrderType | None)

  • page (int)

  • size (int)

async get_order(id)[source]

GET /grandexchange/orders/{id}

Return type:

GEOrderSchema

Parameters:

id (str)