Trades
List Markets
Changed onReturns every market you can trade on Whop.
- Spot: listed by symbol: BTC, ETH, SOL and XAUT (gold).
- Perpetuals: such as BTC. Send the id as market when you create a trade.
The same symbol can appear twice, once as a perpetual and once as spot, so use id together with instrument_type to tell them apart. Results are sorted by id, then instrument_type.
This endpoint is public: no API key is needed, and each IP address can make up to 60 requests a minute.
get/trades/markets
Request
- Base URLhttps://api.whop.com/api/v1
- URLhttps://api.whop.com/api/v1/trades/markets
- Authnone required
Query parameters
instrument_type'perpetual' | 'spot'
Only return perpetuals or only spot markets.
firstinteger
Number of results to return from the start of the range.
afterstring
Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.
lastinteger
Number of results to return from the end of the range.
beforestring
Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.
Response
markets listed
Example response
{
"data": [
{
"id": "BTC",
"instrument_type": "perpetual",
"max_leverage": 40,
"price": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"size_decimals": 5
}
],
"page_info": {
"start_cursor": "MQ"
}
}Changes
- info
endpoint added
- info