Get all instruments
List all instruments, optionally only active ones or only some kinds.
On this page
Agent prompt
Write a small program that calls `instrument.get_all_instruments` on Grvt {environment} {using}.
Target environment: {environment} (chain ID {chainId}). Recorded signing cases keep their original environment.
{executionGuidance}
Read this first: {origin}/bundle/reference/rpc/get_all_instruments.md (~53 KB, plain Markdown: this page plus the AGENTS.md rules, Errors and retries, Python SDK, Environments).
Fetch other pages from the index at {origin}/llms.txt only as you need them. {origin}/downloads/contract.json is a machine-readable contract for tools, not for reading.
Rules: follow AGENTS.md; do not send requests without the user asking you to; read credentials from environment variables; never retry writes automatically; show me the code and how to run it. URLs and generated code samples on this page: Testnet (chain ID 326). Other code on this page doesn't change: it stays on testnet until you switch it in your code. Tutorials, signing cases and live tools always use testnet.
| SDK | client. |
|---|---|
| HTTP | POST https:/, or / for lite names (the SDKs' default) |
| WebSocket | method v1/all_instruments on wss:/, or /ws/lite for lite names |
| Auth | None (public) |
| Retries | Read: the SDKs retry retryable errors (rules) |
| Contract id | instrument. (RPCGetAllInstrumentsV1) |
Request
Body type ApiGetAllInstrumentsRequest. Fields the server fills are left out.
- Fetch only active instruments
- The kind filter to apply. If empty, this defaults to PERPETUAL only. Otherwise, only entries matching the filter will be returned
6 values
Response
Body type ApiGetAllInstrumentsResponse (the same object is the JSON-RPC result over WebSocket).
List of instruments
- The instrument name, e.g.
BTC_USDT_Perp(perpetual),BTC_USDT_SFP(stable funding perp) orBTC_USDT_SpotSwap(spot swap). - The asset ID used for instrument signing.
- The base currency
- The quote currency
- The kind of instrument
6 values
- Venues that this instrument can be traded at
2 values
- The settlement period of the instrument
5 values
- The smallest denomination of the base asset supported by Grvt (+3 represents 0.001, -3 represents 1000, 0 represents 1)
- The smallest denomination of the quote asset supported by Grvt (+3 represents 0.001, -3 represents 1000, 0 represents 1)
- The size of a single tick. Decimal string, e.g. "0.1"; up to 9 decimals.
- The minimum contract size. Decimal string, e.g. "0.01"; up to the instrument's base_decimals.
- Creation time in unix nanoseconds
- The maximum position size. Decimal string, e.g. "0.01"; up to the instrument's base_decimals.
- Defines the funding interval to be applied.
- Funding rate cap over the defined
intervalHours. - Funding rate floor over the defined
intervalHours. - The minimum order notional value, in the quote asset. Decimal string, e.g. "12.5".
- The asset class of the underlying the instrument tracks
10 values
CRYPTO,EQUITY,COMMODITY,FX,INDEX,EQUITY_NASDAQ,EQUITY_NYSE,EQUITY_KRX,COMMODITY_CME,PRE_IPO(details). - The current lifecycle/trading status of the instrument
7 values
- The guaranteed exit band, expressed in percentage points
- The spread penalty tolerance, expressed in percentage points
- Timestamp in unix nanoseconds at which the funding cap adjustment applies
- The funding cap adjustment value, expressed as a decimal daily rate
- Stable perps only: the weekday whose daily funding charge covers 3 days (the weekend)
7 values
Errors
Errors come back as {"code", "message", "status"} (lite {"c", "m", "s"}) with the HTTP status. Codes this call can return (all error codes):
Example
Example code
from grvt import Grvt
with Grvt(env="testnet") as client:
resp = client.get_all_instruments()
print(resp)
Raw HTTP (set GRVT_DOMAIN, see Environments):
With full field names:
curl -sS "https://market-data.testnet.grvt.io/full/v1/all_instruments" \
-H "Content-Type: application/json" \
--data '{}'With lite field names:
curl -sS "https://market-data.testnet.grvt.io/lite/v1/all_instruments" \
-H "Content-Type: application/json" \
--data '{}'