Skip to main content

Create a trade quote

POST 

/v1/trades/quotes

Creates a trade quote between two assets for trading. Validates user membership has OTC_TRADE access and that the assets can be traded.

Request

Body

required

Trade quote request

    fromAssetId stringrequired

    ID of the source asset to trade from

    toAssetId stringrequired

    ID of the target asset to trade to

    fromAmount stringrequired

    Amount of the source asset to trade

    feeAssetId stringrequired

    ID of the asset to pay fees with (must match either fromAssetId or toAssetId)

    side stringrequired

    Possible values: [buy, sell]

    Trading side: buy to purchase the base asset, sell to sell the base asset

    direction stringrequired

    Possible values: [direct, reverse]

    Direction: direct if assets match available pair order, reverse if swapped

Responses

Trade quote created successfully

Schema

    traceId string
    message string

    data

    object

    quoteId stringrequired

    Unique quote identifier for trade execution

    pricePerUnit stringrequired

    Price per unit of the target asset

    fee numberrequired

    Fee percentage (as decimal)

    feeAmount stringrequired

    Fee amount in the fee asset

    totalPrice stringrequired

    Total price to pay for the trade

    totalToReceive stringrequired

    Total amount to receive after fees

    expiresAt stringrequired

    Expiration timestamp for the quote

    disclaimer stringrequired

    Disclaimer about trade execution

Loading...