Private User Data
Balance
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
Balance
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic":"balance",
"ts":1651836695254,
"data":{
"balances":{
"USDC":{
"holding":5555815.47398272,
"frozen":0,
"interest":0,
"pendingShortQty":0,
"pendingExposure":0,
"pendingLongQty":0,
"pendingLongExposure":0,
"version":894,
"staked":51370692,
"unbonding":0,
"vault":0,
"averageOpenPrice":0.00000574,
"pnl24H":0,
"fee24H":0.01914,
"markPrice":0.31885
}
}
}
}
Push interval: real-time push
{
"id": "clientID3",
"topic": "balance",
"event": "subscribe"
}
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | Y | id generate by client |
event | string | Y | subscribe /unsubscribe |
topic | string | Y | balance |
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic":"balance",
"ts":1651836695254,
"data":{
"balances":{
"USDC":{
"holding":5555815.47398272,
"frozen":0,
"interest":0,
"pendingShortQty":0,
"pendingExposure":0,
"pendingLongQty":0,
"pendingLongExposure":0,
"version":894,
"staked":51370692,
"unbonding":0,
"vault":0,
"averageOpenPrice":0.00000574,
"pnl24H":0,
"fee24H":0.01914,
"markPrice":0.31885
}
}
}
}
{
"id": "clientID3",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic":"balance",
"ts":1651836695254,
"data":{
"balances":{
"USDC":{
"holding":5555815.47398272,
"frozen":0,
"interest":0,
"pendingShortQty":0,
"pendingExposure":0,
"pendingLongQty":0,
"pendingLongExposure":0,
"version":894,
"staked":51370692,
"unbonding":0,
"vault":0,
"averageOpenPrice":0.00000574,
"pnl24H":0,
"fee24H":0.01914,
"markPrice":0.31885
}
}
}
}