ASSETS Endpoints

Get live exchange rates for major currency pairs

get

Returns live bid (sell price) and ask (buy price) for a trading pair. IMPORTANT: Prices do not include the service commission applied to the account.

Authorizations
Path parameters
pairstring · enumRequired

The pair of two currencies

Possible values:
Responses
200Success
application/json
get
GET /assets/rates/{pair} HTTP/1.1
Host: tunell-gateway.ecng.digital
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "pair": "text",
  "ask": 1,
  "bid": 1
}

Get live network fee for major currencies

get
Authorizations
Path parameters
currencystring · enumRequired

The name of currency (values: any native currency from supported, Stable_ERC20 or Stable_TRC20)

Possible values:
Responses
200Success
application/json
get
GET /assets/networkFee/{currency} HTTP/1.1
Host: tunell-gateway.ecng.digital
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "inNative": 1,
  "inStable": 1
}
get
Authorizations
Responses
200Success
application/json
get
GET /assets/supported HTTP/1.1
Host: tunell-gateway.ecng.digital
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "supportedCurrencies": [
    {
      "currency": "BTC",
      "currencyName": "Bitcoin",
      "decimals": "8",
      "transactionTypes": [
        {
          "deposit": {
            "supported": true
          },
          "withdrawal": {
            "supported": true
          },
          "incoming": {
            "supported": true,
            "exchangeTo": [
              "USD",
              "EUR",
              "USDT_ERC20"
            ]
          },
          "outgoing": {
            "supported": true,
            "exchangeFrom": [
              "USD",
              "EUR",
              "USDT_ERC20"
            ]
          }
        }
      ]
    }
  ]
}

Last updated