load_freqtrade_bots#

API documentation for tradeexecutor.strategy.freqtrade.universe.load_freqtrade_bots Python function.

load_freqtrade_bots(freqtrade_bots, reserve_currency)[source]#

Load Freqtrade bot configurations and create trading pairs.

Args:

freqtrade_bots: List of Freqtrade bot config dicts from strategy file reserve_currency: Reserve currency asset (e.g., USDC, USDT)

Returns:

List of TradingPairIdentifier objects for Freqtrade bots

Example strategy configuration:

>>> FREQTRADE_BOTS = [
...     {
...         "freqtrade_id": "momentum-bot",
...         "api_url": "http://localhost:8080",
...         "exchange_name": "binance",
...         "transfer_method": "on_chain_transfer",
...         "recipient_address": "0xabcdef...",
...     },
...     {
...         "freqtrade_id": "aster-bot",
...         "api_url": "http://localhost:8081",
...         "exchange_name": "aster",
...         "transfer_method": "aster",
...         "vault_address": "0x123456...",
...         "broker_id": 0,
...     },
... ]
>>> pairs = load_freqtrade_bots(FREQTRADE_BOTS, usdc)
Parameters:
Return type:

list[tradeexecutor.state.identifier.TradingPairIdentifier]