sharebook-kr / pyupbit

python wrapper for upbit API
Apache License 2.0
480 stars 290 forks source link

buy_market_order is giving UnderMinTotalBid error? #121

Closed StockSenz closed 4 months ago

StockSenz commented 9 months ago

I am sending the market order request as follows -

market_id = "KRW-ARB" orderbook = pyupbit.get_orderbook(market_id) _price = orderbook['orderbook_units'][0]['ask_price'] order = upbit.buy_market_order(market_id, _price)

The error i am getting is this UnderMinTotalBid. Can you please explain it how?

pick8chu commented 7 months ago

https://docs.upbit.com/docs/api-%EC%A3%BC%EC%9A%94-%EC%97%90%EB%9F%AC-%EC%BD%94%EB%93%9C-%EB%AA%A9%EB%A1%9D#400-bad-request

image
mr-yoo commented 4 months ago

thank you, pick8chu.