-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
65 lines (54 loc) · 1.55 KB
/
config.yaml.example
File metadata and controls
65 lines (54 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
server:
port: "8080"
read_only: false
auth:
# Optional: Gateway API Key required by X-Gateway-Key header
require_api_key: true
# Required when require_api_key=true in single-tenant mode. Do not use example/default values.
api_key: ""
# Optional: Admin key required for tenant CRUD
admin_key: ""
admin_secret_key: ""
# --- Persistence (Optional) ---
database:
# Postgres DSN (Leave empty to use In-Memory/File storage)
dsn: "postgres://postgres:postgres@localhost:5432/polygate?sslmode=disable"
redis:
# Redis Address (Leave empty to use In-Memory Risk Engine)
addr: "localhost:6379"
password: ""
db: 0
# --- Observability ---
metrics:
enabled: true
path: "/metrics"
rate_limit:
qps: 50
burst: 100
# --- Chain & Signing ---
chain:
# Required for Safe/EIP-1271 verification
rpc_url: "https://polygon-rpc.com"
eip1271_cache_seconds: 60
polymarket:
# User's Trading Credentials (L2)
# Get these from https://polymarket.com/profile -> API Keys
api_key: ""
api_secret: ""
api_passphrase: ""
# Proxy Address (EOA) - Your Polygon Wallet Address (NOT the Proxy)
# Use ./cmd/inspector to derive the correct Proxy Address if needed
proxy_address: ""
# Private Key (EOA) - Required for local signing
# Format: 0x...
private_key: ""
risk:
max_slippage: 0.05 # 5% max slippage
max_order_value: 500 # Max 500 USDC per order
max_daily_value: 10000
max_daily_orders: 1000
blacklisted_token_ids: []
allow_unverified_signatures: false
relayer:
base_url: "https://relayer-v2.polymarket.com"
chain_id: 137