Mainarrow

API

API.

Our cryptocurrency exchange aggregator is gathering the instant swap platforms into one interface with the use of service provider’s APIs.

API key

Header: 'x-api-key': 'your api key'

Get supported currencies

https://api.swapzone.io/v1/exchange/currenciesGET
Method to obtain the currencies available for exchange. As a result, the entries of currencies get returned in the lower register.
Return value
NameTypeDescription
-ArrayEntries of currencies returned in the lower register
Example request
curl --location --request get 'https://api.swapzone.io/v1/exchange/currencies' \ --data-raw ''
copy request
Example Response
BODY
[ "bsd", "cloak", "iotx", "loom", "hc", "rvn", "nano", "btt", "usd", "eur", "rub", "nim", "onion", "aeon", "srn", "vee", "usnbt", "part", "smart", "bcd", "ark", "zcl", "storm", "elf", "mith", "gusd", "abyss", "betr", "rfr", "btc", "eth", "lsk", "xmr", "doge", "dgb", "vet", "steem", "ardr", "nxt", "zec", "dash", "ltc", "xrp", "usdt", "gno", "xdn", "bnt", "dgd", "ant", "bat", "dcr", "edg", "game", "gbyte", "gnt", "lun", "mln", "pay", "pivx", "qtum", "rlc", "sngls", "xlm", "swt", "sys", "time", "trst", "waves", "wings", "xaur", "snt", "ptoy", "cvc", "snm", "gup", "eos", "ae", "btg", "trx", "etc", "exp", "maid", "fct", "amp", "rads", "xem", "sbd", "lbc", "nlg", "strat", "rep", "nav", "pot", "neo", "gas", "ont", "ignis", "mgo", "hmq", "storj", "nxc", "icn", "1st", "cfi", "plbt", "mne", "plu", "dnt", "tkn", "dent", "omg", "stx", "net", "oax", "san", "tix", "ixt", "bqx", "adx", "snc", "plr", "mco", "bnb", "bnbmainnet", "btm", "zrx", "pst", "tnt", "mtl", "myst", "veri", "fun", "ppt", "crb", "qrl", "nmr", "adt", "adst", "skin", "tfl", "bas", "kick", "sub", "atl", "enj", "cag", "r", "salt", "knc", "wtc", "atm", "powr", "link", "data", "zsc", "lrc", "ast", "mod", "req", "amb", "mana", "mda", "eng", "evx", "ctr", "vib", "xpa", "edo", "ppp", "mth", "cnd", "poe", "bmc", "avt", "dlt", "ift", "art", "hvn", "rvt", "dcn", "snd", "cob", "pro", "blue", "scl", "arn", "ukg", "cct", "fuel", "fyp", "gvt", "la", "qsp", "rdn", "rcn", "qash", "nuls", "bcpt", "ind", "aion", "grid", "nio", "astro", "dna", "dbet", "icx", "prix", "opt", "hgt", "erc", "inxt", "pipl", "hbt", "exrn", "drgn", "lend", "flixx", "wabi", "dtr", "loc", "ngc", "pkt", "bcdn", "cmt", "brd", "can", "bdg", "ins", "wax", "wrc", "capp", "lct", "cpay", "chat", "cs", "cv", "crpt", "poly", "idh", "bar", "zil", "utk", "cov", "ntk", "stq", "chsb", "utnp", "ship", "sphtx", "cennz", "face", "jnt", "tau", "tel", "fdz", "cas", "kin", "c20", "iost", "dice", "chp", "xbp", "berry", "pnt", "ncash", "dat", "bkx", "cofi", "bax", "ledu", "deb", "live", "stac", "dtrc", "gto", "hydro", "rblx", "dgtx", "dai", "nas", "ocn", "nexo", "appc", "zap", "iht", "pat", "navi", "rock2", "lgo", "pma", "eurs", "tusd", "pax", "usdc", "mkr", "vrs", "xzc", "xtz", "ela", "rdd", "ada", "zen", "grs", "bch", "bsv", "bts", "xvg", "ubq", "clo", "miota", "iota", "str", "vtc", "via", "kmd", "ven", "usdterc20", "theta", "matic", "eosdt", "chz", "lto", "usdt-erc20", "shib", "kishu", "maticerc20" ]
copy request

