Markets

Market information, statistics, and orderbook data

List markets

get

Returns markets with instrument details.

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Responses
chevron-right
200

List of markets

application/json
get
/trading/markets
200

List of markets

Get market ticker

get

Get current ticker data including best bid/ask, last price, and 24h volume.

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
market_idstringRequired

Unique identifier for the market (e.g., "market_CHAT-PRIME_USD")

Responses
chevron-right
200

Ticker data including last trade, bid/ask, and 24h volume

application/json
get
/trading/markets/{market_id}/ticker

Get order book

get

Get the order book (depth of market) for a specific market.

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
market_idstringRequired

Unique identifier for the market (e.g., "market_CHAT-PRIME_USD")

Query parameters
depthinteger · min: 1 · max: 100Optional

Maximum number of price levels to return per side (bids and asks). Default: 10. Use lower values for quick price checks, higher values for detailed market depth analysis.

Default: 10
Responses
chevron-right
200

Order book data

application/json
get
/trading/markets/{market_id}/orderbook
200

Order book data

Get market trades

get

Returns public trades for a specific market (not scoped to authenticated user).

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
market_idstringRequired

Unique identifier for the market (e.g., "market_CHAT-PRIME_USD")

Query parameters
statusstringOptional

Filter by trade status

sidestring · enumOptional

Filter by taker side

Possible values:
min_quantityintegerOptional

Filter trades with quantity >= this value

max_quantityintegerOptional

Filter trades with quantity <= this value

min_pricestringOptional

Filter trades with price >= this value

max_pricestringOptional

Filter trades with price <= this value

start_datestring · date-timeOptional

Filter trades executed at or after this time (ISO8601 or Unix timestamp)

end_datestring · date-timeOptional

Filter trades executed at or before this time (ISO8601 or Unix timestamp)

order_bystring · enumOptional

Field to sort by

Possible values:
order_directionstring · enumOptional

Sort direction

Default: ascPossible values:
nextstringOptional

Cursor for forward pagination. Pass the next_cursor value from a previous response to fetch the next page. Mutually exclusive with prev.

prevstringOptional

Cursor for backward pagination. Pass the prev_cursor value from a previous response to fetch the previous page. Mutually exclusive with next.

limitinteger · max: 100Optional

Number of trades to return (max: 100)

Default: 50
Responses
chevron-right
200

Recent trades

application/json
get
/trading/markets/{market_id}/trades
200

Recent trades

Get market details

get

Returns market details with instruments.

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
market_idstringRequired

Unique identifier for the market (e.g., "market_CHAT-PRIME_USD")

Responses
chevron-right
200

Market details

application/json
get
/trading/markets/{market_id}

Get price history (OHLCV)

get

Returns OHLCV (Open, High, Low, Close, Volume) candle data for charting. Use this endpoint to build price charts and analyze historical market data.

Authorizations
x-thegrid-signaturestringRequired

Ed25519 signature authentication. All three headers are required for every request:

Header Description
x-thegrid-signature Base64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestamp Unix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprint SHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
market_idstringOptional

Filter by market ID

resolutionstring · enumOptional

Candle resolution/timeframe. Determines the time period each candle represents.

Possible values:
fromintegerOptional

Start of time range (Unix timestamp in seconds)

tointegerOptional

End of time range (Unix timestamp in seconds)

order_bystring · enumOptional

Field to sort by

Possible values:
order_directionstring · enumOptional

Sort direction

Default: ascPossible values:
nextstringOptional

Cursor for forward pagination. Pass the next_cursor value from a previous response to fetch the next page. Mutually exclusive with prev.

prevstringOptional

Cursor for backward pagination. Pass the prev_cursor value from a previous response to fetch the previous page. Mutually exclusive with next.

limitinteger · max: 100Optional

Number of items to return per page (max: 100)

Default: 50
Responses
chevron-right
200

OHLCV candle data

application/json
get
/trading/price-histories

Last updated

Was this helpful?