# Misc

Bellow you can find other endpoints that could be useful for integration with XanPool.

# Payment Methods & Limits

Provides information regarding supported payment methods in each country as well as their limits.

Endpoint

GET /api/methods

Request Example

curl 
-H "Content-Type: application/json"
"https://xanpool.com/api/methods"

Response

{
   "buy":[
      {
         "country": "SG",
         "currency": "SGD",
         "methods":[
            {
               "method": "paynow",
               "max": 1000,
               "min": 40,
               "name": "PayNow"
            }
         ]
      },
      ...
    ],
    "sell": [
      {
         "country": "SG",
         "currency": "SGD",
         "methods":[
            {
               "method": "paynow",
               "max": 1000,
               "min": 40,
               "name": "PayNow"
            }
         ]
      },
      ...
    ]   
}

# Methods' icons

Provides svg icons for supported payment methods

Endpoint

GET /api/methods/icons

Request Example

curl 
-H "Content-Type: application/json"
"https://xanpool.com/api/methods/icons"

Response

{
    "paynow": "https://cdn.xanpool.com/icons/paynow.svg",
    "fps": "https://cdn.xanpool.com/icons/fps.svg",
    "prompt-pay": "https://cdn.xanpool.com/icons/promptpay.svg",
    "upi": "https://cdn.xanpool.com/icons/upi.svg",
    "duit-now": "https://cdn.xanpool.com/icons/duitnow.svg",
    "nz-bank-transfer": "https://cdn.xanpool.com/icons/bank.svg",
    "gojek-id": "https://cdn.xanpool.com/icons/gopay.svg",
    "instapay": "https://cdn.xanpool.com/icons/instapay.svg",
    "pay-id": "https://cdn.xanpool.com/icons/payid.svg",
    "viettel-pay": "https://cdn.xanpool.com/icons/viettelpay.svg"
}

# Supported Cryptocurrencies [DEPRECATED]

Provides information regarding supported cryptocurrencies.

Endpoint

GET /api/cryptocurrencies

Request Example

curl 
-H "Content-Type: application/json"
"https://xanpool.com/api/cryptocurrencies"

Response

{
   "sell":["BTC","USDT", "ZIL", "ETH"],
   "buy":["BTC", "ETH", "USDT", "ZIL", "XSGD", "NEM"]
}

# Supported Cryptocurrencies V2

Provides information regarding supported cryptocurrencies & chains.

Endpoint

GET /api/v2/cryptocurrencies

Request Example

curl 
-H "Content-Type: application/json"
"https://xanpool.com/api/v2/cryptocurrencies"

Response

{
   "buy":[
      {
         "currency": "BTC",
         "chains": ["bitcoin"],
      },
      ...
   ],
   "sell":[
      {
         "currency": "USDT",
         "chains": ["ethereum", "binance_smart_chain", "tron"],
      },
      ...
   ],
}

# Supported Cryptocurrencies & Limits [DEPRECATED]

Provides information regarding supported cryptocurrencies & limits.

Endpoint

GET /api/cryptocurrencies/limits

Request Example

curl 
-H "Content-Type: application/json"
"https://xanpool.com/api/cryptocurrencies/limits"

Response

{
   "buy":[
      {
         "currency": "BTC",
         "min": 0.0005,
      },
      ...
   ],
   "sell":[
      {
         "currency": "BTC",
         "min": 0.0005,
      },
      ...
   ],
}

# Supported Cryptocurrencies & Limits V2

Provides information regarding supported cryptocurrencies & limits.

Endpoint

GET /api/v2/cryptocurrencies/limits

Request Example

curl 
-H "Content-Type: application/json"
"https://xanpool.com/api/v2/cryptocurrencies/limits"

Response

{
   "buy":[
      {
         "chain": "bitcoin"
         "currency": "BTC",
         "min": 0.0005,
      },
      ...
   ],
   "sell":[
      {
         "chain": "ethereum",
         "currency": "USDT",
         "min": 100,
      },
      ...
   ],
}

# Prices

Provides cryptocurrencies's rates against local currencies.

Endpoint

GET /api/prices

Url parameters

Parameter Default Description
type none Either "sell" or "buy"
currencies none List of local currencies separated by comma
cryptoCurrencies none List of cryptocurrencies separated by comma

Request Example

curl 
-u {API_KEY}:{API_SECRET}
"https://xanpool.com/api/prices?currencies=SGD,HKD&cryptoCurrencies=BTC,ETH&type=buy"

Response

[
  {
    "cryptoCurrency": "BTC",
    "cryptoPrice": 7492.6804835252005,
    "cryptoPriceUsd": 5509.323884945,
    "currency": "SGD",
  },
  {
    "cryptoCurrency": "ETH",
    "cryptoPrice": 331.9338049343856,
    "cryptoPriceUsd": 244.06897421645996,
    "currency": "SGD",
  },
  {
    "cryptoCurrency": "BTC",
    "cryptoPrice": 42697.260108323746,
    "cryptoPriceUsd": 5509.323884945,
    "currency": "HKD",
  },
  {
    "cryptoCurrency": "ETH",
    "cryptoPrice": 1891.5345501775648,
    "cryptoPriceUsd": 244.06897421645996,
    "currency": "HKD",
  },
]

# Service Charge

Provides service charge percentage for local currencies

Endpoint

GET /api/service-charge

Request Example

curl 
-u {API_KEY}:{API_SECRET}
"https://xanpool.com/api/service-charge"

Response

{
   "buy":[
      {
         "currency": "SGD",
         "serviceChargePercent": 1.5,
      },
      ...
   ],
   "sell":[
      {
         "currency": "SGD",
         "serviceChargePercent": 1.8,
      },
      ...
   ],
}

# Fees

Provides gas fees for cryptocurrencies.

Endpoint

GET /api/fees

Url parameters

Parameter Default Description
cryptoCurrency none List of cryptocurrencies separated by comma
chain none Chain name

Request Example

curl 
-u {API_KEY}:{API_SECRET}
"https://xanpool.com/api/fees?cryptoCurrencies=ETH,USDT&chain=ethereum"

Response

[
  {
    "cryptoCurrency": "ETH",
    "chain": "ethereum",
    "fee": 0.000378,
    "unit": "eth"
  },
  {
    "cryptoCurrency": "USDT",
    "chain": "ethereum",
    "fee": 0.0009,
    "unit": "eth"
  }
]