Get quote status

Get status of a quote.

URL

GET https://exchange.savitar.io/api/v1/api/v0/quote/:qid

Path Parameters

qid
string
Quote unique identifier.

Response Data

qid
string
Quote unique identifier to pass to further steps.
price
string
Quote price.
side
enum
Quote side.
Possible values: buy, sell
state
enum
Quote state.
Possible values: submitted, expired, canceled, confirmed, payment_initiated, payment_error.
pair
string
Exchange pair. Example: 'btc:eur'
fees.amount
string
Payment fee amount.
fees.currency
string
Payment fee currency.
in.amount
string
Amount the user must pay to complete the trade, including fees.
in.currency
string
Currency of amount the user must pay to complete the trade.
out.amount
string
Amount the user will receive at trade completion and after fees.
out.currency
string
Currency of amount the user will receive at trade completion.

Example

Request:

curl -H "Authorization: Bearer $JWT_TOKEN" \
     https://exchange.savitar.io/api/v1/quote/b6e43f6a-e4ea-44ae-9d47-b050ea582a5a

Response:

{
  "status": "ok",
  "response": {
    "fees": { "amount": "1", "currency": "EUR" },
    "in": { "amount": "15.36", "currency": "EUR" },
    "out": { "amount": "0.00114698", "currency": "BTC" },
    "pair": "BTC:EUR",
    "payment_type": "card",
    "price": "8718.53",
    "qid": "b6e43f6a-e4ea-44ae-9d47-b050ea582a5a",
    "side": "buy",
    "state": "confirmed"
  }
}