Skip to content

Commit

Permalink
Fix STOP_LOSS_LIMIT for orders
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Eyrick authored Jan 30, 2018
1 parent 55e9c2f commit be2bb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function order($side, $symbol, $quantity, $price, $type = "LIMIT", $flags
"quantity" => $quantity,
"recvWindow" => 60000
];
if ( $type == "LIMIT" ) {
if ( $type === "LIMIT" || $type === "STOP_LOSS_LIMIT" || $type === "TAKE_PROFIT_LIMIT" ) {
$opt["price"] = $price;
$opt["timeInForce"] = "GTC";
}
Expand Down

0 comments on commit be2bb60

Please sign in to comment.