Open husmen73 opened 2 years ago
Thank you for your discovery, I will fix it
@husmen73 Hi , I have solved it.
$result=$binance->trade()->postBatchOrders([
'batchOrders'=>[
[
'symbol'=>'BTCUSDT',
'side'=>'BUY',
'type'=>'LIMIT',
'quantity'=>'1',
'price'=>'60000',
'timeInForce'=>'GTC',
//'newClientOrderId'=>'xxxxxxx'
],
[
'symbol'=>'BTCUSDT',
'side'=>'BUY',
'type'=>'LIMIT',
'quantity'=>'2',
'price'=>'60000',
'timeInForce'=>'GTC',
//'newClientOrderId'=>'xxxxxxx'
],
]
]);
https://github.com/zhouaini528/binance-php/blob/master/tests/future/trade.php#L52
Hi,
postBatchOrders method does not work due guzzle url encode. Is there any options for urlencoding to disable?
Should be
But guzzle converting when sending like this