BTC/USD:   1 hour: +0.21% | 2 hours: +0.50% | 6 hours: +0.56% | 12 hours: +0.50% | 24 hours: -1.86%
Cryptohopper trading bot

API

Note: Using the API interface only allowed for ONE user per key. If you use it with your self coded bot, please read YOURTRADINGBOT first.

Overview

MiningHamster provides a simple and powerful REST API to allow you to get the latest signal from our web interface. All requests use the application/json content type. The base url is https://mininghamster.com/api/v2/. All requests are GET requests and all responses come in a default response object.

Getting started

In the spirit of keeping things simple, we offer an easy to manage your API Key authentication method. Note, you MUST have an API-Key to get the latest signal.

$apikey='API_KEY'; 
$uri='https://www.mininghamster.com/api/v2/$apikey; 
$sign=hash_hmac('sha512',$uri,$apikey); 
$ch = curl_init($uri); 
curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign)); 
$execResult = curl_exec($ch); 
$obj = json_decode($execResult);

Deprecating

https://www.mininghamster.com/output/getsignal.php?key=API_KEY

Demo Key

Developers can test a random output signal which change every 30 minutes.

https://www.mininghamster.com/api/v2/288b2113-28ac-4b14-801f-f4d9cf9d87ad

Preview json request

	
0:	
market: "BTC-INS"
lastprice: "0.0000238"
signalmode: "buy"
exchange: "binance"
basevolume: 308.9336
time: "2019-08-31 18:18:07"
signalID: "bin_707152820"
signals_qty: 43
profit_avg: 7.84
profit_median: 5.13
profit_mode: 5
profit_mode_qty: 5

market the market where the signal appeared
lastprice signalprice to buy
signalmode the mode for signalcalculation: Different modes
exchange the exchange where the signal appeared. You can select your exchange output in your settings.
basevolume the basevolume of the market in BTC
time current time of the signal (CET)
signalID the unique signalID for this signal
signals_qty Amount of signals already sent for this marketpair and exchange.
profit_avg The average profit achieved so far by this marketpair and exchange
profit_median The medium profit for this marketpair and exchange.
The median is the value separating the higher half from the lower half of the signal profits. It may be thought of as the "middle" value.
profit_mode The mode profit for this marketpair and exchange.
The mode is the profit that occurs most often. If no profit in the list is repeated, then there is no mode for this marketpair.
profit_mode_qty The quantity of the mode profit for this marketpair and exchange

API options

Optionally, you can make the following settings in your profile.