yasinkuyu / binance-trader

💰 Cryptocurrency Trading Bot for Binance (Experimental)
2.54k stars 833 forks source link

Error: Filter failure: LOT_SIZE #31

Closed HammadAWS closed 6 years ago

HammadAWS commented 6 years ago

I have a bit modified my code but is giving an error, it would be great if someone can help...

sell_limit(symbol, 0.004995, 13658707)

def sell_limit(symbol, quantity, orderId): global TEST_MODE global ORDER_ID global TARGET_PRICE global TARGET_PROFITABLE_PRICE global TARGET_PRICE

TARGET_PRICE = 0.206795

ret = client.sell_limit(symbol, quantity, TARGET_PRICE)

if 'msg' in ret: errexit(ret['msg']) The code gives error on sell_limit() when I try to create order.

Error: Filter failure: LOT_SIZE

Can you suggest me what would be the reason?

Foof811 commented 6 years ago

so you have it to buy at market price and sell at limit?

HammadAWS commented 6 years ago

Yes.