Skip to main content

Execute a trade quote

POST 

/v1/trades/quotes/:id/execute

Executes a previously generated trade quote. The quote must not be expired and the user must have sufficient balance in the specified wallet.

Request

Path Parameters

    id stringrequired

Body

required

Trade quote execution request

    walletId stringrequired

    ID of the wallet to use for the trade execution

Responses

Trade executed successfully

Schema

    traceId string
    message string

    data

    object

    parentTransactionId stringrequired

    Parent transaction ID for the trade order

    sourceAssetTransferId stringrequired

    Source asset transfer transaction ID

    targetAssetTransferId stringrequired

    Target asset transfer transaction ID

    feeTransferId stringnullablerequired

    Fee transfer transaction ID (null if no fee)

    spreadTransferId stringnullablerequired

    Spread transfer transaction ID (null if no spread revenue)

    success booleanrequired

    Whether the trade was executed successfully

    filledPrice stringrequired

    Filled price from the exchange

    totalSourceAmount stringrequired

    Total source amount used in the trade

    totalTargetAmount stringrequired

    Total target amount received from the trade

    totalFeeAmount stringrequired

    Total fee amount charged

    message string

    Success or error message

    error object

    Error details if trade failed

    txType stringrequired

    Transaction type (buy or sell)

    date stringrequired

    Trade execution timestamp

    reference stringrequired

    External reference or vendor transaction ID

    relatedTransactions string[]required

    Related transaction IDs

    network stringrequired

    Blockchain network for the asset

    transaction stringrequired

    Transaction hash or ID

    sourceAssetAcronym stringrequired

    Source asset acronym

    targetAssetAcronym stringrequired

    Target asset acronym

    from stringrequired

    Source wallet name

    to stringrequired

    Destination wallet name

    feeDeductedFrom stringrequired

    Asset from which fees were deducted

Loading...