Created
April 23, 2018 18:37
-
-
Save ekam230/bd2c6f7895e8f4b4178838b50b9ca7ed to your computer and use it in GitHub Desktop.
EditOrder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($getOrder["ordStatus"] == "New"){ | |
message("Try Edit Order"); | |
//беру цену | |
$editOrder = array(); | |
while ($editOrder != TRUE) { | |
$priceNow = array(); | |
while ($priceNow != TRUE){ | |
$priceNow=$bitmex2->getTicker("XBTUSD"); | |
usleep(1000);} | |
message("Get price OK. Price=".$priceNow); | |
$ordnum=$getOrder["orderID"]; | |
message($ordnum); | |
$editOrder=$bitmex2->editOrderPrice($ordnum,$priceNow["bid"]); | |
usleep(510); | |
} | |
message("Edit Order OK"); | |
$orderNow = array(); | |
usleep(510); | |
goto point1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment