{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "notifications",
"data": {
"id": 12345, // notification id
"messageType": "ORDER_FILLED", // ORDER_FILLED
"title": "Your order has been filled",
"type": "TRADE", // TRADE / SYSTEM
"level": "GENERAL", // GENERAL / IMPORTANT
"contentSummary": "Your order to buy 1 NEAR/USDC.e has been filled: 0.5/1 at 1.9876.",
"content": "<p>Your order to buy 1 NEAR/USDC.e has been filled: 0.5/1 at 1.9876.</p>",
"contentRaw": { // below example is for a ORDER_FILLED content
"symbol": "PERP_NEAR_USDC",
"side": "BUY",
"orderId": 1,
"executedPrice": 1.9876,
"executedQuantity": 0.5,
"executedTimestamp": 1567382401000
}
},
"timestamp": 1679021265398
}
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "notifications",
"data": {
"id": 12345, // notification id
"messageType": "ORDER_FILLED", // ORDER_FILLED
"title": "Your order has been filled",
"type": "TRADE", // TRADE / SYSTEM
"level": "GENERAL", // GENERAL / IMPORTANT
"contentSummary": "Your order to buy 1 NEAR/USDC.e has been filled: 0.5/1 at 1.9876.",
"content": "<p>Your order to buy 1 NEAR/USDC.e has been filled: 0.5/1 at 1.9876.</p>",
"contentRaw": { // below example is for a ORDER_FILLED content
"symbol": "PERP_NEAR_USDC",
"side": "BUY",
"orderId": 1,
"executedPrice": 1.9876,
"executedQuantity": 0.5,
"executedTimestamp": 1567382401000
}
},
"timestamp": 1679021265398
}
{
"id": "clientID3",
"topic": "notifications",
"event": "subscribe"
}
Name | Type | Required | Description |
---|---|---|---|
id | string | Y | id generate by client |
event | string | Y | subscribe /unsubscribe |
topic | string | Y | notifications |
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "notifications",
"data": {
"id": 12345, // notification id
"messageType": "ORDER_FILLED", // ORDER_FILLED
"title": "Your order has been filled",
"type": "TRADE", // TRADE / SYSTEM
"level": "GENERAL", // GENERAL / IMPORTANT
"contentSummary": "Your order to buy 1 NEAR/USDC.e has been filled: 0.5/1 at 1.9876.",
"content": "<p>Your order to buy 1 NEAR/USDC.e has been filled: 0.5/1 at 1.9876.</p>",
"contentRaw": { // below example is for a ORDER_FILLED content
"symbol": "PERP_NEAR_USDC",
"side": "BUY",
"orderId": 1,
"executedPrice": 1.9876,
"executedQuantity": 0.5,
"executedTimestamp": 1567382401000
}
},
"timestamp": 1679021265398
}