wscat --header "Authorization: $AUTH_HEADER" \
-c wss://ny.solana.dex.blxrbdn.com/ws --wait 1000 --execute '{"jsonrpc": "2.0", "id": 1, "method": "GetTickersStream", "params": {"market": "SOL/USDC"}}'
async for response in api.get_tickers_stream(market="SOLUSDC"):
print(response.to_json())
await provider.getTickersStream({
market: "SOLUSDC",
project: "P_OPENBOOK",
})
{
"method":"subscribe",
"params":{
"subscription":"06f37c6b-0117-4b45-a267-dbf91365773a",
"result":{
"slot":"141323628",
"ticker":{
"tickers":[
{
"market":"SOL/USDC",
"project": "P_SERUM",
"marketAddress":"9wFFyRfZBsuAha4YcuxcXLKwMxJR43S7fPfQLusDBzvT",
"bid":33.187,
"bidSize":5,
"ask":33.25,
"askSize":1598.9
}
]
}
}
},
"jsonrpc":"2.0"
}