Last updated
Last updated
This Websocket API provides information for the following trading markets:
Before you begin, install the following dependencies:
This documentation explains how to connect and receive data from the WebSocket streams: You can connect order book stream using client initialization code in TypeScript.
Order Book Stream :
Example Request:
wss://perps-sdk-ws.kanalabs.io/wsOrderBook/marketId=301
Here is the steps to initialize the client code in typescript :
Example code to fetch the Order Book Client Initialization Code:
Overview of supported trading markets and installation prerequisites for using the Websocket API.
Asset
Market ID
Description
APT/USDC
301
Aptos-based trading market.
BTC/USDC
302
Bitcoin-based trading market.
ETH/USDC
303
Ethereum-based trading market.