For the complete documentation index, see llms.txt. This page is also available as Markdown.

OpenAPI Reference

OpenAPI v1 — Public market data, account positions, trade history, token metadata, protocol statistics, liquidation records, and current funding rates. All financial fields are returned as decimal string values. Price and position-related fields use 6-decimal precision.

Get all available trading markets

get
/v1/markets

Returns a list of all available trading markets with real-time prices, 24h trading volume, current open interest, and position fee rates. WBTC and WETH names are displayed as BTC and ETH.

Query parameters
statusinteger · enumOptional

Filter by market status. 1=Delisted (no longer tradable), 2=Listed (actively trading), 3=Pending delist (will be removed soon)

Possible values:
is_memebooleanOptional

Set to true to return only meme coins

is_tradfibooleanOptional

Set to true to return only TradFi assets (stocks and metals)

Responses
200

List of trading markets

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/markets
200

List of trading markets

Get account open positions

get
/v1/account/positions

Returns the current open positions for the specified wallet address. Supports pagination up to 100 records per page, with a maximum of 10,000 total accessible records. All size, collateral, and fee values use 6-decimal precision.

Query parameters
accountstringRequired

Wallet address to query positions for

index_tokenstringOptional

Filter by index token contract address

is_longbooleanOptional

Set to true for long positions, false for short positions

page_indexinteger · min: 1Optional

Page number, starting from 1

Default: 1
page_sizeinteger · min: 1 · max: 100Optional

Number of records per page (max 100)

Default: 20
Responses
200

List of open positions

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/account/positions

Get account trade history

get
/v1/trades

Returns the trade history (both open and close positions) for the specified wallet address. Each record is either an 'increase' (opening) or 'decrease' (closing) trade. Supports filtering by time range and trade type. All financial fields use 6-decimal precision.

Query parameters
accountstringRequired

Wallet address to query trade history for

index_tokenstringOptional

Filter by index token contract address

trade_typestring · enumOptional

Filter by trade direction. 'increase' = opening positions, 'decrease' = closing positions. Omit to return both.

Possible values:
from_timestampintegerOptional

Start of time range filter (Unix timestamp in seconds)

to_timestampintegerOptional

End of time range filter (Unix timestamp in seconds)

page_indexinteger · min: 1Optional

Page number, starting from 1

Default: 1
page_sizeinteger · min: 1 · max: 100Optional

Number of records per page (max 100)

Default: 20
Responses
200

List of trade records

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/trades

Get latest token prices

get
/v1/prices

Returns the latest real-time price and 24-hour statistics (high, low, change) for all listed tokens. Prices use 6-decimal precision (multiplied by 1e6).

Query parameters
index_tokenstringOptional

Filter by index token contract address

symbolstringOptional

Filter by token display symbol (e.g., BTC, ETH, SOL)

Responses
200

List of token prices

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/prices
200

List of token prices

Get all supported tokens

get
/v1/tokens

Returns metadata for all supported tokens including contract address, display name, decimals, trading attributes, coin type classification, and current fee rate. WBTC and WETH names are displayed as BTC and ETH.

Query parameters
statusinteger · enumOptional

Filter by token status. 1=Delisted, 2=Listed, 3=Pending delist

Possible values:
is_memebooleanOptional

Set to true to return only meme coins

is_tradfibooleanOptional

Set to true to return only TradFi assets (stocks and metals)

Responses
200

List of supported tokens

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/tokens
200

List of supported tokens

Get protocol statistics

get
/v1/stats

Returns aggregated protocol-wide statistics including trading volume, fees, revenue, open interest, TVL, fund pool data, and unique trader count. All financial fields use 6-decimal precision. Unique traders is an integer count.

Query parameters
from_timestampintegerOptional

Start of time range filter (Unix timestamp in seconds)

to_timestampintegerOptional

End of time range filter (Unix timestamp in seconds)

Responses
200

Protocol statistics

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/stats
200

Protocol statistics

Get account liquidation history

get
/v1/liquidations

Returns liquidation records for the specified wallet address. Each record includes liquidation type: type 2 or 3 indicates normal liquidation events, type 4 indicates forced closure due to coin delisting, and type 5 indicates ADL (Auto-Deleveraging) events. All financial fields use 6-decimal precision.

Query parameters
accountstringRequired

Wallet address to query liquidation history for

index_tokenstringOptional

Filter by index token contract address

is_longbooleanOptional

Set to true for long positions, false for short positions

from_timestampintegerOptional

Start of time range filter (Unix timestamp in seconds)

to_timestampintegerOptional

End of time range filter (Unix timestamp in seconds)

page_indexinteger · min: 1Optional

Page number, starting from 1

Default: 1
page_sizeinteger · min: 1 · max: 100Optional

Number of records per page (max 100)

Default: 20
Responses
200

List of liquidation records

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/liquidations

Get current position fee rates

get
/v1/funding_rates

Returns the current position fee rate (in basis points) for each listed token. The fee rate represents the cost to open a position, expressed in bps where 1 bps = 0.01%. Returns all listed tokens when no filter is specified.

Query parameters
index_tokenstringOptional

Filter by index token contract address. Omit to return fee rates for all listed tokens.

Responses
200

List of current fee rates

application/json
codeintegerOptional

Response status code. 0 = success

msgstringOptional

Response message. 'success' on success

get
/v1/funding_rates
200

List of current fee rates

Last updated