A Trade is an action initiated by a user that has access to a wallet.
The trade is stored and managed in the wallet and identified in the system by its unique ID, the UUID.
The following table describes the fields in the REST API messages for trades:
Field | Type | Description |
---|---|---|
id | string | The UUID. A unique ID of the trade. |
created_at | string | The creation time of the trade. Standard format of timestamp with a time zone. ISO_8601 |
updated_at | string | The time when the trade details were last updated. Standard format of timestamp with a time zone. ISO_8601 |
side | string | The side of the trade. One of the following: * BUY * SELL |
quantity_type | string | The quantity type of the trade. One of the following: * RECEIVE * DELIVER |
strategy | string | The strategy of the trade. One of the following: * RFQ * MARKET * LIMIT * BLENDER * *UNDEFINED |
status | string | The status of the transfer. One of the following: * TRADE_FAILURE * TRADE_SUCCESS * TRADE_EXECUTED * TRADE_SEND_FUNDS * TRADE_SWAP_FUNDS * TRADE_WITHDRAW_FUNDS * UNDEFINED |
quote_id | string | The quote_id of the order. This is inner UUID. A unique ID of the trade. |
token_price | number | The token(eg;ERC20) symbol price of the transaction for the block timestamp. |
ticker | string | The ticker of the trade, eg; ETH-USDC. |
price | number | The price of the delivered/received symbol. |
delivered_amount | number | The delivered amount of the symbol when SELL/BUY. |
received_amount | number | The received amount of the symbol when SELL/BUY. |
wallet_id | string | The wallet id to which the trade belongs. Take a look at the Wallet Object |
destination_wallet_id | string | The destination wallet id to which the trade belongs. We will use it mostly in BLENDER strategy. Take a look at the Wallet Object |
incoming_transfer_id | string | The incoming transfer id to which the trade belongs. Take a look at the transfers. |
outgoing_transfer_id | string | The outgoing transfer id to which the trade belongs. Take a look at the transfers. |
received_asset_id | string | The received asset id to which the trade belongs. Take a look at the assets. |
status_message | text | The status message to hold error messages. |