get
https://api.connex.trade/api/v1/trading/portfolio/tradingStats
Query the trading statistics of a portfolio
Notes: transactions within today has not been included.
Permission
- Primary API Key:
READ, retrieve trading stats on sym level of the main portfolio - Sub-Portfolio API Key:
READ, retrieve trading stats on sym level of the current portfolio
Rate Limit
- 20 requests per 1 seconds
Request
| Name | Type | Mandatory | Description |
|---|---|---|---|
| symList | String | N | Trading pair unique identifier , up to 5 sym in one query. once symList given, businessType and exchanges will not take effect. example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT |
| businessType | String | N | businessType: SPOT / PERP |
| exchange | String | N | OKX / BINANCE |
| begin | String | Y | Start time, in YYYYMMSS format, up to 90 days period, able to support 1 year ago. Will be converted to 0am of the Date |
| end | String | Y | End time, in YYYYMMSS format, up to 90 days period,Will be converted to 0am of the Date |
Response
| Field | Type | Remark |
|---|---|---|
| begin | String | Date of StartTime |
| end | String | Date of EndTime |
| okxSpotVolUsd | String | OKX-Total spot trading amount(USDT Volume) |
| okxPerpVolUsd | String | OKX-Total perp trading amount(USDT Volume) |
| binanceSpotVolUsd | String | Binance-Total spot trading amount(USDT Volume) |
| binancePerpVolUsd | String | Binance-Total spot trading amount(USDT Volume) |
| details | Object | List of trading amount detail |
exchange | String | exchange: BINANCE, OKX |
businessType | String | BusinessType |
executedAmount | String | Trading amount(USDT Volume) |
symbol | String | Trading pair unique identifier |
totalTradingFee | String | Total trading fee paid (converted to USDT) |
totalRpnl | String | Total realized PNL (converted to USDT) |
