Rate
Get Order Rate
The Get Order Rate GET
endpoint gets the lowest possible exchange rate for an order placed by a consumer from a provider. This requires your publickey
in the environment variables while the query params passed will be the payInCurrencyCode
, payInCurrencyNetwork
,recieveInCurrencyCode
, recieveInCurrencyNetwork
& orderAmount
.
The returned result will have a rateValidityInSeconds
, providerRateAmount
& providerRateReference
. To get a response for a sell or swap order, switch to desired networks and currency inputs on request and make the call. See the example below;
.../Rate?payInCurrencyCode=NGN&payInCurrencyNetwork=LOCAL&receiveInCurrencyCode=BUSD&receiveInCurrencyNetwork=BEP20&orderAmount=500
GET
https://canary.xendbridge.com/api/PeerToPeerOrder...
Query Parameters
Name | Type | Description |
---|---|---|
payInCurrencyCode* | string | NGN |
payInCurrencyNetwork* | string | LOCAL |
recieveInCurrencyCode* | string | BUSD |
recieveInCurrencyNetwork* | string | BEP-20 |
orderAmount* | decimal | 500 |
Headers
Name | Type | Description |
---|---|---|
publicKey | string | {your_publicKey} |
Parameters | Type | Definitions |
---|---|---|
payInCurrencyCode | string |
|
payInCurrencyNetwork | string |
|
receiveInCurrencyCode | string |
|
receiveInCurrencyNetwork | string |
|
orderAmount | string |
|
Last updated