retrofit2.Call<Object> |
BybitApiService.requestQuote(AssetQuoteRequest assetQuoteRequest) |
Request a Quote
HTTP Request
POST /v5/asset/exchange/quote-apply
https://bybit-exchange.github.io/docs/v5/asset/convert/apply-quote
Request Parameters
Parameter Required Type Comments
fromCoin true string Convert from coin (coin to sell)
toCoin true string Convert to coin (coin to buy)
fromCoinType false string crypto
toCoinType false string crypto
requestCoin true string Request coin, same as fromCoin
In the future, we may support requestCoin=toCoin
requestAmount true string request coin amount (the amount you want to sell)
accountType true string Wallet type
requestId false string Customised request ID
a maximum length of 36
Generally it is useless, but it is convenient to track the quote request internally if you fill this field
|