private/otc/get-deal-history (RFQ)
POSTGet closed deals for given user./private/otc/get-deal-history
Request
Body
required
Request id (echoed in response)
Must be "private/otc/get-deal-history"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
Possible values: [QUOTE_REQUEST]
QUOTE_REQUEST
System generated unique ID for the Deal
Start time in Unix time format (inclusive). Default: end_time - 1 day. Nanosecond recommended for accurate pagination.
End time in Unix time format (exclusive). Default: current system timestamp. Nanosecond recommended for accurate pagination.
Schema
- Array [
- Array [
- ]
- ]
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
deal_list object[]
System generated unique ID for the Deal
System generated unique ID for the Quote
Client provided ID for the deal
Possible values: [QUOTE_REQUEST]
QUOTE_REQUEST
Possible values: [ACCEPTED, CONFIRMED, SETTLED, REJECTED]
ACCEPTED = system received deal; CONFIRMED = liquidity provider has executed deal; SETTLED = deal settled and funds transferred; REJECTED = deal rejected
Possible values: [IMMEDIATE, T1]
Settlement arrangement of the Deal
Create time of the Deal (in nanoseconds)
Last updated time of the Deal (in nanoseconds)
Scheduled time the deal is to be settled at (in nanoseconds). Early settled deal reflected on update_time_ns. 0 or not present for IMMEDIATE deal.
System generated unique ID for the quote request
leg_list object[]
Instrument of the Deal (e.g., BTC_USD)
Either quantity or notional of the Deal
Either quantity or notional of the Deal
Executed qty of the Deal
Executed notional of the Deal
Price of the Deal
Possible values: [BUY, SELL]
The side of the deal
Possible values: [PRICE]
e.g. PRICE
Present when code !== 0.
Present when code !== 0.