Skip to main content

Accept quote

POST 

/v1/quotes/:batch_id/quote/:quote_id/accept

Accept an individual rate quote, within a batch. All other rate quotes will automatically be rejected.

Request

Path Parameters

    batch_id stringrequired
    quote_id stringrequired

Body

    client_order_id string

    The client's unique identifier for the order.

    order_notes string

    Order notes.

    Possible values: <= 256 characters

    Example: My order notes

Responses

Quote successfully accepted.

Schema

    quote

    object

    A Quote may result from a successful quotes request.

    id stringrequired

    The unique identifier for the quote.

    source_id stringrequired

    The source's unique identifier for the quote.

    client_id stringrequired

    The unique identifier fo the client.

    rate doublerequired

    The rate for the quote.

    source stringrequired

    The source of the quote.

    expires int64required

    The quote expiry in milliseconds.

    quote_date date-time

    Quote date.

    status stringrequired

    Rejection status.

    Possible values: [pending, accepted, rejected]

    Default value: pending

    trade

    object

    A Trade may result from a successfully executed order or quote.

    id stringrequired

    Id for the trade.

    source_order_id string

    Source order id for the trade.

    source_execution_id stringrequired

    Source execution id for the trade.

    source stringrequired

    Source for the exected trade.

    buy_currency stringrequired

    The currency that you bought.

    sell_currency stringrequired

    The currency that you sold.

    buy_amount doublerequired

    The amount that you bought.

    sell_amount doublerequired

    The anount that you sold.

    price doublerequired

    The rate for the trade.

    trade_date date-timerequired

    Trade date.

Loading...