The second argument will always receive the symbol data for the interval you specified. In this particular bot, we trade in 6 hour candle intervals and we specify a trading symbol, which is BTCUSDT. Of course multiple symbols are possible to trade on as well!
if selfUrl.find('http') == -1: info = '###' + '\n' + '商品名称:' + tradeName + '\n' + '口令:' + selfUrl + '\n' + '返利金额:' + rebateMoney + '元' + '\n' + '原 价:' + originalMoney + '元' + '\n' + '券后价格:' + discountMoney + '元' + '\n' +...
交易 okx_api.Trade 是 资金 okx_api.Funding 是 闪兑 okx_api.Convert 是 账户 okx_api.Account 是 子账户 okx_api.SubAccount 是 网格交易 okx_api.Grid 是 赚币 okx_api.Staking 是 跟单接口 okx_api.CopyTrading 是 行情数据 okx_api.Market 否 公共数据 okx_api.Public 否 交易大数据 okx...
docker build -t soltrade_bot . Once the image is built, you can run the Soltrade bot container using: docker run -d --name soltrade_bot \ -e API_KEY=<cryptocompare_api_key> \ -e WALLET_PRIVATE_KEY=<wallet_private_key> \ -e SECOND_MINT=<token_address> \ -e JUP_BASE_URL=<jup...
交易 okx_api.Trade 是 资金 okx_api.Funding 是 闪兑 okx_api.Convert 是 账户 okx_api.Account 是 子账户 okx_api.SubAccount 是 网格交易 okx_api.Grid 是 赚币 okx_api.Staking 是 跟单接口 okx_api.CopyTrading 是 行情数据 okx_api.Market 否 公共数据 okx_api.Public 否 交易大数据 okx...
alpaca-trade-api - 从Alpaca平台获取股票实时报价和历史数据,并提供交易接口交易美股 metatrader5 - 集成Python和MQL5交易平台,适合外汇交易 akshare - 获取中国股票,基金,债券和宏观经济数据 yahooquery - 从雅虎财经获取数据 investpy - 从英为财经(http://Investing.com)获取数据 ...
classLongTrade(TradeDetails): def__init__(self, start_price: float, symbol: str, amount: float, percent_change: float =0.5, currency: str ="USD")->None: super().__init__(start_price, symbol, amount, currency) self.end_price = sta...
alpaca-trade-api - 从Alpaca平台获取股票实时报价和历史数据,并提供交易接口交易美股 metatrader5 - 集成Python和MQL5交易平台,适合外汇交易 akshare - 获取中国股票,基金,债券和宏观经济数据 yahooquery - 从雅虎财经获取数据 investpy - 从英为财经(Investing.com)获取数据 ...
datetime']} | " + f"symbol: {trade['symbol']} | " + f"price: {trade['price']} | " + f"amount: {trade['amount']} | " + f"cost: {trade['cost']} | " + f"side: {trade['side']} | " + f"type: {trade['type']}" )在运行完上面的代码之后,应该...
调用策略的bot_loop_start()函数一次。这在实时运行中启动一个新循环,而在回测中只需要一次; 调用populate_indicators()方法计算每个货币对的技术指标; 调用populate_buy_trend()和populate_sell_trend()方法计算每个货币对的买卖信号; 如果策略实现了,通过调用confirm_...