Quote Service provides quotes for digital currency trades using data from the FTX orderbook. It handles requests to buy or sell a particular amount of a currency (the base currency) with another currency (the quote currency).
POST /quote
- action (String): Either “buy” or “sell”
- base_currency (String): The currency to be bought or sold
- quote_currency (String): The currency to quote the price in
- amount (BigDecimal): The amount of the base currency to be traded - Note that it was String in the doc.
{
"action": "buy",
"base_currency": "BTC",
"quote_currency": "TRYB",
"amount": 0.12
}
- total (String): Total quantity of quote currency - Note that it was String in the doc.
- price (String): The per-unit cost of the base currency - Note that it was String in the doc.
- currency (String): The quote currency
{
"total": 54610.212,
"price": 455085.1,
"currency": "TRYB"
}
https://api.tufan.ee/quote
curl --location --request POST 'https://api.tufan.ee/quote' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "buy",
"base_currency": "BTC",
"quote_currency": "TRYB",
"amount": 0.12
}'
InvalidAmountException
NoMarketException
ConnectionUnavailableException
Enums should be uppercase.