Auction Feed
The Auction Feed provides real-time auction data for markets with auctions enabled.
Two topics are available:
noii- Net Order Imbalance Indicator (NOII) updates. Available during the Lockdown phase only, providing periodic snapshots of indicative clearing price, imbalance direction/quantity, and matched volume. A finalCROSSevent is sent when the auction cross completes.phase- Auction phase transition notifications. Sends events when the auction starts (AUCTION_STARTED), enters lockdown (AUCTION_LOCKDOWN), is postponed (AUCTION_CROSS_POSTPONED), or completes (AUCTION_CROSS_COMPLETED).
/trading-api/v1/market-data/auction
Operations
SEND/trading-api/v1/market-data/auction
Subscribe
Multiple subscriptions could be opened within the same websocket.
The auction data of different markets to be subscribed are controlled by the parameters in the subscription message listed below.
Two topics are available:
noii— Net Order Imbalance Indicator updates (available during Lockdown phase only)phase— Auction phase transition notifications
Accepts the following message:
Let you subscribe to a given topic
Examples
{
"method": "subscribe",
"jsonrpc": "2.0",
"id": "1",
"type": "command",
"params": {
"topic": "noii",
"symbol": "BTCUSDC"
}
}
This example has been generated automatically.
RECEIVE/trading-api/v1/market-data/auction
After subscribing, the server sends an acknowledgement, followed by a snapshot and incremental updates for each subscribed topic.
Sends the following message:
Confirm the topic being subscribed
Examples
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"responseCodeName": "OK",
"responseCode": "200",
"message": "Successfully subscribed (noii BTCUSDC)"
}
}
This example has been generated automatically.
RECEIVE/trading-api/v1/market-data/auction
In case of invalid subscription message, an error rejection would be sent.
Sends the following message:
Explain why the topic could not be subscribed
Examples
{
"jsonrpc": "2.0",
"id": "1",
"error": {
"code": "-32602",
"errorCode": "29013",
"errorCodeName": "'abcde' is not a valid topic"
}
}
This example has been generated automatically.
SEND/trading-api/v1/market-data/auction
Keepalive
In case nothing is subscribed to, keep the websocket connection alive.
Accepts the following message:
Examples
{
"method": "keepalivePing",
"params": {},
"jsonrpc": "2.0",
"id": "1",
"type": "command"
}
This example has been generated automatically.
RECEIVE/trading-api/v1/market-data/auction
Acknowledgement returned by the server in response to a keepalive-ping.
Sends the following message:
Examples
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"responseCodeName": "OK",
"responseCode": 200,
"message": "Keep alive pong"
}
}
This example has been generated automatically.
SEND/trading-api/v1/market-data/auction
Unsubscribe
Closes every open subscription matching the given topic and symbol, while keeping your websocket opened.
Accepts the following message:
Let you unsubscribe to a given topic
Examples
{
"method": "unsubscribe",
"jsonrpc": "2.0",
"id": "1",
"type": "command",
"params": {
"topic": "noii",
"symbol": "BTCUSDC"
}
}
This example has been generated automatically.
RECEIVE/trading-api/v1/market-data/auction
After unsubscribing, the server sends an acknowledgement.
Sends the following message:
Confirm the topic being unsubscribed
Examples
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"responseCodeName": "OK",
"responseCode": 200,
"message": "Successfully unsubscribed"
}
}
This example has been generated automatically.
RECEIVE/trading-api/v1/market-data/auction
In case of invalid unsubscription message, an error rejection would be sent.
Sends the following message:
Explain why the topic could not be unsubscribed
Examples
{
"jsonrpc": "2.0",
"id": "1",
"error": {
"code": "-32602",
"errorCode": "29013",
"errorCodeName": "'abcde' is not a valid topic"
}
}
This example has been generated automatically.
Sends one of the following messages:
- #1NOII Snapshot
Initial NOII state on subscribe
objectExamples
{"type": "snapshot","dataType": "V1TANoii","data": [{"auctionId": "string","eventType": "UPDATE","symbol": "BTCUSDC","timestamp": "string","clearingPrice": "string","farPrice": "string","referencePrice": "string","imbalanceDirection": "BUY","imbalanceQuantity": "string","pairedQuantity": "string"}]}This example has been generated automatically.
- #2NOII Update
Net Order Imbalance Indicator update during lockdown or cross result
objectExamples
{"type": "update","dataType": "V1TANoii","data": {"auctionId": "string","eventType": "UPDATE","symbol": "BTCUSDC","timestamp": "string","clearingPrice": "string","farPrice": "string","referencePrice": "string","imbalanceDirection": "BUY","imbalanceQuantity": "string","pairedQuantity": "string"}}This example has been generated automatically.
Sends one of the following messages:
- #1Phase Snapshot
Initial auction phase state on subscribe
objectExamples
{"type": "snapshot","dataType": "V1TAAuctionPhase","data": [{"auctionId": "string","eventType": "AUCTION_STARTED","phase": "ACCUMULATION","symbol": "BTCUSDC","timestamp": "string","startTime": "string","lockdownTime": "string","scheduledCrossTime": "string","createAuctionOrderEnabled": true,"amendAuctionOrderEnabled": true,"cancelAuctionOrderEnabled": true,"message": "string","createdAt": "string","updatedAt": "string"}]}This example has been generated automatically.
- #2Phase Update
Auction phase transition notification
objectExamples
{"type": "update","dataType": "V1TAAuctionPhase","data": {"auctionId": "string","eventType": "AUCTION_STARTED","phase": "ACCUMULATION","symbol": "BTCUSDC","timestamp": "string","startTime": "string","lockdownTime": "string","scheduledCrossTime": "string","createAuctionOrderEnabled": true,"amendAuctionOrderEnabled": true,"cancelAuctionOrderEnabled": true,"message": "string","createdAt": "string","updatedAt": "string"}}This example has been generated automatically.