Get ips

Example

{
  "msg": "",
  "code": "OK",
  "data": [
    "2.2.2.2"
  ]
}

Description

NameTypeDescription
[string]IP list of notification server.

Get currencies

Example

{
  "msg": "",
  "code": "OK",
  "data": [
    {
      "code": "BTC",
      "symbol": "₿",
      "name": "Bitcoin",
      "is_fiat": false
    },
    {
      "code": "SGD",
      "symbol": null,
      "name": "Singapore Dollar",
      "is_fiat": true
    },
    {
      "code": "ETH",
      "symbol": null,
      "name": "Ethereum",
      "is_fiat": false
    },
    {
      "code": "USDT",
      "symbol": null,
      "name": "USDT",
      "is_fiat": false
    },
    {
      "code": "USDC",
      "symbol": null,
      "name": "USDC",
      "is_fiat": false
    },
    {
      "code": "CNY",
      "symbol": "CN¥",
      "name": "Yuan Renminbi",
      "is_fiat": true
    },
    {
      "code": "USD",
      "symbol": "$",
      "name": "US Dollar",
      "is_fiat": true
    },
    {
      "code": "HKD",
      "symbol": null,
      "name": "Hong Kong Dollar",
      "is_fiat": true
    }
  ]
}

Description

NameTypeDescription
codestringCurrency code. Example: USD, CNY, BTC, ETH, USDT, USDC, etc.
symbolstringSpecial symbol for some currency. Example: $ ₿.
namestringCurrency name.
is_fiatboolCrypto currency

Get exchange rate

Example

{
  "msg": "",
  "code": "OK",
  "data": {
    "from": "BTC",
    "to": "USD",
    "rate": 46347.66
  }
}

Description

NameTypeDescription
fromstringCurrency code. Example: BTC, ETH, USDT, USDC, etc.
tostringCurrency code. Example: USD, CN, etc.
ratestringExchange rate of the currency pair.

Get exchange rates

Example

{
  "msg": "",
  "code": "OK",
  "data": [
    {
      "from": "BTC",
      "to": "USD",
      "rate": 46351.9
    },
    {
      "from": "ETH",
      "to": "USD",
      "rate": 3497.02
    },
    {
      "from": "USDT",
      "to": "USD",
      "rate": 1
    },
    {
      "from": "USDC",
      "to": "USD",
      "rate": 1
    }
  ]
}

Description

Same as response of get exchange rate.