Miscellaneous
Get Token Pairs
GET /api/get_token_pairs
Get available trading pairs with metadata on available exchanges
Response
```json
{
"pairs": {
"JFI-USDC": {
"OKX": "JFI-USDC",
"MockExchange": "JFI-USDC"
},
"SHIBI-USDT": {
"Bybit": "SHIBIUSDT"
},
"ICX-USDC": {
"OKX": "ICX-USDC",
"MockExchange": "ICX-USDC"
},
...
}
}
``````json
{
"message": "Error message"
}
```Get Order Book
GET /api/get_order_book
Get snapshot of order book from exchange
Response
Get Order Form Data
GET /api/order_form_data
Data that is likely needed for an order form on the UI
Response
Validate Order Condition
POST /api/validate_order_condition/
Validate the correctness of the order condition syntax
Response
Get Funding Rate
GET /internal/marketdata/get_funding_rates
Returns current funding rates for perpetual futures contracts across all supported exchanges.
Response Body
exchange_pair
string
No
Unique identifier combining exchange and pair (e.g., "Binance#BTC", "Hyperliquid#ZETA"). Format: "{Exchange}#{BaseToken}"
last_updated
string (integer)
Yes
Timestamp when the funding rate was last updated, in milliseconds since epoch (UTC). This field may be absent for funding rates sourced from perp DEX exchanges (Paradex, Pacifica, Hyperliquid, Extended)
funding_rate_interval
string (integer)
No
Funding rate interval in hours (decimal as string). Common values: "1" (hourly), "4" (every 4 hours), "8" (every 8 hours). Indicates how frequently the funding rate is applied
exchange
string
No
Name of the exchange (e.g., "Binance", "Bybit", "OKX", "Bitget", "Hyperliquid", "Paradex", "Pacifica", "Extended")
pair
string
No
Base token symbol for the perpetual futures contract (e.g., "BTC", "ETH", "SOL", "ZETA")
rate
string (decimal)
No
Current funding rate as a percentage (decimal as string). Positive values indicate longs pay shorts; negative values indicate shorts pay longs. Example: "0.01" = 1%, "-0.00609876" = -0.609876%
Notes
Rate Format: The
ratefield is returned as a string (decimal) to preserve precision. The value represents a percentage (e.g., "0.01" = 1%, not 0.01%).Funding Rate Intervals: Different exchanges apply funding rates at different intervals:
Hourly (interval = "1"): Common for DEX exchanges like Hyperliquid, Paradex, Pacifica, Extended
Every 4 hours (interval = "4"): Common for Binance, Bitget, Bybit
Every 8 hours (interval = "8"): Common for OKX, Bybit, Bitget for certain pairs
Rate Direction:
Positive rates: Long positions pay funding fees to short positions
Negative rates: Short positions pay funding fees to long positions
Caching: This endpoint is cached for 300 seconds (5 minutes) to reduce load on the funding rate oracle.
Last updated
Was this helpful?