wisespace-io / binance-rs

Rust Library for the Binance API
Other
669 stars 300 forks source link

How to create a margin limit/market order? #230

Open mxaddict opened 7 months ago

mxaddict commented 7 months ago

How to create a margin limit/market order?

I see this:

            match account.market_buy(SYMBOL, order_quantity) {
                Ok(res) => {
                    info!("Buy Order: {:?}", res);
                },
                Err(err) => {
                    error!("{:?}", err);
                }
            }

But can't find a way to do a margin order.