Hello, I have a Python bot going for binanceus I am looking to make it so that when I create a limit sell order it might add a certain percent to the close so it gets filled faster. Also Looking to see how I can sell my whole balance instead of just a set amount. Thanks!
import ccxt
import config
binanceus = ccxt.binanceus({
'apiKey': config.API_KEY,
'secret': config.API_SECRET,
})
def trade_crypto(request):
data = request.get_json()
tickers = {
'DOGEUSD': 'DOGE/USD'
}
ticker = tickers[data['ticker']]
order = binanceus.create_limit_sell_order(ticker, 9393, data['close'])
return order