v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Trade

Query Allocations (USER_DATA)

Retrieves allocations resulting from SOR order placement.

Weight: 20

Supported parameter combinations: Parameters Response symbol allocations from oldest to newest symbol + startTime oldest allocations since startTime symbol + endTime newest allocations until endTime symbol + startTime + endTime allocations within the time range symbol + fromAllocationId allocations by allocation ID symbol + orderId allocations related to an order starting with oldest symbol + orderId + fromAllocationId allocations related to an order by allocation ID

Note: The time between startTime and endTime can't be longer than 24 hours.

get/api/v3/myAllocations

Query parameters

symbolstring required
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

startTimeinteger

UTC timestamp in ms

endTimeinteger

UTC timestamp in ms

fromAllocationIdinteger
limitinteger
Example:5

Default 500; max 1000.

orderIdinteger

Order id

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Allocations resulting from SOR order placement

symbolstring required
allocationIdinteger required
allocationTypestring required
orderIdinteger required
orderListIdinteger required
pricestring required
qtystring required
quoteQtystring required
commissionstring required
commissionAssetstring required
timeinteger required
isBuyerboolean required
isMakerboolean required
isAllocatorboolean required

Example response

[
  {
    "symbol": "BTCUSDT",
    "allocationType": "SOR",
    "orderId": 1,
    "orderListId": -1,
    "price": "1.00000000",
    "qty": "5.00000000",
    "quoteQty": "5.00000000",
    "commission": "0.00000000",
    "commissionAsset": "BTC",
    "time": 1687506878118,
    "isBuyer": true
  }
]