I have a code:
$parametrs = [
'batchOrders' => [
[
'symbol' => $_GET['symbol'],
'side' => $_GET['side'],
'positionSide' => $positionSide,
'type' => 'MARKET',
'quantity' => 0.005,
]
]
];
$parametrs['batchOrders'] = json_encode($parametrs['batchOrders']);
print_r(api_query($apiUrl . '/fapi/v1/batchOrders', $parametrs, 'post', 1));
and i get an error:
Array ( [0] => Array ( [code] => -1102 [msg] => Mandatory parameter ‘quantity’ was not sent, was empty/null, or malformed. ) )
What wrong?