Private User Data
PnL Settlement
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
PnL Settlement
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "settle",
"data": {
"id": 10001,
"old_balance": 4050,
"new_balance": 3050,
"settled_amount": -1000,
"requested_time": 1575014255089, // Unix epoch time in ms
"settled_time": 1575014255910 // Unix epoch time in ms
"status": "COMPLETED"
},
"timestamp": 1679021265398
}
Push interval: real-time push on update
{
"id": "clientID3",
"topic": "settle",
"event": "subscribe"
}
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | Y | id generate by client |
event | string | Y | subscribe /unsubscribe |
topic | string | Y | settle |
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "settle",
"data": {
"id": 10001,
"old_balance": 4050,
"new_balance": 3050,
"settled_amount": -1000,
"requested_time": 1575014255089, // Unix epoch time in ms
"settled_time": 1575014255910 // Unix epoch time in ms
"status": "COMPLETED"
},
"timestamp": 1679021265398
}
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "settle",
"data": {
"id": 10001,
"old_balance": 4050,
"new_balance": 3050,
"settled_amount": -1000,
"requested_time": 1575014255089, // Unix epoch time in ms
"settled_time": 1575014255910 // Unix epoch time in ms
"status": "COMPLETED"
},
"timestamp": 1679021265398
}