Skip to content

Get Spot Markets

Retrieves spot markets. See Spot Markets for how they differ from perpetual markets.

Method Declaration

TypeScript
async getSpotMarkets(market?: string, limit?: number | null): Promise<SpotMarketsResponse>

Parameters

ParameterLocationTypeRequiredDescription
tickerqueryTickerfalseThe spot market ticker (BASE-QUOTE) to retrieve. If not provided, all are returned.
marketqueryTickerfalseAlias of ticker. Only one of the two may be provided.
limitqueryu32falseMaximum number of markets to return.

Response

StatusMeaningSchemaDescription
200OKSpotMarketMapThe spot markets data.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe market was not found.
API Example