GET /info
Returns comprehensive information about all available markets and tokens.
Request
curl https://zo-mainnet.n1.xyz/infoResponse
{
"markets": [
{
"marketId": 0,
"symbol": "BTCUSD",
"baseTokenId": 0,
"quoteTokenId": 1,
"priceDecimals": 1,
"sizeDecimals": 4,
"minSize": "0.0001",
"tickSize": "0.1"
}
],
"tokens": [
{
"tokenId": 1,
"symbol": "USDC",
"decimals": 6,
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}
]
}Response Fields
Market Object
| Field | Type | Description |
|---|---|---|
marketId | number | Unique market identifier |
symbol | string | Trading pair symbol (e.g., “BTCUSD”) |
baseTokenId | number | Token ID of the base asset |
quoteTokenId | number | Token ID of the quote asset |
priceDecimals | number | Decimal precision for prices |
sizeDecimals | number | Decimal precision for order sizes |
minSize | string | Minimum order size |
tickSize | string | Minimum price increment |
Token Object
| Field | Type | Description |
|---|---|---|
tokenId | number | Unique token identifier |
symbol | string | Token symbol (e.g., “USDC”) |
decimals | number | Token decimal precision |
mint | string | Solana mint address |
Example: Python
import requests
response = requests.get("https://zo-mainnet.n1.xyz/info")
data = response.json()
for market in data["markets"]:
print(f"Market {market['marketId']}: {market['symbol']}")Last updated on