# 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"
                    }
                 ]
              },
        ...
    ]   
}

# Supported Cryptocurrencies

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"],"buy":["BTC","ZIL"]}

# 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",
  },
]