GET
/
trades

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

trade_id
string

ID of Trade

cursor
string

ID of Trade to fetch next set of results from

client_token
string

ClientToken during which trade was executed

customer_id
string

ID of Customer

Response

200 - application/json

Currenly, only usd is supported for fiat_type, with more currency types coming soon.

You can see list of all supported currencies for asset_type here

assetPrice
number

Price for 1 unit of the digital token

assetQuantity
number

Quantity of digital assets bought

assetTotal
number

Total value of destination asset purchased.

assetType
string

Type of digital currency being bought.

buyOrSell
string

Set to buy if buying crypto with fiat, and sell when selling crypto to obtain fiat.

createdAt
string

Timestamp of transaction

network
string

Blockchain on which the transaction took place

networkFee
number

Fees paid to the blockchain network to validate the transaction

onchainTxnStatus
enum<string>

On chain status of transaction settled - transaction is confirmed on the chain, check tx_hash for confirmation hash pending - transaction is awaiting validation on the chain hold - transaction hasn't been initiated yet `

Available options:
pending,
settled,
hold
paymentMethodId
string

ID of Bank account used in the transaction

Minimum length: 1
status
enum<string>

Transaction status.

Available options:
completed,
pending
total
number

Total amount spent in transaction

tradeId
string

Unique ID of trade

Minimum length: 1
transactionFee
number

Processing fees charged by Sardine to the user, and split with the merchant

txHash
string

Hash of transaction

walletId
string