Skip to content

adding a certain percent to close and using whole balance. #19

@2x2lcallingcq

Description

@2x2lcallingcq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions