Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Fixed lines and added warning "stop editing after this line"
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Miu committed Aug 14, 2017
1 parent 8b50606 commit 9c45f80
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
$sell_percentage = '10'; // e.g sell after 10% price increase
$buy_percentage = '-10'; // e.g sell after 10% price fall


/* STOP EDITING AFTER THIS LINE IF YOU DON'T KNOW WHAT YOU'RE DOING! */

$get_object = $API_Client->getOrderHistory ($tradingMarket);
$getOrderHistory = json_decode(json_encode($get_object),true);
$get_keys_buy = findKeys($getOrderHistory,'OrderType','==','LIMIT_BUY');
Expand Down Expand Up @@ -104,13 +107,6 @@
}
}








function findKeys($array,$field,$condition,$value) {
foreach ($array as $key=>$info) {
eval('if ($info[$field] '.$condition.' $value) {
Expand Down

0 comments on commit 9c45f80

Please sign in to comment.