bybit - pybit 'ab not enough for new order' appears although I have funds on my unified trading wallet - Stack O

I'm trying to open USDT-M Futures position on my Bybit account but getting error:pybit.exceptions

I'm trying to open USDT-M Futures position on my Bybit account but getting error:

pybit.exceptions.InvalidRequestError: ab not enough for new order (ErrCode: 110007) (ErrTime: 07:15:38).
Request → POST : {"category": "linear", "symbol": "BALUSDT", "side": "Buy", "orderType": "Limit", "qty": "299", "price": "1.564"}.

in this specific example leverage is 15x, so I need nearly 32$ on my trading account, I have twice that amount, so it can't be what error says: 'ab not enough for new order'. it's more confusing that it worked fine for several days, even now it works sometimes, but sometimes got this error.

first I check for qtyStep to define correct amount:

ticker_info = session_public.get_instruments_info(
    category='linear',
    symbol=ticker
)
qty_step = ticker_info['result']['list'][0]['lotSizeFilter']['qtyStep']

then I round my quantity to that step and open order:

order = session_private.place_order(
            category="linear",
            symbol=ticker,
            side=side,
            orderType="Limit",
            qty=quantity,
            price=price,
        )

I've tried reducing quantity but it doesn't help.

I'm trying to open USDT-M Futures position on my Bybit account but getting error:

pybit.exceptions.InvalidRequestError: ab not enough for new order (ErrCode: 110007) (ErrTime: 07:15:38).
Request → POST https://api.bybit/v5/order/create: {"category": "linear", "symbol": "BALUSDT", "side": "Buy", "orderType": "Limit", "qty": "299", "price": "1.564"}.

in this specific example leverage is 15x, so I need nearly 32$ on my trading account, I have twice that amount, so it can't be what error says: 'ab not enough for new order'. it's more confusing that it worked fine for several days, even now it works sometimes, but sometimes got this error.

first I check for qtyStep to define correct amount:

ticker_info = session_public.get_instruments_info(
    category='linear',
    symbol=ticker
)
qty_step = ticker_info['result']['list'][0]['lotSizeFilter']['qtyStep']

then I round my quantity to that step and open order:

order = session_private.place_order(
            category="linear",
            symbol=ticker,
            side=side,
            orderType="Limit",
            qty=quantity,
            price=price,
        )

I've tried reducing quantity but it doesn't help.

Share Improve this question asked Mar 4 at 12:41 saba tananashvilisaba tananashvili 331 silver badge8 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

it seems that specific pair doesn't have 15x leverage at all, by default it is set on 5x and I don't have enough balance to buy 299 BAL on 5x leverage.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745042726a4607909.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信