53 lines
2.3 KiB
Bash
53 lines
2.3 KiB
Bash
# =============================================================================
|
|
# ARBITRAGE BOT CONFIG
|
|
# Copy to `.env` and fill in. Never commit `.env`.
|
|
# =============================================================================
|
|
|
|
# --- Mode -------------------------------------------------------------------
|
|
# paper = simulate fills against the live book, no keys touched
|
|
# live = sign + submit real orders (requires PRIVATE_KEY + funded wallet)
|
|
ARB_MODE=paper
|
|
|
|
# --- Polymarket endpoints ---------------------------------------------------
|
|
ARB_CLOB_HOST=https://clob.polymarket.com
|
|
ARB_GAMMA_HOST=https://gamma-api.polymarket.com
|
|
ARB_DATA_HOST=https://data-api.polymarket.com
|
|
ARB_WS_URL=wss://ws-subscriptions-clob.polymarket.com/ws/market
|
|
ARB_POLYGON_RPC=https://polygon-rpc.com
|
|
|
|
# --- Live-mode wallet (DO NOT FILL FOR PAPER MODE) -------------------------
|
|
# A dedicated EOA holding USDC.e on Polygon. Never reuse a personal wallet.
|
|
ARB_PRIVATE_KEY=
|
|
# The address that actually holds USDC. Equal to the EOA for signature_type=0.
|
|
# For Polymarket-proxy or Safe, set to the proxy/safe address.
|
|
ARB_FUNDER_ADDRESS=
|
|
# 0=EOA, 1=Polymarket proxy, 2=Gnosis Safe
|
|
ARB_SIGNATURE_TYPE=0
|
|
# L2 API credentials. Leave blank to derive on first run via /auth/derive-api-key
|
|
ARB_API_KEY=
|
|
ARB_API_SECRET=
|
|
ARB_API_PASSPHRASE=
|
|
|
|
# --- Risk limits (apply to both paper and live) ----------------------------
|
|
ARB_MIN_NET_EDGE_BPS=50 # opportunities below this are ignored
|
|
ARB_MAX_BASKET_USD=50 # max USD per basket attempt
|
|
ARB_MAX_OPEN_BASKETS=3 # ceiling on simultaneous unredeemed baskets
|
|
ARB_DAILY_LOSS_STOP_USD=100 # halt for the day if realized loss exceeds this
|
|
ARB_KILL_SWITCH_FILE=./KILL # if this file exists, refuse to execute
|
|
|
|
# --- Paper-mode realism ----------------------------------------------------
|
|
# How long to delay our "order arrival" against the live book to model
|
|
# getting beaten by faster bots. 250ms is conservative.
|
|
ARB_PAPER_LATENCY_MS=250
|
|
|
|
# --- Storage / web ---------------------------------------------------------
|
|
ARB_DB_PATH=./arbitrage.db
|
|
ARB_WEB_HOST=127.0.0.1
|
|
ARB_WEB_PORT=8000
|
|
ARB_LOG_LEVEL=INFO
|
|
|
|
# --- Network (optional) -----------------------------------------------------
|
|
# HTTP/HTTPS proxy for both REST and WebSocket (e.g. http://127.0.0.1:7890).
|
|
# Leave blank to connect directly.
|
|
ARB_PROXY=
|