Private User Data
Notifications
Partner Support
User Flows
General API
- Builder Info
- System Info
- USDC Faucet
User API
- Registration
- Key Management
- Account/User Info
- Account Notifications
- Account Config
- Delegate Signer
Trading API
- Order Management
- Liquidations
- Assets/Withdraw/Settle PnL
- Positions
- Funding
Rewards API
- Trading Rewards
- Market Making Rewards
Staking & Valor API
- Staking
- Valor
Builder API
- User Data
- Trading Campaigns
- Fee Setting
- Referral Program
Market Data API
- TradingView
- Funding Rates
- Market Info
Websocket API
- Introduction
- PING/PONG
- Authentication
- Error Response
- Public Market Data
- Private User Data
Private User Data
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
}
Push interval: real-time push
{
"id": "clientID3",
"topic": "notifications",
"event": "subscribe"
}
Parameters
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
}
{
"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
}