Trading API

Everything beyond inference. Read instrument specs, market data, balances, and past trades, or place limit orders yourself instead of letting Auto Mode buy on your behalf.

The Trading API exposes everything beyond inference: instrument specifications, market data, balances, past trades, transfers, and direct order placement. You call it to read the state of your account, look up an instrument's spec, or place a limit order yourself instead of letting Auto Mode buy on your behalf.

For the canonical instrument catalog and the spec each instrument is benchmarked against, see Current instruments. For Auto Mode versus Advanced Mode and when to use each, see Auto Mode vs Advanced Mode.

Base URL: https://trading.api.thegrid.ai/v1

Authentication uses Ed25519-signed requests with the headers x-thegrid-signature, x-thegrid-timestamp, and x-thegrid-fingerprint. See Authentication for the signing scheme and keypair generation.

Instruments

Instrument specifications, including which models qualify, the Quality Score floor, and supplier conditions. See Current instruments for the human-readable catalog.

List instruments

get

Lists all available instruments with optional filtering and sorting.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
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
order_bystring · enumOptional

Field to sort by

Possible values:
order_directionstring · enumOptional

Sort direction

Possible values:
symbolstringOptional

Filter by exact symbol match (e.g., "text-prime")

instrument_typestring · enumOptional

Filter by instrument type

Possible values:
statusstring · enumOptional

Filter by status

Possible values:
Responses
chevron-right
200

List of instruments

application/json
get
/instruments
200

List of instruments

Get instrument details

get

Gets a specific instrument by its ID. Returns full instrument details including trading parameters and AI specifications.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
instrument_idstringRequired

Unique identifier for the instrument (e.g., "instrument_c18a986c-522b-475a-b319-f2d0ba04a64d")

Responses
chevron-right
200

Instrument details

application/json
get
/instruments/{instrument_id}

Markets

A market is a tradable pair: an instrument quoted in a currency. Each instrument has one market. These endpoints expose ticker, depth, and recent trades.

List markets

get

Returns markets with instrument details.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Responses
chevron-right
200

List of markets

application/json
get
/markets
200

List of markets

Get market details

get

Returns market details with instruments.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 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_20536b70-3b9a-44be-aa50-3cd72d1ab8dd")

Responses
chevron-right
200

Market details

application/json
get
/markets/{market_id}

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:

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 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_20536b70-3b9a-44be-aa50-3cd72d1ab8dd")

Responses
chevron-right
200

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

application/json
get
/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:

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 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_20536b70-3b9a-44be-aa50-3cd72d1ab8dd")

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
/markets/{market_id}/orderbook
200

Order book data

Get market trades

get

Returns all 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:

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 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_20536b70-3b9a-44be-aa50-3cd72d1ab8dd")

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
/markets/{market_id}/trades
200

Recent trades

Orders

Place market and limit orders, list your open orders, fetch a single order, or cancel one. For when to operate at this level versus letting Auto Mode handle it, see Auto Mode vs Advanced Mode.

List trader's orders

get

Returns the authenticated trader's orders using Ed25519 signature authentication.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
market_idstringOptional

Filter by market ID

trader_idstringOptional

Filter by trader ID

instrument_idstringOptional

Filter by instrument ID

sidestring · enumOptional

Filter by order side

Possible values:
statusstring · enumOptional

Filter by order status

Possible values:
start_datetimestring · date-timeOptional

Filter orders submitted at or after this time (ISO8601 or Unix timestamp)

end_datetimestring · date-timeOptional

Filter orders submitted at or before this time (ISO8601 or Unix timestamp)

order_bystring · enumOptional

Field to sort by (quantity is alias for original_quantity)

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

List of orders

application/json
get
/orders

Place order

post

Create a new order using Ed25519 signature authentication.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Body
market_idstringRequired

Market identifier where the order will be placed

Example: market_20536b70-3b9a-44be-aa50-3cd72d1ab8dd
client_order_idstring · nullableOptional

Optional client-provided order ID for idempotency. Must be unique per account. Duplicate IDs will return a 422 error with message "client_order_id already exists".

Example: order_ZVFOAGG4JWRNXMCK
sidestring · enumRequired

Order side: "buy" to purchase the instrument, "sell" to sell. Value is normalized to lowercase.

Example: buyPossible values:
typestring · enumRequired

Order type: "limit" executes at specified price or better, "market" executes immediately at best available price. Value is normalized to lowercase.

Example: limitPossible values:
pricestringOptional

Price per unit in quote currency (USD). Required for limit orders, must be omitted for market orders. Must be a positive number >= 0.0001 with at most 4 decimal places (tick size).

Example: 45.50
quantityinteger · min: 1 · max: 100Required

Number of units to buy or sell. Must be a positive integer, maximum 100 per order.

Example: 100
time_in_forcestring · enumOptional

Order duration policy. Value is normalized to lowercase.

  • gtc (Good Till Cancelled): Order remains active until completely filled or manually cancelled
  • ioc (Immediate Or Cancel): Order executes immediately for available quantity, remainder is cancelled
  • fok (Fill Or Kill): Order must be completely filled immediately or entirely cancelled
  • day: Order expires at the end of the trading day if not filled
Default: gtcExample: gtcPossible values:
Responses
post
/orders

Get order details

get

Returns details of a specific order.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
order_idstringRequired

Unique identifier for the order (e.g., "order_TT64AI5BZNLKUFTL")

Responses
chevron-right
200

