get
https://api.bring.trade/api/v1/trade/position/history
Query portfolio historical positions, only includes fully closed positions.
⏳ Limit
15 requests per 10 seconds.
🛠️ Parameters
| Field | Type | Mandatory | Description |
|---|---|---|---|
| symbol | String | N | The trading pair or asset symbol. |
| begin | String | N | The start time for data queries, default is to query data that is up to 90 days ago (in milliseconds). |
| end | String | N | The end time for data queries, specified in milliseconds timestamp format. |
📬 Response
| Field | Type | Description |
|---|---|---|
| positionId | String | Position ID |
| accountId | String | Account ID |
| symbol | String | The trading pair or asset symbol. |
| closedType | String | PARTIAL_CLOSED , COMPLETE_CLOSED ,LIQUIDATION |
| closedPnl | String | Closed Pnl |
| closedPnlRatio | String | Closed Pnl ratio |
| closedAvgPrice | String | Closed average price |
| maxPositionQty | String | Max position quantity |
| closedQty | String | Closed quantity |
| liqFee | String | Liquidation fee |
| fundingFee | String | Funding fee |
| fee | String | The trading fee incurred for the executed trades. |
| openAvgPrice | String | Open average price |
| leverage | String | Leverage |
| positionHistorySide | String | One-way mode:NONEHedged mode position side: LONG,SHORT |
| createTime | String | The timestamp when this portfolio record was created (in milliseconds). |
| updateTime | String | The timestamp when this portfolio record was last updated (in milliseconds). |