Skip to main content

Get Order Info

Frequency limit: 20 times/1s (UID)

Description

Get Order Info

If you query the order details through clientOid, the following requirements need to be met:

  • clientOid is customized by user, not our system-generated
  • the order is in unfilled status

HTTP Request

  • GET /api/v2/spot/trade/orderInfo
Request Example
curl "https://api.bitget.com/api/v2/spot/trade/orderInfo?orderId=1234567890" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json"

Request Parameter

ParameterTypeRequiredDescription
orderIdStringNoEither Order ID or clientOids is required.
clientOidStringNoEither Client customized ID or orderId is required.
requestTimeStringNorequest Time Unix millisecond timestamp
receiveWindowStringNovalid window period Unix millisecond timestamp Unix millisecond timestamp
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1695865476577,
"data": [
{
"userId": "**********",
"symbol": "BTCUSDT",
"orderId": "121211212122",
"clientOid": "121211212122",
"price": "0",
"size": "10.0000000000000000",
"orderType": "market",
"side": "buy",
"status": "filled",
"priceAvg": "13000.0000000000000000",
"baseVolume": "0.0007000000000000",
"quoteVolume": "9.1000000000000000",
"enterPointSource": "API",
"feeDetail": "{\"BGB\":{\"deduction\":true,\"feeCoinCode\":\"BGB\",\"totalDeductionFee\":-0.0041,\"totalFee\":-0.0041},\"newFees\":{\"c\":0,\"d\":0,\"deduction\":false,\"r\":-0.112079256,\"t\":-0.112079256,\"totalDeductionFee\":0}}",
"orderSource": "market",
"cTime": "1695865232127",
"uTime": "1695865233051"
}
]
}

Response Parameter

ParameterTypeDescription
userIdStringAccount id
symbolStringTrading pair name
orderIdStringOrder ID
clientOidStringCustomized ID
priceStringOrder price
sizeStringAmount
Limit represents the number of base coins.
market-buy represents the number of quote coins.
market-sell represents the number of base coins.
orderTypeStringOrder type
limit Limit price
market Market price
sideStringDirection
statusStringOrder status
live: pending match
partially_filled: Partially filled
filled: All filled
cancelled: The order is cancelled
priceAvgStringFilled price
baseVolumeStringFilled quantity (base coin)
quoteVolumeStringTotal trading amount (quote coin)
enterPointSourceStringClient
WEB WEB Client
APP APP Client
API API Client
SYS SYS Client
ANDROID ANDROID Client
IOS IOS Client
cTimeStringCreation time, Unix millisecond timestamp, e.g. 1690196141868
uTimeStringUpdate time, Unix millisecond timestamp, e.g. 1690196141868
orderSourceStringOrder source
normal Normal order
market Market order
spot_trader_buy Elite spot trade to buy (elite traders)
spot_follower_buy Copy trade to buy (followers)
spot_trader_sell Elite spot trade to sell (elite traders)
spot_follower_sell Copy trade to sell (followers)
feeDetailStringTransaction fee breakdown
> newFeesStringFee details for "newFees".
>> cStringAmount deducted by coupons, unit:currency obtained from the transaction.
>> dStringAmount deducted in BGB (Bitget Coin), unit:BGB
>> rStringIf the BGB balance is insufficient to cover the fees, the remaining amount is deducted from the currency obtained from the transaction.
>> tStringThe total fee amount to be paid, unit :currency obtained from the transaction.
>> deductionStringIgnore.
>> totalDeductionFeeStringIgnore.
> BGBStringIf there is no "newFees" field, this data represents earlier historical data. This key represents the currency used for fee deduction (it is not fixed; if BGB deduction is enabled, it's BGB, otherwise, it's the currency obtained from the transaction).
>> deductionStringWhether there is a fee deduction.
>> feeCoinCodeStringTransaction fee coin code
>> totalDeductionFeeStringDeduction amount unit: BGB
>> totalFeeStringThe total fee amount to be paid, unit:currency obtained from the transaction.

How was your Reading Experience with us?