Config#

Setting available via settings.toml or .env

########################################
###          DEFAULT SETTINGS        ###
########################################

# Any of those settings can be changed
# by the user. To overwrite a setting, 
# create a settings.toml or load the 
# settings from .env file or vars.
# As an example, to disable the 
# dxsp object:
# settings.toml
# [default]
# dxsp_enabled = false
[default]
# Dynaconf settings verification
VALUE = "On default"
# Talky App Related Settings
# Enable/Disable DXSP
dxsp_enabled = true

# Header to use for retrieving urls content below
headers = {User-Agent= 'Mozilla/5.0'}

# DEX ABI to use in case you have no explorer setup
dex_erc20_abi_url = "https://raw.githubusercontent.com/Uniswap/interface/44c355c7f0f8ab5bdb3e0790560e84e59f5666f7/src/abis/erc20.json"

# token list using uniswap tokenlist format
# https://github.com/mraniki/tokenlist
# this can be used to avoid using coingecko
# or be used for niche token not listed anywhere
# or for testnet
# token_mainnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/all.json"
# token_testnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/testnet.json"
token_mainnet_list = ""
token_testnet_list = ""
token_personal_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/TT.json"


[default.dex.template]
enabled=true
library = "" # uniswap or 0x
library_version = 2 # your library version
wallet_address = ""
private_key = ""
rpc = "" # https://chainlist.org for rpc url example
api_endpoint = "" # your api endpoint | used for 0x
api_key = "" # your api key | used for 0x
router_contract_addr = "" # your router contract address | used for uniswap
# router_abi_url = "" # your router abi url
factory_contract_addr = "" # your factory contract address | used for uniswap
# factory_abi_url = "" # your factory abi url
trading_asset_address = "" # your trading asset address
# trading_asset_abi_url = "" # your trading asset abi url
trading_risk_percentage = true # Use risk amount as percetage of the balance or real amount
trading_risk_amount = 10 # Risk amount
trading_slippage = 2 # Slippage percentage
trading_amount_threshold = 0
block_explorer_url = "" # your block explorer url
block_explorer_api = "" # your block explorer api
mapping = [ # mapping to use to change instrument per exchange
    { id = "BTC", alt = "WBTC" ,enable = true },
]
rotki_report_endpoint= "http://localhost:5042/api/v1/reports/1"
# Header to use for retrieving urls content below
headers = {User-Agent= 'Mozilla/5.0'}

# Follower Mode Settings
follow_wallet = false
follow_wallet_address = ""
# NEW: List of function names to trigger copy trades
follow_wallet_functions = ["swapExactTokensForTokens"]

# DEX ABI to use in case you have no explorer setup
abi_url = "https://raw.githubusercontent.com/Uniswap/interface/44c355c7f0f8ab5bdb3e0790560e84e59f5666f7/src/abis/erc20.json"

# token list using uniswap tokenlist format
# https://github.com/mraniki/tokenlist
# this can be used to avoid using coingecko
# or be used for niche token not listed anywhere
# or for testnet
# token_mainnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/all.json"
# token_testnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/testnet.json"
token_mainnet_list = ""
token_testnet_list = ""
token_personal_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/TT.json"

# # uniswap v2 protocol type and router uniswap
# [default.dex.eth]
# enabled=true
# library = "uniswap"
# library_version = 2
# wallet_address = "0x1234567890123456789012345678901234567890"
# private_key = "0xdeadbeef88"
# rpc = "https://rpc.ankr.com/eth"
# api_endpoint = ''
# api_key = ""
# router_contract_addr = "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
# factory_contract_addr = "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
# trading_risk_percentage = true
# trading_risk_amount = 10
# trading_slippage = 2
# trading_amount_threshold = 0
# trading_asset_address = "0xdAC17F958D2ee523a2206206994597C13D831ec7"
# trading_asset_separator = ""
# block_explorer_url = "https://api.etherscan.io/api?"
# block_explorer_api = "123123123123123"
# mapping = [
#     { id = "BTC", alt = "WBTC" },
# ]
# rotki_report_endpoint= "http://localhost:5042/api/1/pnl"
# Header to use for retrieving urls content below
# headers = {User-Agent= 'Mozilla/5.0'}

# # DEX ABI to use in case you have no explorer setup
# abi_url = "https://raw.githubusercontent.com/Uniswap/interface/44c355c7f0f8ab5bdb3e0790560e84e59f5666f7/src/abis/erc20.json"

# # token list using uniswap tokenlist format
# # https://github.com/mraniki/tokenlist
# # this can be used to avoid using coingecko
# # or be used for niche token not listed anywhere
# # or for testnet
# # token_mainnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/all.json"
# # token_testnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/testnet.json"
# token_personal_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/TT.json"


