Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public function numberOfDecimals($val = 0.00000001)
public function marketQuoteSell(string $symbol, $quantity, array $flags = [])
{
$flags['isQuoteOrder'] = true;
$c = $this->numberOfDecimals($this->exchangeInfo()['symbols'][$symbol]['filters'][2]['minQty']);
$c = $this->numberOfDecimals($this->exchangeInfo()['symbols'][$symbol]['filters'][1]['minQty']);
$quantity = $this->floorDecimal($quantity, $c);

return $this->order("SELL", $symbol, $quantity, 0, "MARKET", $flags);
Expand Down Expand Up @@ -446,7 +446,7 @@ public function marketQuoteSellTest(string $symbol, $quantity, array $flags = []
*/
public function marketSell(string $symbol, $quantity, array $flags = [])
{
$c = $this->numberOfDecimals($this->exchangeInfo()['symbols'][$symbol]['filters'][2]['minQty']);
$c = $this->numberOfDecimals($this->exchangeInfo()['symbols'][$symbol]['filters'][1]['minQty']);
$quantity = $this->floorDecimal($quantity, $c);

return $this->order("SELL", $symbol, $quantity, 0, "MARKET", $flags);
Expand Down