πΉExchange API
Create Exchange
Please note, the fromAmount value that is returned may be less than what was originally set as it is possible your exchange order does not get completely filled due to minimum increment requirements.
POST
https://coinstack.net/api/v1/exchange
Headers
Name
Type
Description
X-API-KEY*
String
Account API key
Request Body
Name
Type
Description
fromCurrency*
String
Exchange from currency
BTC
, ETH
, LTC
, BNB
, SOL
, MATIC
, XRP
, TRX
toCurrency*
String
Exchange to currency
USDT
fromAmount*
Number
Exchange from amount
{
"success":true,
"response":{
"exchange":{
"exchangeID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"fromCurrency":"{fromCurrency}",
"toCurrency":"{toCurrency}",
"fromAmount":"{fromAmount}",
"toAmount":"{toAmount}",
"fee":"{fee}"
}
}
}
Last updated
Was this helpful?