Place CFD Order
Place CFD Order
Descriptionâ
This endpoint is used to place an order on a CFD account.
HTTP Requestâ
- POST /api/v3/cfd/trade/place-order
- Rate limit: 1/sec/UID
- Permission: UTA trade (read & write)
Request
curl -X POST "https://api.bitget.com/api/v3/cfd/trade/place-order" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{"symbol":"XAUUSD","orderType":"market","side":"buy","qty":"1"}'
Request Parametersâ
| Parameters | Type | Required | Description |
|---|---|---|---|
| symbol | String | Yes | Trading pair name |
| orderType | String | Yes | Order typelimit: Limit ordermarket: Market order |
| side | String | Yes | Trade sidebuy: Buysell: Sell |
| price | String | No | Order price Required when orderType=limitThe price must be an integer multiple of the trading pair's precision Trading pair precision can be obtained via the Get CFD Instruments endpoint |
| qty | String | Yes | Order quantity |
| takeProfit | String | No | Take-profit price The take-profit price must be an integer multiple of the trading pair's precision Trading pair precision can be obtained via the Get CFD Instruments endpoint |
| stopLoss | String | No | Stop-loss price The stop-loss price must be an integer multiple of the trading pair's precision Trading pair precision can be obtained via the Get CFD Instruments endpoint |
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": {
"trxId": "111111111111111111"
}
}
Response Parametersâ
| Parameters | Type | Description |
|---|---|---|
| trxId | String | Request ID |