network-wiredObtain Exchange Rate

Get crypto or fiat rate

post

Retrieve real-time exchange rate between cryptocurrency and fiat currency.Includes buy/sell rates and applicable fees

Header parameters
BiuLinkPay-AppIdstringRequired
BiuLinkPay-TimeStampstringRequired
BiuLinkPay-NoncestringRequired
BiuLinkPay-SignaturestringRequired
Body
currencyTypestring · enumRequired

Currency type

Example: CRYPTOPossible values:
numbernumberRequired

Transaction amount, integer = 20, fraction = 12

Example: 10000
feestringOptional

Transaction fee (fee not's empty,feeRatio is invalid)

saleDirectionstring · enumRequired

Trade direction (BUY/SELL)

Example: SELLPossible values:
exchangestring · enumOptional

Exchange name

Example: BINANCEPossible values:
cryptoUnitstringOptional

Cryptocurrency unit

Example: USDT
fiatUnitstringOptional

Fiat currency unit

Example: VND
feeRatiostringOptional

Fee ratio (value is percentage, if feeRatio & fee is null,get merchant config)

Example: 0.01
networkstringOptional

Blockchain network

Example: BSC
deductionMethodstring · enumOptional

Fee deduction method (outer buckle)

Example: OUTER_BUCKLEPossible values:
Responses
chevron-right
200

Successful operation

application/json
post
/pay/common/rateQuery
200

Successful operation

Last updated