You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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
The text was updated successfully, but these errors were encountered: