tickers/{market}
Request
Method:
GET ./api/v2/openbook/tickers/{market}
Parameters:
Parameter
Type
Description
market
array
OPTIONAL. A list of Openbook market account addresses or market symbols.
Request example:
Request (single)
curl --header "Authorization: $AUTH_HEADER" \
'https://nysolana.dex.blxrbdn.com/api/v2/openbook/tickers/SOLUSDC'Request (all)
curl --header "Authorization: $AUTH_HEADER" \
'http://ny.solana.dex.blxrbdn.com/api/v2/openbook/tickers/'Request (single)
wscat --header "Authorization: $AUTH_HEADER"
-c wss://ny.solana.dex.blxrbdn.com/ws --execute '{"jsonrpc": "2.0", "id": 1, "method": "GetTickers", "params": {"market": "SOLUSDC"}}'Request (all)
wscat --header "Authorization: $AUTH_HEADER"
-c wss://ny.solana.dex.blxrbdn.com/ws --execute '{"jsonrpc": "2.0", "id": 1, "method": "GetTickers", "params":{}}'//Make sure to set environment variable AUTH_HEADER.
tickers, err := g.GetTickers(context.Background(), "ETH/USDT") Request (single)
#Make sure to set environment variable AUTH_HEADER.
await api.get_tickers(market="SOLUSDC")Request (all)
#Make sure to set environment variable AUTH_HEADER.
await api.get_tickers()await provider.getTickers({
market: "SOLUSDC",
project: "P_OPENBOOK",
})Response:
Field:
Field
Description
tickers
See below for individual markets.
Tickers:
Field
Description
market
Symbol of the market.
marketAddress
Smart contract address for the market.
bid
Best bid price
bidSize
Best bid size
ask
Best ask price
askSize
Best ask size
Example:
{
"tickers": [
{
"market": "SOL/USDC",
"marketAddress": "8BnEgHoWFysVcuFFX7QztDmzuH8r5ZFvyP3sYwn1XTh6",
"bid": 26.284,
"bidSize": 21.784,
"ask": 26.291,
"askSize": 37.52
}
]
}Last updated