INFO
Endpoint is to provide general information about the exchange.
Sample Request:
https://www.bithash.net/api/v4/info
Sample Response:
{ "name": "BitHash", "description": "BitHash Cryptocurrency Exchange was established in 2016 in Singapore with more than 100 pairs available for trading cryptocurrency - Bitcoin (BTC), Ethereum (ETH), Litecoin (LTC), Bitcoin Cash (BCH), Ethereum Classic (ETC), Dash (DASH), EOS (EOS), Monero (XMR), Ripple (XRP), Zcash (ZEC). To start trading cryptocurrency you have to sign up at BitHash Exchange with your e-mail address. You will receive an activation link and your login details. After you visit the link and sign in to your account you can start trading cryptocurrencies. BitHash Rocket Launchpad Platform offers Initial Exchange Offering (IEO) token listing. Up to 20% fee payouts with Multi-level Referral Bonus Program. Trading fee is 0.1% (makers and takers). Deposit and withdrawal fees are based on currency type, it's network difficulty and other circumstances. You can see the actual deposit and withdrawal fees for the selected currency on the appropriate page. BitHash Exchange is operated by PHOENIX TRADING SOLUTIONS LTD, a company incorporated under the International Business Companies Act of 2016 of the Republic of Seychelles with company number 214028. Global Gateway 8, Rue de la Perle, Providence, Mahe, Seychelles. PHOENIX TRADING SOLUTIONS LTD. IBC NO 214028", "location": "Singapore", "logo": "https://support.bithash.net/hc/article_attachments/360036986191/1500x1500.png", "website": "https://www.bithash.net", "twitter": "bithash", "version": "1.0", "capability": { "assets": true, "markets": true, "trades": true, "orders": true, "ordersSnapshot": false, "candles": false, "ticker": false } }
ASSETS
In depth details on cryptocurrencies available on the exchange.
Endpoint is to provide a detailed summary for each currency available on the exchange.
Sample Request:
https://www.bithash.net/api/v4/assets
Sample Response:
{
"BTC": {
"name": "Bitcoin",
"unified_cryptoasset_id": "1",
"can_withdraw": "true",
"can_deposit": "true",
"min_withdraw": "0.00100000",
"max_withdraw": "100000.00000000",
"maker_fee": "0.1",
"taker_fee": "0.1"
},
...
"ZEC": {
"name": "Zcash",
"unified_cryptoasset_id": "1437",
"can_withdraw": "true",
"can_deposit": "true",
"min_withdraw": "0.30000000",
"max_withdraw": "100000.00000000",
"maker_fee": "0.1",
"taker_fee": "0.1"
}
}
MARKETS
Endpoint is to provide a list of all available markets on the exchange.
Sample Request:
https://www.bithash.net/api/v4/markets
Sample Response:
{
{ "id": "BTC_USD", "type": "spot", "base": "BTC", "quote": "USD", "active": true, "buy_min": "0.00010000", "buy_max": "100.00000000", "buy_fee": "0.10", "sell_min": "0.00010000", "sell_max": "100.00000000", "sell_fee": "0.10", "market_url": "https://www.bithash.net/en/exchange/btc/usd" },
...
{ "id": "EOS_EUR", "type": "spot", "base": "EOS", "quote": "EUR", "active": true, "buy_min": "0.10000000", "buy_max": "100000.00000000", "buy_fee": "0.10", "sell_min": "0.10000000", "sell_max": "100000.00000000", "sell_fee": "0.10", "market_url": "https://www.bithash.net/en/exchange/eos/eur" }
}
SUMMARY
Endpoint is to provide an overview of market data for all tickers and all market pairs on the exchange
Sample Request:
https://www.bithash.net/api/v4/summary
Sample Response:
[
{ "trading_pairs": "BTC_USD", "base_currency": "BTC", "quote_currency": "USD", "last_price": "19166.00000000", "lowest_ask": "19166.00000000", "highest_bid": "19132.00000000", "base_volume": "401.06066028", "quote_volume": "7636067.51497663", "price_change_percent_24h": "3.583203", "highest_price_24h": "19389.00000000", "lowest_price_24h": "18503.00000000" },
...
{ "trading_pairs": "ZEC_USD", "base_currency": "ZEC", "quote_currency": "USD", "last_price": "83.55600000", "lowest_ask": "83.55600000", "highest_bid": "82.86100000", "base_volume": "5195.02263372", "quote_volume": "435610.99969077", "price_change_percent_24h": "5.606673", "highest_price_24h": "88.78500000", "lowest_price_24h": "77.74200000" }
]
TICKER
24-hour rolling window price change statistics for all markets.
Endpoint is to provide a 24-hour pricing and volume summary on the exchange.
Sample Request:
https://www.bithash.net/api/v4/ticker
Sample Response:
{ "BTC_USD": { "base_id": "1", "quote_id": "0", "avg_price": "7394.12303732", "last_price": "7392.70000000", "low24h_price": "7293.10000000", "high24h_price": "7507.00000000", "highest_bid": "7392.60000000", "lowest_ask": "7392.70000000", "base_volume": "558.37437093", "quote_volume": "4128967.38083261", "isFrozen": "0" },
...
"BTC_USDT": { "base_id": "1", "quote_id": "825", "avg_price": "7352.48760407", "last_price": "7363.90000000", "low24h_price": "7263.80000000", "high24h_price": "7479.10000000", "highest_bid": "7363.90000000", "lowest_ask": "7364.10000000", "base_volume": "660.31207188", "quote_volume": "4855028.21741446", "isFrozen": "0" } }
ORDERBOOK
Market depth of a trading pair.
One array containing a list of ask prices and another array containing bid prices.
Sample Request:
https://www.bithash.net/api/v4/orderbook/BTC_USD?depth=5&level=2
Sample Response:
{ "timestamp": "1575263237", "asks": [ [ 7392.7, 0.14443097 ], [ 7395.4, 0.11675523 ], [ 7399.5, 0.02159067 ], [ 7402.7, 0.08687635 ], [ 7403.4, 0.02456089 ] ], "bids": [ [ 7392.6, 0.11519545 ], [ 7388.4, 0.0385034 ], [ 7388, 0.14806346 ], [ 7385.7, 0.31110049 ], [ 7383.3, 0.1759838 ] ] }
TRADES
Recently completed trades for a given market for the last 24 hours
The trades endpoint is to return data on all recently completed trades for a given market pair.
Sample Request:
https://www.bithash.net/api/v4/trades/BTC_USD
Sample Response:
[ { "trade_id": 198101760, "price": 7403.9, "base_volume": 0.13755688, "quote_volume": 1018.45738383, "trade_timestamp": 1575263307, "type": "sell" }, { "trade_id": 198101755, "price": 7403.9, "base_volume": 0.13755688, "quote_volume": 1018.45738383, "trade_timestamp": 1575263307, "type": "buy" }
]
CHARTS
Candlestick Charting data.
The trades endpoint is to return charting data on all recently completed trades for a given market pair.
Request Parameters:
Name |
Type |
Required |
Description |
resolution | string | no | Chart resolution |
from | long | no | Start timestamp |
to | long | no | End timestamp |
Possible resolution values are:
15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 24h (defaults to 1h)
Timestamps should be passed in milliseconds.
If no timestams are passed data will be shown on the last 24 hours.
Response Parameters:
Returns an array with the indexes:
Index | Type | Description |
0 | long | Timestamp |
1 | double | Open Price |
2 | double | High Price |
3 | double | Low Price |
4 | double | Close Price |
5 | double | Volume |
Sample Request:
https://www.bithash.net/api/v4/charts/BTC_USD
Sample Response:
{ "items": [ [ 1639509061, 46842, 46985, 46770, 46875, 24.18899768 ],
...
[ 1640113201, 48440, 48549, 48440, 48542, 6.91184508 ] ] }