Stream Tickers

This channel provides ticker data specified by the market. It will tick every time there were updates in the targeted market.

Subscribe

Parameters:

ParameterTypeDescription

markets

array

A list of Solana program addresses or market symbols.

Subscribe sample:

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"}}'

Sample event:

{
   "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"
}

Last updated