API documentation
Sign in

Trades

Retrieving your executed trades, one record per trade.

One endpoint returns your executed trades:

POST /api/3/trades

One record per trade, whichever way it was executed — agreed with the brokerage desk or taken from a streamed price. The debits and credits behind it are transactions, and share the trade's tradeRef.

Both sides of a trade are on the record: tradedAmount is what you bought or sold, settlementAmount is what moves the other way.

Request

Every filter is optional. Sending none returns your most recent trades.

FieldTypeRequiredNotes
noncestringOptionalA counter that must increase with each request. An alternative to tonce; send one or the other
toncestringOptionalThe current Unix time in microseconds. Send this or nonce — a request with neither is rejected, and each value must be higher than the last one used by the key
userUuidstringOptionalThe user the credentials act for. Set automatically from the API key; sending it has no effect
tradeRefstringOptionalReturns a single trade by its reference
clientRefstringOptionalReturns trades carrying your own reference
tradeStateTradeStateOptionalRestricts the result to one state
tradeClassTradeClassOptionalRestricts the result to trades executed one way
tradeSideTradeSideOptionalRestricts the result to buys or to sells
accountGroupUuidstringOptionalRestricts the result to one account group. Omitting it returns every trade your credentials can see
fromtimestampOptionalStart of the period, as an ISO-8601 instant
totimestampOptionalEnd of the period, as an ISO-8601 instant
sortDirectionSortDirectionOptionalOrder of the result by execution time. Defaults to newest first
maxintegerOptionalHow many records to return. Defaults to 50 — min 1, max 200
offsetintegerOptionalIndex to start from, for paging

SortDirection

ValueMeaning
ASCOldest first
DESCNewest first

Response

The response is a page of trades and the number available.

FieldTypeNotes
dataTrade[]The matching trades
totalintegerHow many trades match the filter in total, for paging

Trade

FieldTypeNotes
uuidstringIdentifier for the trade
tradeRefstringReference shared with the transactions this trade produced
clientRefstringYour own reference, as supplied when the trade was made
tradeSideTradeSideWhether you bought or sold the traded amount
tradeStateTradeStateWhere the trade has reached
tradeClassTradeClassHow the trade was executed
settlementAmountMoneyWhat moves the other way — the contra-currency amount
tradedAmountMoneyWhat you bought or sold
userstringThe user that executed the trade
accountGroupAccountGroupThe account group the trade belongs to
settlementDatedateThe date the trade settles
quoteIdstringThe quote the trade was executed against
beneficiaryParticipantRefThe party receiving on settlement, when the trade names one
senderParticipantRefThe party delivering, when the trade names one
networkIdstringThe network settlement is expected over, for a digital asset
executedPricestringPrice the trade executed at, as a string because it names both currencies
executorLoginstringWho executed the trade
paymentReasonstringReason recorded against the settlement
createdAttimestampWhen the trade was created
updatedAttimestampWhen the trade was last changed

Money

FieldTypeNotes
amountdecimalThe amount
currencystringThe currency it is denominated in

AccountGroup

FieldTypeNotes
uuidstringIdentifier for the account group
namestringName of the account group

ParticipantRef

A reference to a settlement party. The full record — bank accounts, wallets and verification state — is on settlement parties.

FieldTypeNotes
uuidstringIdentifier for the party
namestringName of the party

TradeSide

Stated from your side of the trade.

ValueMeaning
BUYYou bought the traded amount
SELLYou sold the traded amount

TradeState

ValueMeaning
CANCELLEDCancelled, and nothing settles
PROCESSEDSettled
PENDING_SETTLEMENTExecuted, not yet settled

TradeClass

ValueMeaning
OTCAgreed with the brokerage desk
RFSExecuted against a streamed price

We use cookies to improve your experience and analyse site traffic. Cookie policy