Websocket Stream
Last updated
Last updated
The WebSocket connection enables full-duplex communication between the client and the server, allowing data to be transmitted quickly in both directions.
Base URL for the WebSocket : wss://stream.jayxstaging.com:8443
kline Event: kline Message:
{ "category": "spot", "symbol": "BTCUSDT", "interval": "60" }
Response Parameters
Response Example
orderbook
Event: orderbook
Message: { "category": "spot", "symbol": "BTCUSDT", "precise": "1" }
Response Parameters
Response Example
positions Event: positions Message:
{ "apiKey": "clmsionk21ru", "category": "spot" }
Response Parameters
Response Example
openorders
Event: openorders
Message:
{ "apiKey": "clmsionk21ru", "category": "spot", "symbol": "BTCUSDT" }
Response Parameters
Response Example
Parameter
Comments
_id
Unique identifier for the K-Line data entry
symbol
The trading pair symbol (e.g., BTCUSDT for Bitcoin/USDT)
o
Open price of the K-Line.
h
High price of the K-Line.
l
Low price of the K-Line.
c
Close price of the K-Line
v
Volume traded during the K-Line period.
m
The timestamp of the last modification
Parameter
Comments
orderBook
Object containing asks
and bids
arrays
asks
Array of ask orders
bids
Array of bid orders
lots
Tick size of the order
count
Count of the orders
trades
Array of trade orders
lots
Lot size of the trade
ticks
Tick size of the trade
side
Side of the trade (e.g., BUY, SELL)
created
Timestamp when the trade was created
Parameter
Comments
spot
Array of position objects
asset
The asset name (e.g., BTC for Bitcoin)
balance
The total balance of the asset
available
The available balance of the asset for trading
Parameter
Comments
id
Unique identifier for the order
symbol
The trading pair symbol (e.g., BTCUSDT for Bitcoin/USDT)
type
Type of the order (e.g., LIMIT, MARKET)
state
State of the order (e.g., NEW, CANCELED)
side
Side of the order (e.g., BUY, SELL)
resd
Reserved size
exec
Executed size
cost
Cost of the order
created
Timestamp when the order was created
modified
Timestamp when the order was last modified
price
Price of the order
quantity
Quantity of the order