Orders
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) |
Filter by market ID
Filter by trader ID
Filter by instrument ID
Filter by order side
Filter by order status
Filter orders submitted at or after this time (ISO8601 or Unix timestamp)
Filter orders submitted at or before this time (ISO8601 or Unix timestamp)
Field to sort by
Sort direction
ascPossible values: Cursor for forward pagination. Pass the next_cursor value from a previous response to fetch the next page. Mutually exclusive with prev.
Cursor for backward pagination. Pass the prev_cursor value from a previous response to fetch the previous page. Mutually exclusive with next.
Number of items to return per page (max: 100)
50List of orders
Rate limit exceeded - Too many requests in the current time window
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) |
Market identifier where the order will be placed
market_CHAT-PRIME_USDOptional 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".
my-order-123Order side: "buy" to purchase the instrument, "sell" to sell. Value is normalized to lowercase.
buyPossible values: Order type: "limit" executes at specified price or better, "market" executes immediately at best available price. Value is normalized to lowercase.
limitPossible values: 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).
45.50Number of units to buy or sell. Must be a positive integer, maximum 100 per order.
100Order duration policy. Value is normalized to lowercase.
gtc(Good Till Cancelled): Order remains active until completely filled or manually cancelledioc(Immediate Or Cancel): Order executes immediately for available quantity, remainder is cancelledfok(Fill Or Kill): Order must be completely filled immediately or entirely cancelledday: Order expires at the end of the trading day if not filled
gtcExample: gtcPossible values: Order created
Invalid order parameters
Unauthorized - Invalid or missing authentication headers
Validation error - Request parameters failed validation
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) |
Unique identifier for the order (e.g., "order_TT64AI5BZNLKUFTL")
Order details
Not found - The requested resource does not exist
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) |
Unique identifier for the order (e.g., "order_TT64AI5BZNLKUFTL")
Order cancelled successfully
Not found - The requested resource does not exist
Order already cancelled
No content
Last updated
Was this helpful?