/app/rfq

Get an indicative quote (price) using the amount of cryptocurrencies
(e.g. how much USD does it cost to buy 0.345 BTC?)

通过币的金额询价

RFQ stands for "Request for Quote".

import requests
import uuid

headers = {
    'Authorization': 'Bearer %s' % api_token,
    'Accept':'application/json'
}

# Get a quote for buying 1 BTC using USD
quantity = '1' 
side = 'buy'
pair = 'BTCUSD'

post_data = {
    'pair': pair,
    'side': side,
    'quantity': quantity,
}

response = requests.post('https://sandboxapi.legendtrading.com/app/rfq/', json=post_data, headers=headers)

print(response.json())
Query Params
string
required
Defaults to BTCUSD

Trading pair

string
required
Defaults to buy

buy or sell

string
required
Defaults to 1
string
enum
Defaults to bank
Allowed:
string
string
enum
Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json