BTC/USD 3306.8 -1.25%
ETH/USD 86.1 -1.82%

API


Public API (v3)

  • 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
    Type: GET
    Endpoint: /api/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
    Type: GET
    Endpoint: /api/ticker

    Parameters: none or various hyphen-separated currency pairs (example: btc_usd-btc_eur)

    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.

    With no parameters passed you get information on all active pairs.

    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
    Type: GET
    Endpoint: /api/depth

    Parameters: none or various hyphen-separated currency pairs (example: btc_usd-btc_eur)

    Method provides information on active order books: sell orders (ASK), buy orders (BID).

    With no parameters passed you get information on all active pairs.

    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
    Type: GET
    Endpoint: /api/trades

    Parameters: none or various hyphen-separated currency pairs (example: btc_usd-btc_eur)

    Method provides information on the last active trades: type, price, amount, trade ID, timestamp.

    With no parameters passed you get information on all active pairs.

    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