Get exchange rate
Developing
POST
https://api.fbpay.cc/v1/rate
Get the exchange rate of cryptocurrency and fiat currency#
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
from
object
required
amount
integer
required
currency
string
Currency to be exchanged
to
object
required
currency
string
required
find identifier from here
platform
string
source
Example
{
"from": {
"amount": 100,
"currency": "jpy"
},
"to": {
"currency": "bnb"
},
"platform": "aplink"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.fbpay.cc/v1/rate' \
--header 'Content-Type: application/json' \
--data-raw '{
"from": {
"amount": 100,
"currency": "jpy"
},
"to": {
"currency": "bnb"
},
"platform": "aplink"
}'
Responses
🟢200成功
application/json
Body
success
boolean
required
data
object
required
channels
object
required
country
string
required
nonce
string
Token
timestamp
integer
required
platform
string
required
Example
{
"success": true,
"data": {
"channels": {
"guardiran": {
"from": {
"amount": 200,
"currency": "USD"
},
"to": {
"amount": 188.1665509,
"currency": "USDT",
"network": "BSC"
},
"service_fees": {
"amount": "1.2574360935",
"currency": "USD",
"percentage": "0.62871804675%"
},
"converted_amount": {
"amount": "198.75",
"currency": "USD"
},
"network_fee": {
"currency": "USDT",
"amount": "0.20451106"
}
},
"unlimit": {
"from": {
"amount": 200,
"currency": "USD"
},
"to": {
"amount": 178.72971903,
"currency": "USDT",
"network": "BNBChain(BEP20)",
"key": "USDT-BEP20"
},
"service_fees": {
"amount": "19.13",
"currency": "USD",
"percentage": null
},
"converted_amount": {
"amount": 200,
"currency": "USD"
},
"network_fee": {
"currency": "USD",
"amount": "0.21"
}
}
},
"country": "us",
"nonce": "d5355576d0e6e0ae066e883c4e7701b2",
"timestamp": 1709882964,
"platform": "test"
}
}
Modified at 2024-09-10 15:25:49