// Sell USDT to get BNB
buy := func() {
// Place a new market buy order with the maximum quantity of the quote asset
order, err := client.NewCreateOrderService().Symbol(BNBUSDT).
Side(binance.SideTypeBuy).Type(binance.OrderTypeMarket).
Quantity("50").
Do(context.Background())
if err != nil {
log.Println(err)
}
fmt.Printf("Order created: %+v\n", order)
}
I have 100 USDT in my account but still I get <APIError> code=-2010, msg=Account has insufficient balance for requested action. While placing a buy order but sell order works fine.
Hi, I'm unable to place a buy order using,
I have 100 USDT in my account but still I get
<APIError> code=-2010, msg=Account has insufficient balance for requested action.
While placing a buy order but sell order works fine.Debug log