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
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
ticker | query | Ticker | false | The spot market ticker (BASE-QUOTE) to retrieve. If not provided, all are returned. |
market | query | Ticker | false | Alias of ticker. Only one of the two may be provided. |
limit | query | u32 | false | Maximum number of markets to return. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | SpotMarketMap | The spot markets data. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The market was not found. |