# # uniswap v2 protocol type and router pancakeswap on BSC chain 56
# [default.dex.bsc]
# enabled=true
# library = "uniswap"
# library_version = 2
# wallet_address = "0x1234567890123456789012345678901234567890"
# private_key = "0xdeadbeef88"
# rpc = "https://rpc.ankr.com/bsc"
# api_endpoint = ''
# api_key = ""
# router_contract_addr = "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
# factory_contract_addr = "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"
# trading_risk_percentage = true
# trading_risk_amount = 10
# trading_slippage = 2
# trading_amount_threshold = 0
# trading_asset_address = "0xdAC17F958D2ee523a2206206994597C13D831ec7"
# trading_asset_separator = ""
# block_explorer_url = "https://api.bscscan.com/api?"
# block_explorer_api = "123123123123123"
# mapping = [
#     { id = "BTC", alt = "BTCB" },
# ]
# rotki_report_endpoint= "http://localhost:5042/api/1/pnl"
# headers = {User-Agent= 'Mozilla/5.0'}

# # DEX ABI to use in case you have no explorer setup
# abi_url = "https://raw.githubusercontent.com/Uniswap/interface/44c355c7f0f8ab5bdb3e0790560e84e59f5666f7/src/abis/erc20.json"

# # token list using uniswap tokenlist format
# # https://github.com/mraniki/tokenlist
# # this can be used to avoid using coingecko
# # or be used for niche token not listed anywhere
# # or for testnet
# # token_mainnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/all.json"
# # token_testnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/testnet.json"
# token_personal_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/TT.json"


# # ZeroX 0x protocol type on polygon chain 137
# [default.dex.polygon]
# enabled=true
# library = "0x"
# library_version = 4
# wallet_address = "0x1234567890123456789012345678901234567890"
# private_key = "0xdeadbeef88"
# rpc = "https://rpc.ankr.com/polygon"
# api_endpoint = "https://polygon.api.0x.org/"
# api_key = ""
# router_contract_addr = "0xdef1c0ded9bec7f1a1670819833240f027b25eff"
# factory_contract_addr = "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"
# trading_risk_percentage = true
# trading_risk_amount = 10
# trading_slippage = 2
# trading_amount_threshold = 0
# trading_asset_address = "0xdAC17F958D2ee523a2206206994597C13D831ec7"
# trading_asset_separator = ""
# block_explorer_url = "https://api.polygonscan.com/api?"
# block_explorer_api = "123123123123123"
# mapping = [
#     { id = "BTC", alt = "WBTC" },
# ]
# rotki_report_endpoint= "http://localhost:5042/api/1/pnl"
# headers = {User-Agent= 'Mozilla/5.0'}

# # DEX ABI to use in case you have no explorer setup
# abi_url = "https://raw.githubusercontent.com/Uniswap/interface/44c355c7f0f8ab5bdb3e0790560e84e59f5666f7/src/abis/erc20.json"

# # token list using uniswap tokenlist format
# # https://github.com/mraniki/tokenlist
# # this can be used to avoid using coingecko
# # or be used for niche token not listed anywhere
# # or for testnet
# # token_mainnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/all.json"
# # token_testnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/testnet.json"
# token_personal_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/TT.json"


# # kwenta protocol type on OPTIMISM chain 10
# [default.dex.opt]
# enabled=false
# library = "kwenta"
# library_version = 2
# wallet_address = "0x1234567890123456789012345678901234567890"
# private_key = "0xdeadbeef88"
# rpc = "https://optimism.llamarpc.com"
# api_endpoint = ""
# api_key = ""
# router_contract_addr = "0xa062aE8A9c5e11aaA026fc2670B0D65cCc8B2858"
# factory_contract_addr = "0xF4c67CdEAaB8360370F41514d06e32CcD8aA1d7B"
# trading_risk_percentage = true
# trading_risk_amount = 1
# trading_slippage = 2
# trading_amount_threshold = 0
# trading_asset_address = "0x8c6f28f2F1A3C87F0f938b96d27520d9751ec8d9"
# trading_asset_separator = ""
# block_explorer_url = "https://optimistic.etherscan.com/api?"
# block_explorer_api = "123123123123123"
# mapping = [
#     { id = "EURUSD", alt = "EUR" },
#     { id = "GOLD", alt = "XAU" },
#     { id = "BTC", alt = "BTC" },
# ]
# rotki_report_endpoint= "http://localhost:5042/api/1/pnl"
# headers = {User-Agent= 'Mozilla/5.0'}

# # DEX ABI to use in case you have no explorer setup
# abi_url = "https://raw.githubusercontent.com/Uniswap/interface/44c355c7f0f8ab5bdb3e0790560e84e59f5666f7/src/abis/erc20.json"

# # token list using uniswap tokenlist format
# # https://github.com/mraniki/tokenlist
# # this can be used to avoid using coingecko
# # or be used for niche token not listed anywhere
# # or for testnet
# # token_mainnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/all.json"
# # token_testnet_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/testnet.json"
# # token_personal_list = "https://raw.githubusercontent.com/mraniki/tokenlist/main/TT.json"


########################################
###     END OF DEFAULT SETTINGS      ###
########################################