Order details

application/json
get
/orders/{order_id}

Cancel order

delete

Cancel an order using Ed25519 signature authentication.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
order_idstringRequired

Unique identifier for the order (e.g., "order_TT64AI5BZNLKUFTL")

Responses
delete
/orders/{order_id}

No content

Trades

Your filled trades, paginated.

Get user's trade history

get

Get your trade history (fills). Results are always the authenticated user's trades. Use the order_id filter to limit results to trades for a specific order (the user's order associated with each trade, as returned in the response order_id field).

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
market_idstringOptional

Filter by market ID

instrument_idstringOptional

Filter by instrument ID

trade_idstringOptional

Filter by trade ID

order_idstringOptional

Filter by the user's order ID associated with the trade (canonical filter for "my" trades). Matches the order_id field returned on each trade.

statusstringOptional

Filter by trade status

buyer_order_idstringOptional

Filter by buyer's order ID (legacy; prefer order_id for user's trades)

seller_order_idstringOptional

Filter by seller's order ID (legacy; prefer order_id for user's trades)

triggering_order_idstringOptional

Filter by the order that triggered the trade (legacy; prefer order_id for user's trades)

start_datetimestring · date-timeOptional

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

end_datetimestring · 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 items to return per page (max: 100)

Default: 50
Responses
chevron-right
200

List of trades

application/json
get
/trades
200

List of trades

Get single trade

get

Returns a single trade with metadata.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
trade_idstringRequired

Unique identifier for the trade (e.g., "trade_d7b40819-0ea6-428b-b00c-deb559206cb7")

Responses
chevron-right
200

Trade details

application/json
get
/trades/{trade_id}

Accounts

You hold three account types: Consumption accounts (token balances per instrument, drawn down by inference calls), Trading accounts (token balances per instrument, used to place orders), and Currency Trading accounts (your USD balance for funding orders). These endpoints expose all three.

List consumption accounts

get

View your consumption accounts by instrument, including balances and tokens used.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
account_idstringOptional

Filter by account ID

instrument_idstringOptional

Filter by instrument ID

statusstring · enumOptional

Filter by account status

Possible values:
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

Consumption accounts

application/json
get
/consumption-accounts
200

Consumption accounts

Get consumption account details

get

Get detailed information about a specific consumption account.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
account_idstringRequired

Unique identifier for the consumption account (e.g., "consumption_account_534f6f09e051a1e2")

Responses
chevron-right
200

Consumption account details

application/json
get
/consumption-accounts/{account_id}

List trading account balances

get

List all trading account balances across instruments.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
account_idstringOptional

Filter by account ID

market_idstringOptional

Filter by market ID

instrument_idstringOptional

Filter by instrument ID

statusstring · enumOptional

Filter by account status

Possible values:
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

List of trading accounts

application/json
get
/trading-accounts
200

List of trading accounts

Get trading account details

get

Get detailed information about a specific trading account.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
account_idstringRequired

Unique identifier for the trading account (e.g., "trading_account_86e1fd9b00bac94c")

Responses
chevron-right
200

Trading account details

application/json
get
/trading-accounts/{account_id}

List currency trading accounts

get

List all currency trading accounts (USD, etc.).

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
user_idstringOptional

Filter by user ID

account_idstringOptional

Filter by account ID

currencystringOptional

Filter by currency (e.g., "USD")

statusstring · enumOptional

Filter by account status

Possible values:
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

List of currency trading accounts

application/json
get
/currency-trading-accounts
200

List of currency trading accounts

Get currency account details

get

Get specific currency trading account details.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Path parameters
account_idstringRequired

Unique identifier for the currency trading account (e.g., "currency_trading_account_cd2f277756f2ae60")

Responses
chevron-right
200

Currency account details

application/json
get
/currency-trading-accounts/{account_id}

Transfers

Transfers move tokens from a Trading account to a Consumption account. They are one-way and final: once tokens land in a Consumption account, they can only be drawn down by inference calls.

Transfer to consumption

post

Transfers a specified quantity of an instrument from trading account to consumption account.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Body
instrument_idstringRequired

The instrument to transfer from your trading account to your consumption account

Example: instrument_c18a986c-522b-475a-b319-f2d0ba04a64d
quantityinteger · min: 1Required

Number of units to transfer. Must have sufficient available balance in your trading account.

Example: 100
Responses
post
/transfers/trading-to-consumption
202

Transfer initiated (processed asynchronously)

List transfer history

get

Returns transfer histories for authenticated user.

Authorizations
x-thegrid-signaturestringRequired

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

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 hash of your public key (Base64-encoded, padding stripped)

See full authentication docs

Query parameters
market_idstringOptional

Filter by market ID

instrument_idstringOptional

Filter by instrument ID

start_datetimestring · date-timeOptional

Filter transfers at or after this time (ISO8601 or Unix timestamp)

end_datetimestring · date-timeOptional

Filter transfers 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 items to return per page (max: 100)

Default: 50
Responses
chevron-right
200

Transfer history

application/json
get
/transfer-histories
200

Transfer history

Price histories

Time-series OHLCV data for instruments.

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:

HeaderDescription
x-thegrid-signatureBase64-encoded Ed25519 signature of {timestamp}{METHOD}{path}{body}
x-thegrid-timestampUnix timestamp in seconds (must be within 30 seconds of server time)
x-thegrid-fingerprintSHA256 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
/price-histories

Where next

Last updated

Was this helpful?