Public API is used to provide access to the list of used currencies with real-time market data on each.
There are four methods: info, ticker, depth, trades.
info
Parameters: none
Method provides information on active pairs: currency scale (number of digits to the right of the decimal point), minimum price, maximum price, minimum order amount, market status, trading fee.
Example:
https://www.bithash.net/api/info
ticker
Parameters: none or various hyphen-separated currency pairs (example: btc_usd-btc_eur)
With no parameters passed you get information on all active pairs.
Method provides information on active markets for the past 24 hours: maximum price, minimum price, average price, trading value, trading volume, last price, buy price, sell price.
Examples:
https://www.bithash.net/api/ticker
https://www.bithash.net/api/ticker/btc_usd
https://www.bithash.net/api/ticker/btc_usd-btc_rub
depth
Parameters: none or various hyphen-separated currency pairs (example: btc_usd-btc_eur)
With no parameters passed you get information on all active pairs.
Method provides information on active order books: sell orders (ASK), buy orders (BID).
Examples:
https://www.bithash.net/api/depth
https://www.bithash.net/api/depth/btc_usd
https://www.bithash.net/api/depth/btc_usd-btc_rub
trades
Parameters: none or various hyphen-separated currency pairs (example: btc_usd-btc_eur)
With no parameters passed you get information on all active pairs.
Method provides information on the last active trades: type, price, amount, trade ID, timestamp.
Examples:
https://www.bithash.net/api/trades
https://www.bithash.net/api/trades/btc_usd
https://www.bithash.net/api/trades/btc_usd-btc_rub
Need help with API? - Submit a ticket