INNER CODE UNIT · Python

Dexter

FLOCK4H/Dexter · Dexter.py:311

class Dexter:
    def __init__(self, config, session_seed=None):
        self.config = config
        self.session_seed = dict(session_seed or {})
        self.skip_database_init = bool(self.session_seed.get("skip_database"))
        self.db_dsn = config.database.dsn
        self.http_url = config.rpc.http_url
        self.ws_url = config.rpc.ws_url
        self.runtime_mode = config.runtime.mode
        self.execution_mode = resolve_trade_execution_mode(config)
        self.execution_label = (
            "mainnet_dry_run"
            if self.runtime_mode == "live" and self.execution_mode == "simulate"
            else self.execution_mode
        )
        self.shadow_mode = self.execution_mode in {"paper", "simulate"}
        self.simulation_mode = self.execution_mode == "simulate"
        self.live_send_enabled = self.execution_mode == "live"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…