I already tried
How to send post only order in Spot and Futures
client.order_limit(symbol = ‘EURBUSD’, side = ‘SELL’, quantity = 9.5, price = ‘1.05810000’, type = ‘LIMIT_MAKER’)
but it just seems to ignore it and fill the order as a taker if price < current ask
What am i doing wrong?
Thank you for helping
dino
June 29, 2022, 1:08am
2
It’s possible there is potential issue in the library. Please try this library and the example of usage:
#!/usr/bin/env python
import logging
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
from binance.error import ClientError
config_logging(logging, logging.DEBUG)
key = ""
secret = ""
params = {
"symbol": "BTCUSDT",
"side": "SELL",
"type": "LIMIT",
"timeInForce": "GTC",
"quantity": 0.002,
"price": 9500,
}
This file has been truncated. show original
see if the LIMIT_MAKER works.
1 Like
Thank you, that works!
Is there a problem with using both python-binance and binance-connector libraries in one trading bot? Seems like they both have their pros and cons, so what are possible cons for using two libraries?
dino
June 29, 2022, 11:06pm
4
Sorry, we haven’t tested if they working together.