# The starter bot's settings. Your trading logic goes in strategy.py; this file says how the bot runs it. [bot] # The tokens the bot prices, reads balances of, and may trade: core symbols (ETH, USDG, cbBTC, ...) or 0x addresses. # strategy.py's orders may name only these. The session (below) is granted for exactly these tokens. tokens = ["ETH", "USDG"] # Seconds between ticks. Each tick reads prices and balances, asks strategy.py, and trades what it returns. interval_s = 60 # true: nothing is sent. Each order is checked as Orblivion would check it (a quote in session mode, a full plan in # direct mode) and logged as "dry". It uses none of the session's limits. Set false only after reading the log. dry_run = true # "session" (safer, the default): the bot holds only an executor key, which can trade nothing but what a session the # wallet signed allows: these tokens, the caps under [session], until it expires. The wallet's key stays out of the bot. # "direct" (simpler): the bot trades with the wallet's own key. Only the bot's own limits below hold it back. mode = "session" # Where the keys and session.json live: a folder outside this project, so they are never committed or shared. key_dir = "~/.orblivion-bot" # Orblivion's API. Empty: the ORBLIVION_API_URL environment variable if it is set, else https://api.orblivion.com. api_url = "" # The bot stops at its next tick when a file with this name exists in this folder (create it to stop the bot). stop_file = "STOP" [limits] # The bot's own limits, checked before every order, in dry runs too. Orders are cut down to fit; under $1 is skipped. max_trade_usd = 10 # the most one trade may spend max_day_usd = 40 # the most all trades together may spend in any 24 hours (kept in bot-ledger.json) [session] # What setup_wallet.py asks the wallet to sign in session mode. Orblivion's co-signer and the chain enforce these on # every trade, whatever the bot does. Change them, then run `python setup_wallet.py session` for a new session. max_trade_usd = 10 # per trade, at most 1,000 max_day_usd = 40 # per 24 hours, from max_trade_usd to 100 times it max_trades = 200 # trades in the whole session, 1 to 10,000 hours = 168 # how long the session lasts: up to 720 (30 days); then grant a new one # The most of any ERC-20 (USDG, for one) the session may sell in its whole life, in dollars, approved on chain through # Permit2. Selling ETH needs no approval. Omit it to use max_day_usd. setup_budget_usd = 200