报价查询接口
基于输入的法定货币金额查询当前加密货币报价
该接口可获取当前 partnerId 基于输入的法定货币金额查询当前加密货币报价,接口正常将返回为报价明细和对应的支付方式详情
法定货币查询接口
GET
https://api.ramp.fatpay.xyz/open/api/onramp/price
基于输入的法定货币金额查询当前加密货币报价
Query Parameters
currencyAmount*
Decimal
buyType=nft,提交加密货币数量
buyType=crypto,提交加密货币数量
buyType=fiat,提交法币数量
e.g. 199
buyType
String
buyType=nft:nft报价查询
on-ramp不需要该参数
Headers
Content-Type*
String
application/json
X-Fp-Version*
String
FaTPay API 接口版本
e.g. v1.0
X-Fp-Timestamp*
Integer
Unixtime 时间戳,秒
e.g. 1661346861
X-Fp-Nonce*
Integer
6位随机正整数
e.g. 868964
X-Fp-Partner-Id*
String
申请高级合作伙伴时,由 FaTPay 分配的 partner ID
e.g. 2yQrS9A0xmM8xpfa
X-Fp-Signature*
String
由 APIPrivateKey
生成的签名
e.g. zbBQ+1nv/5up9riH1wbTSSMmkb26LQj3g1cNWsutOordOrtpk8agcA5D5bdYaGeVlHK0qZ2MlUV+ZfOK9cXMuficeIm5fnEjMEm7s1IZtSivMt5te7EFqe52dtVFafE4hUgwqH6QBZB0yZ1FSqHs2dOCI0e8RKJQBDitxtHkibStl1Jt5wulzzq96qWbbVnwoBqGDT52OtwwEcDqMI4SIAzUAdBhAuLqUig1U4Ne9ufT8B1aAohEk5fvn/Sbom21bEjLdgbt5PwH2wmmuBx4tq31IgcP4V+qEBILY2eMAFzkvxNXaX3PsLbj9NpgyIc3HQl0FtRq3gdN7FsSvyvcWA==
{
"code": 10000,
"msg": "Success",
"data": {
"fiatCurrency": "USD",
"currencyAmount": 199,
"cryptoCurrency": "USDT",
"network": "ethereum_rinkeby",
"cryptoCurrencyCode": "USDT_ERC20"
"cryptoCurrencyAmount": 182.0,
"gasFee": 1.32,
"cryptoCurrencyUnitPrice": 1.03,
"platformFee": 11.94,
"totalFee": 13.26,
"paymentOptions": {
"name": "CREDIT_DEBIT_CARD",
"processingTime": "3 - 7Min",
"icon": "https://fatpay.xyz/img/1.png",
"maxAmount": 4000,
"minAmount": 1
}
}
}
返回的对象
CryptoCurrencyQuote
CryptoCurrencyQuote
fiatCurrency
String
是
法币ISO代码,如 USD、THB
currencyAmount
Decimal
是
法币金额,最多 2 位小数,如 199
cryptoCurrency
String
是
加密货币名称,如 USDT
network
String
是
加密货币所在公链,如ethereum_mainnet
cryptoCurrencyCode
String
是
加密货币标识码,如 USDT_ERC20
cryptoCurrencyAmount
Decimal
是
加密货币数量,最多 2 位小数,如 182
cryptoCurrencyUnitPrice
Decimal
是
加密货币单价,最多 2 位小数,如 1.03
gasFee
Decimal
是
网络手续费,最多 2 位小数,如 1.32,按照购买的Token为计价单位,如TRX
platformFee
Decimal
是
平台支付手续费,最多 2 位小数,如 11.94,按照用户支付的法币为计价单位,如USD
totalFee
Decimal
是
totalFee=platformFee
Last updated