Skip to main content

Get All Orders

Get All Orders

Description​

Get the full history of P2P orders with support for filtering by status, time range, and pagination via cursor. Maximum query range is 90 days; single query range cannot exceed 30 days.

HTTP Request​

  • GET /api/v3/p2p/all-orders
  • Rate limit: 10/sec/UID
  • Permission: UTA P2P (read)
Request
curl "https://api.bitget.com/api/v3/p2p/all-orders?limit=10" \
-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​

ParametersTypeRequiredDescription
startTimeStringNoStart time. Unix timestamp in milliseconds, e.g. 1597026383085. Maximum query range: 90 days; single query range: 30 days
endTimeStringNoEnd time. Unix timestamp in milliseconds, e.g. 1597026383085
limitStringNoNumber of items per page. Default: 10
cursorStringNoCursor ID for pagination. Leave empty for the first request; pass the nextId returned in the previous response for subsequent requests
orderIdStringNoOrder ID
sideStringNoTrade direction:
buy buy
sell sell. Returns all types if not provided
statusStringNoOrder status:
pending_payment pending payment
pending_release pending release
completed completed
cancelled cancelled
in_appeal in appeal. Returns all statuses if not provided
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": {
"items": [
{
"orderId": "ORD123456",
"side": "sell",
"token": "USDT",
"fiat": "CNY",
"price": "7.28",
"amount": "728",
"quantity": "100",
"fee": "0",
"counterparty": "UserA",
"status": "completed",
"createdTime": "1740000000000",
"updatedTime": "1740000001000"
}
],
"nextId": "ORD123455"
}
}

Response Parameters​

ParametersTypeDescription
itemsListData list
>orderIdStringOrder ID
>sideStringTrade direction:
buy buy
sell sell
>tokenStringCryptocurrency
>fiatStringFiat currency
>priceStringTrade unit price
>amountStringTrade amount in fiat currency
>quantityStringTrade quantity in cryptocurrency
>feeStringFee
>counterpartyStringCounterparty
>statusStringOrder status:
0 pending_payment pending payment
1 pending_release pending release
2 completed completed
3 cancelled cancelled
4 in_appeal in appeal
>createdTimeStringOrder creation time. Unix timestamp in milliseconds
>updatedTimeStringOrder last update time. Unix timestamp in milliseconds
nextIdStringNext page cursor ID

How was your Reading Experience with us?

★
★
★
★
â˜