List of API
Trading Pairs API

Return all the trading pairs supported by H2O Exchange

URL : https://www.h2oex.com/api/available_pairs

Return data example:

{"status":1,"message":"Success","combinations":["BTC_HKD","ETH_HKD","XRP_HKD","LTC_HKD","BTC_ETH","BTC_LTC","BTC_XRP"]}


Tickers API

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

URL : https://www.h2oex.com/api/tickers

Return data example:

{"status":1,"message":"Success","combinations":[{"pair":"BTC_HKD","lastbid":"37136.91","volume":"0.00","high":"0.00","low":"0.00","change":"0%"}...


Tickers API

Returns the current ticker for the selected pair, cached in 10 seconds:

URL : https://www.h2oex.com/api/customticker/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links :

https://www.h2oex.com/api/customticker/BTC_HKD

https://www.h2oex.com/api/customticker/ETH_HKD

https://www.h2oex.com/api/customticker/XRP_HKD

https://www.h2oex.com/api/customticker/LTC_HKD

https://www.h2oex.com/api/customticker/BTC_ETH

https://www.h2oex.com/api/customticker/BTC_LTC

https://www.h2oex.com/api/customticker/BTC_XRP

Return data example:

{"status":1,"message":"Success","combinations":{"pair":"BTC_HKD","lastbid":"37136.91","volume":"0.00","high":"0.00","low":"0.00","change":"0%"}}


Orderbook API

Returns the orderbook including ask and bid orders

URL : https://www.h2oex.com/api/orderbook/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links :

https://www.h2oex.com/api/orderbook/BTC_HKD

https://www.h2oex.com/api/orderbook/ETH_HKD

https://www.h2oex.com/api/orderbook/XRP_HKD

https://www.h2oex.com/api/orderbook/LTC_HKD

https://www.h2oex.com/api/orderbook/BTC_ETH

https://www.h2oex.com/api/orderbook/BTC_LTC

https://www.h2oex.com/api/orderbook/BTC_XRP

Return data example:

{"status":1,"message":"Success","asks":{"37296":{"amount":0.00362},"37277":{"amount":0.0031},"37248":{"amount":0.00217},"37240":{"amount":"0.00845000"}...


Trade History API

Returns the most recent trade history records

URL : https://www.h2oex.com/api/tradehistory/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links :

https://www.h2oex.com/api/tradehistory/BTC_HKD

https://www.h2oex.com/api/tradehistory/ETH_HKD

https://www.h2oex.com/api/tradehistory/XRP_HKD

https://www.h2oex.com/api/tradehistory/LTC_HKD

https://www.h2oex.com/api/tradehistory/BTC_ETH

https://www.h2oex.com/api/tradehistory/BTC_LTC

https://www.h2oex.com/api/tradehistory/BTC_XRP

Return data example:

{"status":1,"message":"Success","history":[{"pair":"BTC_HKD","tradeID":"eyZla1gyejgwc21IZXI4UjFTL3JoY1dNUT09JyP","type":"Sell","tradetime":"2019-02-20 11:52:16","amount":0.00055,"price":37136.91,"total":"20.42530050"}...


User Details API

Returns the details about the specific users

URL : https://www.h2oex.com/api/user

Method : POST

Hash : Ht0$^[email protected]&Ex

REQUEST PARAMETER TYPE DESCRIPTION
api_key String User's API Key generated in H2OExchange
sign String md5(Hash + User's API Key)

Return data example:

{"status":1,"result":{"email":"", ...}}


Make Order API

To place a limit order in H2OExchange for the specified pair.

URL : https://www.h2oex.com/api/place_order

Method : POST

Hash : Ht0$^[email protected]&Ex

REQUEST PARAMETER TYPE DESCRIPTION
api_key String User's API Key generated in H2OExchange
sign String md5(Hash + User's API Key)
order_type String Must be either buy or sell. Case sensitive
amount Decimal Trade amount. Supports upto 8 decimal places
price Decimal Trade price. Supports upto 8 decimal places. If price is HKD, supports only 2 decimals
pair String Selected Pair("BTC_HKD","ETH_HKD",..) Case sensitive

Return data example:

{"status":1,"message":"Order Placed!","tradeID":"UBGmeUdCdFRoRWVwTGRKVUdxNlRUL1ROUT09HsJ"}


Order Info API

Returns the details about the specified trade

URL : https://www.h2oex.com/api/order_info

Method : POST

Hash : Ht0$^[email protected]&Ex

REQUEST PARAMETER TYPE DESCRIPTION
api_key String User's API Key generated in H2OExchange
sign String md5(Hash + User's API Key)
order_id String Order ID received from place_order or from tradehistory response

Return data example:

{"status":1,"message":"Success","info":{"pair":"BTC_HKD","amount":...}}