Skip to main content
7 operations. See the market data guide for worked examples.

accountMarketStats

Query — returns list[AccountMarketStat]. List of all account market stats for a given account Parameters
NameGraphQL typeRequiredDescription
paginationPaginationNoThe pagination to use for the results.
filterStatsFilterNoOptional filter for returned Account Market Stats.
Example
result = client.accountMarketStats(params={"pagination": ..., "filter": ...}, selections=Selection(...))

geoFencingLicense

Query — returns LicenseResponse. Returns the Geo fencing license Example
result = client.geoFencingLicense(selections=Selection(...))

marketFilterTree

Query — returns MarketFilterTree. Returns a JSON string representation of the marketFilters (Name, [Children]). Example
result = client.marketFilterTree(selections=Selection(...))

marketInfos

Query — returns list[MarketInfo]. Returns a list of the markets and filtered details Parameters
NameGraphQL typeRequiredDescription
inputMarketInfosInputNoOptional list of IDs of the marketInfos to return
Example
result = client.marketInfos(params={"input": ...}, selections=Selection(...))

marketInfosWithCount

Query — returns MarketInfosWithCount. Returns a list of the markets and filtered details with the count of entries Parameters
NameGraphQL typeRequiredDescription
inputMarketInfosInputNoOptional list of IDs of the marketInfos to return
Example
result = client.marketInfosWithCount(params={"input": ...}, selections=Selection(...))

marketSettlements

Query — returns list[TransactionHistory]. List of all settlement for a given market Parameters
NameGraphQL typeRequiredDescription
marketIdrID!YesThe market id to restrict the settlements to.
paginationPaginationNoThe pagination to use for the results.
Example
result = client.marketSettlements(params={"marketId": ..., "pagination": ...}, selections=Selection(...))

tradesForSettlement

Query — returns SettlementTrades. Opening and closing Trades for given settlement_id Parameters
NameGraphQL typeRequiredDescription
settlementIdrID!YesThe id of the settlement to find the trades for.
Example
result = client.tradesForSettlement(params={"settlementId": ...}, selections=Selection(...))