Get rate

https://api.swapzone.io/v1/exchange/get-rateGET
Method returning estimated amount to currency to receive after exchange.
Input parameters
NameTypeDescription
fromStringTicker of the exchanged currency
toStringTicker of the currency to receive after exchange
amountStringExchange deposit amount
Return value
NameTypeDescription
fromStringTicker of the exchanged currency
toStringTicker of the currency to receive after exchange
amountFromStringExchange deposit amount
amountToNumberAmount to receive after exchange
quotaIdStringRate identification id required to create transaction
Example request
curl --location --request get 'https://api.swapzone.io/v1/exchange/get-rate' \ --data-raw ''
copy request
Example Response
BODY
{
  
"from": "btc",
  
"to": "doge",
  
"amountFrom": 0.01,
  
"amountTo": 1550.8852367,
  
"quotaId": "60c394d4c32889a9b62ca394"
}
copy request

Create transaction

https://api.swapzone.io/v1/exchange/createPOST
Method to create the exchange transaction order.
Input parameters
NameTypeDescription
fromStringTicker of the exchanged currency
toStringTicker of the currency to receive after exchange
amountDepositStringExchange deposit amount
addressReceiveStringReceiving address
extraIdReceiveStringMemo tag (optional)
refundAddressStringRefund address
refundExtraIdStringMemo tag for refund address (optional)
quotaIdStringRate identification id
emailStringUsers email (optional)
Return value
NameTypeDescription
idStringTransaction id
statusStringTransaction status
fromStringTicker of the exchanged currency
toStringTicker of the currency to receive after exchange
amountDepositStringExchange deposit amount
amountEstimatedStringAmount to receive after exchange
addressDepositStringExchange deposit address
extraIdDepositStringExchange deposit memo tag
addressReceiveStringReceiving address
extraIdReceiveStringMemo tag (optional)
addressRefundStringRefund address
extraIdRefundStringMemo tag for refund address (optional)
quotaIdStringRate identification id
createdAtStringDate of transaction creation
emailStringUsers email (optional)
Example request
curl --location --request post 'https://api.swapzone.io/v1/exchange/create' \ --data-raw ''
copy request
Example Response
BODY
"transaction": {
  
"id": "60ec4efeae8bf752ad2fd902",
  
"quotaId": "60c394d4c32889a9b62ca394",
  
"from": "eth",
  
"to": "btc",
  
"status": "waiting",
  
"addressReceive": "some address",
  
"addressDeposit": "some address",
  
"extraIdReceive": "",
  
"amountDeposit": "0.1",
  
"amountEstimated": "0.0061209",
  
"createdAt": "2021-07-12T14:17:34.210Z",
  
"refundExtraId": "",
  
"refundAddress": "",
  
"email": ""
}
copy request

Get transaction status

https://api.swapzone.io/v1/exchange/txGET
Method returning current transaction status.
Input parameters
NameTypeDescription
idStringTransaction ID
Return value
NameTypeDescription
idStringTransaction id
statusStringTransaction status
fromStringTicker of the exchanged currency
toStringTicker of the currency to receive after exchange
amountDepositStringExchange deposit amount
amountEstimatedStringAmount to receive after exchange
addressDepositStringExchange deposit address
extraIdDepositStringExchange deposit memo tag
addressReceiveStringReceiving address
extraIdReceiveStringMemo tag (optional)
addressRefundStringRefund address
extraIdRefundStringMemo tag for refund address (optional)
quotaIdStringRate identification id
createdAtStringDate of transaction creation
emailStringUsers email (optional)
Example request
curl --location --request get 'https://api.swapzone.io/v1/exchange/tx' \ --data-raw ''
copy request
Example Response
BODY
"transaction": {
  
"id": "60ec4efeae8bf752ad2fd902",
  
"quotaId": "60c394d4c32889a9b62ca394",
  
"from": "eth",
  
"to": "btc",
  
"status": "waiting",
  
"addressReceive": "some address",
  
"addressDeposit": "some address",
  
"extraIdReceive": "",
  
"amountDeposit": "0.1",
  
"amountEstimated": "0.0061209",
  
"createdAt": "2021-07-12T14:17:34.210Z",
  
"refundExtraId": "",
  
"refundAddress": "",
  
"email": ""
}
copy request