Get CFD Current Positions
Get CFD Current Positions
Descriptionâ
This endpoint is used to query real-time position information on a CFD account.
HTTP Requestâ
- GET /api/v3/cfd/trade/current-positions
- Rate limit: 10/sec/UID
- Permission: UTA trade (read-only)
Request
curl "https://api.bitget.com/api/v3/cfd/trade/current-positions?symbol=XAUUSD" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json"
Request Parametersâ
| Parameters | Type | Required | Description |
|---|---|---|---|
| symbol | String | No | Trading pair name If not provided, current positions for all trading pairs are returned |
| subUid | String | No | Sub-account UID Used by a master account to query a sub-account's position list |
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": [
{
"positionId": "111111111111111111",
"symbol": "XAUUSD",
"orderType": "limit",
"side": "buy",
"qty": "1",
"openPrice": "2610.00",
"takeProfit": "2650.00",
"stopLoss": "2600.00",
"interest": "0",
"unrealizedPnl": "10.5",
"totalProfit": "10.5"
}
]
}
Response Parametersâ
| Parameters | Type | Description |
|---|---|---|
| positionId | String | Position ID |
| symbol | String | Trading pair name |
| orderType | String | Order typelimit: Limit ordermarket: Market order |
| side | String | Trade sidebuy: Buysell: Sell |
| qty | String | Order quantity |
| openPrice | String | Opening price |
| takeProfit | String | Take-profit price |
| stopLoss | String | Stop-loss price |
| interest | String | Overnight interest |
| unrealizedPnl | String | Unrealized profit and loss |
| totalProfit | String | Total profit Total profit = Overnight interest + Unrealized profit and loss |