You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error is :
array:3 [▼
"code" => "-1104"
"error" => "INVALID_REQUEST"
"message" => "Not all sent parameters were read; read 1 parameter(s) but was sent 2."
]
`
Can you help me about it?
The text was updated successfully, but these errors were encountered:
Hello I need to create new order function with your class.
I tried that but its not work for me
`
/**
* Create a new order.
*
* @throws Exception
*
* @param string $symbol Exchange Pair Symbol
* @param string $side Order side (BUY or SELL)
* @param string $type Order type (LIMIT, MARKET, STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT, LIMIT_MAKER)
* @param string $timeInForce (GTC, IOC)
* @param float $quantity Order quantity
* @param float $price Order price
* @param float $stopPrice (for STOP_LOSS and TAKE_PROFIT orders)
* @param float $icebergQty (for LIMIT orders)
* @param float $newOrderResprice (for STOP_LOSS and TAKE_PROFIT orders)
* @param float $newOrderResptime (for STOP_LOSS and TAKE_PROFIT orders)
* @param string $recvWindow (optional)
* @param string $timing (optional)
*
* @return mixed
*/
// public function createOrder($symbol, $side, $type, $timeInForce, $quantity, $price, $stopPrice = null, $icebergQty = null, $newOrderResprice = null, $newOrderResptime = null, $recvWindow = null, $timing = null)
public function createOrder()
{
$data = [
// 'symbol' => $symbol ? strtoupper($symbol) : null,
// 'side' => $side ? strtoupper($side) : null,
// 'type' => $type ? strtoupper($type) : null,
// 'timeInForce' => $timeInForce ? strtoupper($timeInForce) : null,
// 'quantity' => $quantity ? $quantity : null,
// 'price' => $price ? $price : null,
// 'stopPrice' => $stopPrice ? $stopPrice : null,
// 'icebergQty' => $icebergQty ? $icebergQty : null,
// 'newOrderResprice' => $newOrderResprice ? $newOrderResprice : null,
// 'newOrderResptime' => $newOrderResptime ? $newOrderResptime : null,
// 'recvWindow' => $recvWindow ? $recvWindow : $this->recvWindow,
// 'timestamp' => $this->milliseconds(),
error is :
array:3 [▼
"code" => "-1104"
"error" => "INVALID_REQUEST"
"message" => "Not all sent parameters were read; read 1 parameter(s) but was sent 2."
]
`
Can you help me about it?
The text was updated successfully, but these errors were encountered: