- Base API Endpoint: https://publicapi.bitcoinbing.io
- All public api will return either JSON or Array object.
- Data is returned in descending order. Newest first, oldest last.
- All time and timestamp related fields are in seconds.
-
GET
/api/public/market-status
Live link"Market Status" will give your an overview of markets and assets. This is helpful when you want to track the configuration of our markets, track fees or status of withdrawal deposit, market configuration and more. This response is not recommended for price polling because accurate realtime price is not guaranteed as there could be some delays. We recommend using price ticker API for all price tracking activity.
Response object will have 2 keys
Markets
(all market related configs will be in this key) andAssets
(all assets related configs will be here).{ "Markets": [ { "coin": "BTC", "pair": "USDT", "fee": 0.25, "basePrecision": 0, "quotePrecision": 8, "minBuyAmount": 5.0, "minSellAmount": 5.0, "tradingStatus": "enable", "low": 9776.53700514, "high": 10957.42273101, "close": 10844.70389819, "open": 10648.15092657, "volumefrom": "272,755.19589541", "volumeto": "534,223.16923906", "timestamp": 1562146720 }, ... ], "Assets": [ { "coin": "BTC", "name": "Bitcoin", "deposit": "enable", "withdrawal": "enable", "minWithdrawalAmount": "0.002", "withdrawalFee": "0.001" }, ... ] }
-
Markets
key has multiple market related configuration, and description of every field in market is as below:coin
: Coin name.pair
: Pair name.fee
: Fee consists ofbuy
andsell
order's fee percentage.basePrecision
: Maximum precision of base asset, this the decimal point.quotePrecision
: Maximum precision of quote asset.minBuyAmount
: Minimum buy amount of base asset.minSellAmount
: Minumum sell amount of base asset.tradingStatus
:Trading Status.low
: 24 hrs lowest price of base coin & pair.high
: 24 hrs highest price of base coin & pair.close
: Last traded price in current market.open
: Market Open price 24hrs ago.volumefrom
: Previous 24hrs traded volume.volumeto
: Current traded volume.timestamp
: Timestamp when information is fetched.
-
Assets
key have multiple asset related configuration as described below:coin
: Coin name.name
: Display name of asset.deposit
: Denotes whether deposit is enabled or disabled.withdrawal
: Denotes whether withdrawal is enabled or disabled.minWithdrawAmount
: Minimum withdrawal amount in a single transaction.withdrawFee
: Withdrawal fee of asset.
-
-
GET
/api/public/market-ticker
Live linkGet the latest market heart-beat for all the markets for the last 24hrs.
Returns JSON response which has active market data with all ticker related values.
{ "btcusdt": { "coin": "BTC", "pair": "USDT", "name": "BTC/USDT", "buy": 11106.69555345, "sell": 11139.17860952, "low": 9776.53700514, "high": 10957.42273101, "close": 10844.70389819, "open": 10648.15092657, "volume": "534,223.16923906", "timestamp": 1562148430 }, ... }
Response has multiple key which denotes market data, this is in JSON. Find all the fields below:
coin
: Coin namepair
: Pair namename
: Display text.buy
: Last buy order pricesell
: Last sell order pricelow
: 24 hrs lowest price of base assethigh
: 24 hrs highest price of base assetclose
: Last traded price in current marketopen
: Market Open price 24hrs agovolume
: Last 24hrs traded volumetimestamp
: Timestamp when ticker information is fetched
-
GET
/api/public/market-depth
Live linkGet last 25 orders for any market
Returns JSON response which has order book of a perticular market
{ "buy":[ [ "11,389.20344241", "0.00263210" ], ... ], "sell":[ [ "11,394.37373348", "0.00360129" ], ... ], "timestamp":1559561187, }
["11,389.20344241","0.00263210"]
: [ PRICE, AMOUNT ]- URL param
fsym=BTC&tsym=USDT
: Replace this with any market to get the desired order book. fsym='COIN_NAME' and tsym='PAIR_NAME'
-
GET
api/public/trading-history
Live linkGet trade history of a market
Returns JSON response which has trade history of a perticular market
[ { "code": "BTC", "pair": "USDT", "type": "Buy", "price": "11,412.51340509", "amount": "0.00305040", "timestamp": "1562149565" } ... ]
- URL param
fsym=BTC&tsym=USDT
: Replace this with any market to get the desired order book. fsym='COIN_NAME' and tsym='PAIR_NAME'
- URL param
If you have any questions regarding APIs, please reach out to us at [email protected]