diff --git a/php-binance-api.php b/php-binance-api.php index 44de0a4b..5a74a812 100644 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -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"; }