Your self coded trading Bot
Your self coded Bot
If you are a developer yourself and have programmed your own trading bot, you can use our interface directly.Exchanges with MH Signals: Available: Bittrex, Poloniex, Binance
Price/month: Developer subscription or single user licence
Type: Multi user or single user Bot
Information about MiningHamster Signals integration
Decide first how to use your bot! You have two options. Of course we require sufficient knowledge in programming!
1. Your multi user Bot
1.1 What you need?:
Insert our script to your bot. (check script in your bot settings with active developer subscription)1.2 What your customers need?:
Your customers must subscribe to our signals on OUR site.
Each of your users needs a subscription on our website. After the subscription has been completed everyone gets their own individual API key.
This key can be used by the user in your bot to check the validation of the subscription.
We send you our signals directly to YOUR API without any usersettings.
1.3 HOW TO GET THE SIGNALS
Build your script, like the example below and enter your script-url in your profile to your BOT settings (developer subscription needed). We send you the signals directly to this script and to your database.
1.4 Simple PHP example to get our signals and save it to your database:
if ($_GET['bot_licencekey'] == "YOURBOTLICENCEKEY")
{
include("yoursqlconfig.php");
$sql = "INSERT INTO signals_import (signal_id,signalmode,market,exchange,price,basevol,signal_time,signals_qty,profit_avg,profit_median,profit_mode,profit_mode_qty)
VALUES (
'$_GET[signal_id]',
'$_GET[signalmode]',
'$_GET[market]',
'$_GET[exchange]',
'$_GET[price]',
'$_GET[basevol]',
'$_GET[date]',
'$_GET[signals_qty]',
'$_GET[profit_avg]',
'$_GET[profit_median]',
'$_GET[profit_mode]',
'$_GET[profit_mode_qty]')";
$conn->query($sql);
$conn->close();
}
1.5 Build a condition to your bot to check
Before submitting a signal to any of your customers, you need to check if your customers have added your BOT-customerkey to their MH profile.
After your customers added their personal API-Key to your bot account you can check if they have added your BOT-customerkey to their profile.
Manual check
If all is correct you see your BOT-customerkey
https://www.mininghamster.com/api/v2/botkeycheck/"thekeyfromyourcustomer"
Automated check
Include the following script to your bot and you get a true or false value. If your customer has enterer your bot customerkey correctly you will get a TRUE result. If your customer has not entered your bot customerkey you get a FALSE result. mh_customercheck.php (script to check automated with your bot)
$apikeyfromcustomer = "APIKEYFROMCUSTOMER";
$api = "https://www.mininghamster.com/api/v2/botkeycheck/$apikeyfromcustomer";
$json = file_get_contents($api);
$data_check = json_decode($json, TRUE);
if ($data_check[0]['key'] == "YOURBOTCUSTOMERKEY")
{
$success = "true";
}
else
{
$success = "false";
}
echo $success;
PRO:
- We send you the signals directly to your database
- You will earn 15% commission for each of your customers, every month.
- Your customers have access to our Telegram channels.
- Your customers can NOT use the various settings via their MiningHamster profile
2. Your single user Bot
2.1 Information
After the subscription has been completed you get your own individual API key.
This key can be used in your bot to connect to our api interface. That means, YOUR bot actively calls our interface at certain intervals and checks the signals. When a new signal appears, you need to make it available to your bot and your bot should trade with them.
2.2 HOW TO GET THE SIGNALS
You must call the following url with your key and you get a json output that you can save to your databasehttps://www.mininghamster.com/api/v2/API-KEY
PRO:
- You can use the various settings via your MiningHamster profile.
- You have access to our Telegram channels.
- Your bot has to make calls directly to our API.
- Only for single user bot's.