php-binance-api.php
public function marketBuy(string $symbol, $quantity, array $flags = [])
    {
        return $this->order("BUY", $symbol, $quantity, 0, "MARKET", $flags);
    }
public function marketBuy(string $symbol, $quantity, array $flags = [])
    {
        return $this->order("BUY", $symbol, $quantity, 0, "MARKET", $flags);
    }
public function marketBuy ( string $ symbol , $ quantity , array $ flags = [ ] ) { return $ this -> order ( "BUY" , $ symbol , $ quantity , 0 , "MARKET" , $ flags ) ; }
marketBuy attempts to create a currency order at given market price

$quantity = 1;
$order = $api->marketBuy("BNBBTC", $quantity);

@param $symbol string the currency symbol
@param $quantity string the quantity required
@param $flags array addtional options for order type
@return array with error message or the order details
marketBuy attempts to create a currency order at given market price