Skip to main content

GET /api/v1/ws/assets/{symbol}/price

WebSocket endpoint that streams live cryptocurrency price updates for a given asset symbol.

Authentication​

None. This is a public WebSocket endpoint.

Connection​

Path Parameters​

ParameterTypeRequiredDescription
symbolstringYesAsset symbol (e.g., BTCUSDT, ETHUSDT, SOLUSDT)
wscat -c wss://intotes.com/api/v1/ws/assets/BTCUSDT/price

Or in JavaScript:

const ws = new WebSocket("wss://intotes.com/api/v1/ws/assets/BTCUSDT/price");

ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log(data);
};

Messages​

Price Update​

The server sends price updates as they occur:

{
"type": "price_update",
"symbol": "BTCUSDT",
"price": 84532.17
}

Field Reference​

FieldTypeDescription
typestringAlways "price_update"
symbolstringAsset symbol matching the subscription
pricenumberCurrent price in USD

Supported Symbols​

SymbolAsset
BTCUSDTBitcoin
ETHUSDTEthereum
SOLUSDTSolana

Connection Notes​

  • The server sends ping frames periodically. Clients should respond with pong to keep the connection alive.
  • If the connection drops, clients should implement reconnection logic with exponential backoff.
  • Price updates are typically sent every few seconds as the underlying price changes.
  • No client-to-server messages are expected.