在循环内我想输入(下订单)在继续循环之前检查 float(btc_price["price"])>short_ma 是否为真 如何执行此操作

问题描述 投票:0回答:0
   elif float(btc_price["price"]) >= buy1 * percentsell and buy1 !=0:

        print("sell1")
        order = client.order_market_sell(symbol="BTCUSDT", side='SELL', type='MARKET', quoteOrderQty=ordergroote)

“我想检查一下 float(btc_price["price"])

我不知道该怎么办

python loops bots trading python-binance
© www.soinside.com 2019 - 2024. All rights reserved.