PUBLIC API

1.Get Exchange Info

Return all the Information about bitspay

https://api.bitspay.io/info

Return data example:

{"name":"Bitspay","description":"Bitspay Exchange is the world's leading cryptocurrency exchange, supports a variety of digital cryptocurrency transactions, is committed to discovering high-quality innovative digital asset investment opportunities, and provides safe and efficient global digital asset enthusiasts by building a first-class platform and integrating quality assets.","location":"London","logo":"https://www.bitspay.io/assets/images/logo.png","website":"https://www.bitspay.io/","twitter":"https://twitter.com/Bitspay_io","telegram":"https://t.me/Bitspay_official","linkedin":"https://www.linkedin.com/company/bitspay/?viewAsMember=true","capability":{"markets":true,"trades":true,"tradesSocket":false,"orders":true,"ordersSocket":false,"ordersSnapshot":false,"candles":true}}

2.Get All Vendors info in Exchange

Return all the Information about bitspay

http://api.bitspay.io/assets/all

Return data example:

{"status":1,"message":"Success","result":{"BTC":{"unified_cryptoasset_id":"1","lastUpdateTimestamp":"2020-03-04T11:47:41.978Z","name":"BITCOIN","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":0.0013,"max_Withdrawal":0.15,"maker_Fee":0.0015,"taker_Fee":0.001},"ETH":{"unified_cryptoasset_id":"1027","lastUpdateTimestamp":"2020-03-04T11:47:41.978Z","name":"Ethereum","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":0.033,"max_Withdrawal":5,"maker_Fee":0.0015,"taker_Fee":0.001},"XRP":{"unified_cryptoasset_id":"52","lastUpdateTimestamp":"2020-03-04T11:47:41.978Z","name":"Ripple","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":5,"max_Withdrawal":3127,"maker_Fee":0.0015,"taker_Fee":0.001},"LTC":{"unified_cryptoasset_id":"2","lastUpdateTimestamp":"2020-03-04T11:47:41.978Z","name":"Lite Coin","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":0.086,"max_Withdrawal":11,"maker_Fee":0.0015,"taker_Fee":0.001},"BCH":{"unified_cryptoasset_id":"1831","lastUpdateTimestamp":"2020-03-04T11:47:41.978Z","name":"BitCoin Cash","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":0.024,"max_Withdrawal":3.5,"maker_Fee":0.0015,"taker_Fee":0.001},"USDT":{"unified_cryptoasset_id":"825","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"TETHER","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":5,"max_Withdrawal":1000,"maker_Fee":0.0015,"taker_Fee":0.001},"USDC":{"unified_cryptoasset_id":"3408","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"USD Coin","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":10,"max_Withdrawal":1000,"maker_Fee":0.0015,"taker_Fee":0.001},"BSV":{"unified_cryptoasset_id":"3602","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"Bitcoin SV","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":0.25,"max_Withdrawal":7,"maker_Fee":0.0015,"taker_Fee":0.001},"BNB":{"unified_cryptoasset_id":"1839","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"Binance Coin","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":0.15,"max_Withdrawal":40,"maker_Fee":0.0015,"taker_Fee":0.001},"TRX":{"unified_cryptoasset_id":"1958","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"TRON","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":30,"max_Withdrawal":50,"maker_Fee":0.0015,"taker_Fee":0.001},"ETC":{"unified_cryptoasset_id":"1321","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"Ethereum Classic","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":3,"max_Withdrawal":170,"maker_Fee":0.0015,"taker_Fee":0.001},"XMR":{"unified_cryptoasset_id":"328","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"Monero","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":10,"max_Withdrawal":15,"maker_Fee":0.0015,"taker_Fee":0.001},"WAVES":{"unified_cryptoasset_id":"1274","lastUpdateTimestamp":"2020-03-04T11:47:41.979Z","name":"Waves","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":1,"max_Withdrawal":750,"maker_Fee":0.0015,"taker_Fee":0.001}}}

3.Get Selected Vendors in Exchange

Return all the Information about bitspay

http://api.bitspay.io/assets/BTC

Return data example:

{"status":1,"message":"Success","unified_cryptoasset_id":"1","lastUpdateTimestamp":"2020-03-04T11:49:18.154Z","name":"BITCOIN","can_Withdraw":true,"can_Deposit":true,"min_Withdrawal":0.0013,"max_Withdrawal":0.15,"maker_Fee":0.0015,"taker_Fee":0.001}

4.Get All Market Pairs

Return all the trading pairs supported by bitspay Market.

http://api.bitspay.io/getavailablepairs/

Return data example:

{"status":1,"message":"Success","combinations":["BTC_ETH","BTC_USDT","BTC_USDC","ETH_BTC","ETH_USDT","ETH_USDC","XRP_BTC","XRP_ETH","XRP_USDT","XRP_USDC","LTC_BTC","LTC_ETH","LTC_USDT","LTC_USDC","BCH_BTC","BCH_ETH","BCH_USDT","BCH_USDC","USDT_BTC","USDT_ETH","USDT_USDC","USDC_BTC","USDC_ETH","USDC_USDT","BSV_BTC","BSV_ETH","BSV_USDT","BSV_USDC","BNB_BTC","BNB_ETH","BNB_USDT","BNB_USDC","TRX_BTC","TRX_ETH","TRX_USDT","TRX_USDC","ETC_BTC","ETC_ETH","ETC_USDT","ETC_USDC","XMR_BTC","XMR_ETH","XMR_USDT","XMR_USDC","WAVES_BTC","WAVES_ETH","WAVES_USDT","WAVES_USDC"]}

5.Get Market id's

Return all the available market references in bitspay

http://api.bitspay.io/markets/

Return data example:

{"status":1,"message":"Success","combinations":[{"id":"BTC_ETH","base":"BTC","quote":"ETH"},{"id":"BTC_USDT","base":"BTC","quote":"USDT"},{"id":"BTC_USDC","base":"BTC","quote":"USDC"},{"id":"ETH_BTC","base":"ETH","quote":"BTC"},{"id":"ETH_USDT","base":"ETH","quote":"USDT"},{"id":"ETH_USDC","base":"ETH","quote":"USDC"},{"id":"XRP_BTC","base":"XRP","quote":"BTC"},{"id":"XRP_ETH","base":"XRP","quote":"ETH"},{"id":"XRP_USDT","base":"XRP","quote":"USDT"},{"id":"XRP_USDC","base":"XRP","quote":"USDC"},{"id":"LTC_BTC","base":"LTC","quote":"BTC"},{"id":"LTC_ETH","base":"LTC","quote":"ETH"},{"id":"LTC_USDT","base":"LTC","quote":"USDT"},{"id":"LTC_USDC","base":"LTC","quote":"USDC"},{"id":"BCH_BTC","base":"BCH","quote":"BTC"},{"id":"BCH_ETH","base":"BCH","quote":"ETH"},{"id":"BCH_USDT","base":"BCH","quote":"USDT"},{"id":"BCH_USDC","base":"BCH","quote":"USDC"},{"id":"USDT_BTC","base":"USDT","quote":"BTC"},{"id":"USDT_ETH","base":"USDT","quote":"ETH"},{"id":"USDT_USDC","base":"USDT","quote":"USDC"},{"id":"USDC_BTC","base":"USDC","quote":"BTC"},{"id":"USDC_ETH","base":"USDC","quote":"ETH"},{"id":"USDC_USDT","base":"USDC","quote":"USDT"},{"id":"BSV_BTC","base":"BSV","quote":"BTC"},{"id":"BSV_ETH","base":"BSV","quote":"ETH"},{"id":"BSV_USDT","base":"BSV","quote":"USDT"},{"id":"BSV_USDC","base":"BSV","quote":"USDC"},{"id":"BNB_BTC","base":"BNB","quote":"BTC"},{"id":"BNB_ETH","base":"BNB","quote":"ETH"},{"id":"BNB_USDT","base":"BNB","quote":"USDT"},{"id":"BNB_USDC","base":"BNB","quote":"USDC"},{"id":"TRX_BTC","base":"TRX","quote":"BTC"},{"id":"TRX_ETH","base":"TRX","quote":"ETH"},{"id":"TRX_USDT","base":"TRX","quote":"USDT"},{"id":"TRX_USDC","base":"TRX","quote":"USDC"},{"id":"ETC_BTC","base":"ETC","quote":"BTC"},{"id":"ETC_ETH","base":"ETC","quote":"ETH"},{"id":"ETC_USDT","base":"ETC","quote":"USDT"},{"id":"ETC_USDC","base":"ETC","quote":"USDC"},{"id":"XMR_BTC","base":"XMR","quote":"BTC"},{"id":"XMR_ETH","base":"XMR","quote":"ETH"},{"id":"XMR_USDT","base":"XMR","quote":"USDT"},{"id":"XMR_USDC","base":"XMR","quote":"USDC"},{"id":"WAVES_BTC","base":"WAVES","quote":"BTC"},{"id":"WAVES_ETH","base":"WAVES","quote":"ETH"},{"id":"WAVES_USDT","base":"WAVES","quote":"USDT"},{"id":"WAVES_USDC","base":"WAVES","quote":"USDC"}]}

6.Listed Vendors Information

returns the tickers for all the supported trading pairs at once, cached in 10 seconds::

http://api.bitspay.io/getVendorInfo/

Return data example:

{"status":1,"message":"Success","vendors":[{"vendors_vendorname":"BITCOIN","vendors_vendorshortcode":"BTC","vendors_maxsupply":"21,000,000","vendors_minsupply":"17,786,937","vendors_website":"https://bitcoin.org/en/","vendors_githubsource":"https://github.com/bitcoin/","vendors_bitcointalk":"https://bitcointalk.org/","vendors_blockexplorersource":"https://blockchain.coinmarketcap.com/chain/bitcoin","vendors_minwithdraw":0.0013,"vendors_mindeposit":0.0017,"vendors_maxwithdraw":0.15,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":0.00043,"vendors_usdrate":8810.71624138,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"Ethereum","vendors_vendorshortcode":"ETH","vendors_maxsupply":"Infinity","vendors_minsupply":"106,686,762","vendors_website":"https://www.ethereum.org/","vendors_githubsource":"https://github.com/ethereum","vendors_bitcointalk":"https://bitcointalk.org/index.php?topic=428589.0","vendors_blockexplorersource":"https://etherscan.io/","vendors_minwithdraw":0.033,"vendors_mindeposit":0.033,"vendors_maxwithdraw":5,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":0.017,"vendors_usdrate":225.892548443,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"Ripple","vendors_vendorshortcode":"XRP","vendors_maxsupply":"99,991,588,101","vendors_minsupply":"42,566,596,173","vendors_website":"https://ripple.com/","vendors_githubsource":"https://github.com/ripple","vendors_bitcointalk":"https://bitcointalk.org/index.php?topic=1381669.0","vendors_blockexplorersource":"https://xrpcharts.ripple.com/#/graph/","vendors_minwithdraw":5,"vendors_mindeposit":10,"vendors_maxwithdraw":3127,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":1,"vendors_usdrate":0.2363061785,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"Lite Coin","vendors_vendorshortcode":"LTC","vendors_maxsupply":"84,000,000","vendors_minsupply":"62,438,726","vendors_website":"https://litecoin.com/","vendors_githubsource":"https://github.com/litecoin-project/litecoin","vendors_bitcointalk":"https://bitcointalk.org/index.php?topic=47417.0","vendors_blockexplorersource":"http://explorer.litecoin.net/chain/Litecoin","vendors_minwithdraw":0.086,"vendors_mindeposit":0.086,"vendors_maxwithdraw":11,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":0.043,"vendors_usdrate":60.8858675756,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"BitCoin Cash","vendors_vendorshortcode":"BCH","vendors_maxsupply":"21,000,000","vendors_minsupply":"17,863,638","vendors_website":"https://www.bitcoincash.org/","vendors_githubsource":"https://github.com/bitcoincashorg/","vendors_bitcointalk":"https://bitcointalk.org/index.php?topic=2040221.0","vendors_blockexplorersource":"https://blockchair.com/bitcoin-cash/blocks","vendors_minwithdraw":0.024,"vendors_mindeposit":0.036,"vendors_maxwithdraw":3.5,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":0.012,"vendors_usdrate":328.410440669,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"TETHER","vendors_vendorshortcode":"USDT","vendors_maxsupply":"3,820,057,493","vendors_minsupply":"3,598,378,341","vendors_website":"https://tether.to/","vendors_githubsource":"https://github.com/HubSpot/tether","vendors_bitcointalk":"https://tether.to/announcement/","vendors_blockexplorersource":"http://omnichest.info/lookupsp.aspx?sp=31","vendors_minwithdraw":5,"vendors_mindeposit":10,"vendors_maxwithdraw":1000,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":2,"vendors_usdrate":1.0031560389,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"USD Coin","vendors_vendorshortcode":"USDC","vendors_maxsupply":"360,369,289","vendors_minsupply":"359,951,528","vendors_website":"https://www.centre.io/usdc","vendors_githubsource":"https://github.com/centrehq/centre-tokens","vendors_bitcointalk":"https://blog.circle.com/2018/09/26/introducing-usd-coin/#","vendors_blockexplorersource":"https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","vendors_minwithdraw":10,"vendors_mindeposit":10,"vendors_maxwithdraw":1000,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":1.5,"vendors_usdrate":1.001382202,"vendors_contractaddress":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","vendors_decimals":6},{"vendors_vendorname":"Bitcoin SV","vendors_vendorshortcode":"BSV","vendors_maxsupply":"21,000,000","vendors_minsupply":"17,854,986","vendors_website":"https://bitcoinsv.io/","vendors_githubsource":"https://github.com/bitcoin-sv/bitcoin-sv","vendors_bitcointalk":"https://bitcoinsv.io/news/","vendors_blockexplorersource":"https://blockchair.com/bitcoin-sv","vendors_minwithdraw":0.25,"vendors_mindeposit":0.15,"vendors_maxwithdraw":7,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":0.023,"vendors_usdrate":246.585566787,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"Binance Coin","vendors_vendorshortcode":"BNB","vendors_maxsupply":"189,175,490","vendors_minsupply":"141,175,490","vendors_website":"https://www.binance.com/en","vendors_githubsource":"https://www.binance.com/resources/ico/Binance_WhitePaper_en.pdf","vendors_bitcointalk":"https://binance.zendesk.com/hc/en-us/signin?return_to=https%3A%2F%2Fbinance.zendesk.com%2Fhc%2Fen-us%2Farticles%2F115000497111-Binance-Coin-BNB-","vendors_blockexplorersource":"https://explorer.binance.org/","vendors_minwithdraw":0.15,"vendors_mindeposit":0.15,"vendors_maxwithdraw":40,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":0.087,"vendors_usdrate":20.1066989528,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"TRON","vendors_vendorshortcode":"TRX","vendors_maxsupply":"99,281,283,754","vendors_minsupply":"66,682,072,191","vendors_website":"https://tronscan.org/#/","vendors_githubsource":"https://github.com/tronprotocol","vendors_bitcointalk":"https://tron.network/","vendors_blockexplorersource":null,"vendors_minwithdraw":30,"vendors_mindeposit":35,"vendors_maxwithdraw":50,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":15,"vendors_usdrate":0.0174356623,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"Ethereum Classic","vendors_vendorshortcode":"ETC","vendors_maxsupply":"210,000,000","vendors_minsupply":"111,566,014","vendors_website":"https://ethereumclassic.org/","vendors_githubsource":"https://github.com/ethereumclassic/","vendors_bitcointalk":"https://bitcointalk.org/index.php?topic=1559630.0","vendors_blockexplorersource":"https://gastracker.io/","vendors_minwithdraw":3,"vendors_mindeposit":5,"vendors_maxwithdraw":170,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":0.641,"vendors_usdrate":8.2722956359,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"Monero","vendors_vendorshortcode":"XMR","vendors_maxsupply":"INFINITY","vendors_minsupply":"140,245,398","vendors_website":"https://ww.getmonero.org/","vendors_githubsource":"https://github.com/monero-project/monero","vendors_bitcointalk":"","vendors_blockexplorersource":"https://moneroblocks.info/","vendors_minwithdraw":10,"vendors_mindeposit":10,"vendors_maxwithdraw":15,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":5,"vendors_usdrate":67.3458740086,"vendors_contractaddress":"NONE","vendors_decimals":18},{"vendors_vendorname":"Waves","vendors_vendorshortcode":"WAVES","vendors_maxsupply":"100,000,000","vendors_minsupply":"100,000,000","vendors_website":"https://wavesplatform.com/","vendors_githubsource":"https://github.com/wavesplatform/","vendors_bitcointalk":"https://bitcointalk.org/index.php?topic=3223136.0","vendors_blockexplorersource":"http://wavesexplorer.com/","vendors_minwithdraw":1,"vendors_mindeposit":0,"vendors_maxwithdraw":750,"vendors_minbuyorder":0.0001,"vendors_minsellorder":0.0001,"vendors_status":"ACTIVE","vendors_salepricefee":0.0015,"vendors_buypricefee":0.001,"vendors_transferfee":2,"vendors_usdrate":1.1629374969,"vendors_contractaddress":"NONE","vendors_decimals":18}]}

7. 24 Hours Market Trade Details (CMC)

http://api.bitspay.io/getMarketDetailscmc/

Return data example:

{"status":1,"message":"Success","marketdetails":[]}

8. 24 Hours Market Trade Details

http://api.bitspay.io/getMarketDetails/

Return data example:

{"status":0,"message":"Invalid Request","marketdetails":[]}

9.All Market Details Information

Return the market depth including ask and bid orders.

http://api.bitspay.io/getCompleteMarkets/

Return data example:

{"status":0,"message":"Invalid Request","marketdetails":[]}

10.Seleted Market Information

Return the most recent 80 trade history records:

http://api.bitspay.io/getSelectedMarket/BTC_USDT

Return data example:

{"status":1,"message":"Success","marketdetails":[]}

11.Seleted Market Information

Return all the Information about bitspay

http://api.bitspay.io/getOrderBook/BTC_USDT

Return data example:

{"status":1,"message":"Success","orderbook":[]}

12.Seleted Market Information

Return all the Information about bitspay

http://api.bitspay.io/orderbook/BTC_USDT

Return data example:

{"status":1,"message":"Success","orderbook":[]}

13.Pending Orders of Selected Combination

Return all the Information about Vendor

http://api.bitspay.io/depth/BTC_USDT

Return data example:

{"status":1,"message":"Success","lastUpdateTimestamp":"2020-03-04T11:54:44.234Z","asks":[],"bids":[]}

14.Pending Orders of Selected Combination

Return all the trading pairs supported by bitspay

http://api.bitspay.io/getTradeBook/BTC_USDT

Return data example:

{"status":1,"message":"Success","orderbook":[]}

15.Trade Information for Selected Pairs

Returns all markets' fee, minimum order total amount, price decimal places.

http://api.bitspay.io/trades/BTC_USDT

Return data example:

{"status":1,"message":"Success","orderbook":[]}

16.Trade Information for Selected Pairs

Returns market details including pair, coin name, coin symbol, last price, trading volume, coin supply, coin market cap, price trend, etc.

http://api.bitspay.io/getChartData/BTC_USDT

Return data example:

{"status":1,"message":"Success","analytics":[]}

17.ChartData for Selected Pairs

Returns market details including pair, coin name, coin symbol, last price, trading volume, coin supply, coin market cap, price trend, etc.

http://api.bitspay.io/getChartData/BTC_USDT

Return data example:

{"status":1,"message":"Success","analytics":[]}

18.Error code

Error codes details from system

Error codes Details
0 Invalid request
1 Success
2 Invalid request
3 Invalid request
4 Too many attempts
5 Currency is not supported
6,7 Currency is not supported
8 Empty params
9 Internal error, please report to administrator
10 Invalid User