Closed noahbclarkson closed 1 week ago
Market order's don't require a price parameter, however I'm getting BinanceError { response: BinanceContentError { code: -1102, msg: "Mandatory parameter 'price' was not sent, was empty/null, or malformed.", extra: {} } when creating a margin Market Order:
price
BinanceError { response: BinanceContentError { code: -1102, msg: "Mandatory parameter 'price' was not sent, was empty/null, or malformed.", extra: {} }
let margin_order = MarginOrder { symbol: ticker.clone().to_string(), side: match score { x if x > 0.0 => OrderSide::Buy, _ => OrderSide::Sell, }, order_type: OrderType::Market, quantity: Some(qty.unwrap()), quote_order_qty: None, price: None, stop_price: None, new_client_order_id: None, iceberg_qty: None, new_order_resp_type: OrderResponse::Ack, time_in_force: None, is_isolated: None, side_effect_type: SideEffectType::MarginBuy, }; account.trade(margin_order).await?;
This might be intended and I'm doing something wrong but I don't think that MarketOrder's require a price parameter.
No response for a long time, close this issue
Market order's don't require a
price
parameter, however I'm gettingBinanceError { response: BinanceContentError { code: -1102, msg: "Mandatory parameter 'price' was not sent, was empty/null, or malformed.", extra: {} }
when creating a margin Market Order:This might be intended and I'm doing something wrong but I don't think that MarketOrder's require a price parameter.