Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
104 lines (97 loc) · 4.83 KB
/
Copy path.env.example
File metadata and controls
104 lines (97 loc) · 4.83 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Example values only. Never commit real keys, tokens, or credentials.
HTTP_ADDR=:8080
# Comma-separated browser origins permitted to call the API. The production
# dashboard is allowed by default; add preview domains explicitly when needed.
CORS_ALLOWED_ORIGINS=https://solana-sniper-bot-dashboard.vercel.app
# Production (Railway): use two different PostgreSQL databases. Never reuse a
# simulation ledger for capital real; startup refuses equal or missing URLs.
SIMULATION_DATABASE_URL=
REAL_DATABASE_URL=
# Local SQLite fallback is allowed only for simulation. Live mode refuses to
# start without the two separate PostgreSQL URLs above, preventing paper data
# from ever appearing in the real-operation console.
DATABASE_PATH=./data/sniper.db
PUMPPORTAL_URL=https://pumpportal.fun/api/trade-local
PUMPPORTAL_WS=wss://pumpportal.fun/api/data
RPC_ENDPOINTS=https://api.mainnet.solana.com,https://solana-rpc.publicnode.com,https://rpc.ankr.com/solana,https://solana.drpc.org,https://api.mainnet-beta.solana.com
# SOL/USD quote used to size TRADE_USD (cached up to 30 seconds). An unavailable
# refresh after expiry blocks entries.
SOL_USD_PRICE_URL=https://api.coingecko.com/api/v3/simple/price?ids=solana&vs_currencies=usd
# Safe to expose; the private key is loaded at runtime from the configured secret provider.
WALLET_PUBLIC_ADDRESS=REPLACE_WITH_PUBLIC_WALLET_ADDRESS
KEY_PROVIDER_REF=cloud-env://BOT_PRIVATE_KEY
BOT_PRIVATE_KEY=
# Required in simulation too: per-token price updates drive virtual exits.
PUMPPORTAL_API_KEY=REPLACE_WITH_PUMPPORTAL_API_KEY
# Master password for the console. Set this only in the cloud secret manager.
ADMIN_PASSWORD=
# Simulation is the default. Real trading requires explicit enablement and all required live fields.
SIMULATION=true
ENABLE_LIVE_TRADING=false
# Live startup is blocked unless the separate paper database meets all readiness checks:
# >=7 days, >=100 closed trades, positive net P&L/expectancy, >=45% wins and clean exits.
LIVE_UNLOCK_REQUIRES_PAPER=true
# RugCheck always runs asynchronously after entry and never delays the buy.
# A failed screen raises an alert; TP/SL/trailing/max-hold remain in control.
# Fast mode skips RPC simulation; an invalid transaction can still consume fees.
SKIP_PREFLIGHT=true
# Paper bankroll used only while SIMULATION=true. It is never read from a
# wallet and no transaction is signed or submitted in this mode.
# The values below are a fast-entry sniper profile, not a profitability
# guarantee. Test in simulation and review every risk limit before live use.
SIMULATION_BALANCE_SOL=1
SIMULATION_BASE_FEE_SOL=0.000005
MAX_TRADE_SOL=0.035
MAX_DAILY_LOSS_SOL=0.15
FEE_RESERVE_SOL=0.02
MAX_EXPOSURE_SOL=0.5
MAX_OPEN_POSITIONS=20
# Configure these from observed paper/live execution data. MAX_SLIPPAGE_BPS is
# absolute slippage; MAX_QUOTE_AGE_MS limits quote age; MAX_CURVE_IMPACT_BPS
# limits estimated impact from this order. They are intentionally required.
MAX_SLIPPAGE_BPS=
MAX_QUOTE_AGE_MS=
MAX_CURVE_IMPACT_BPS=
# Legacy PumpPortal percentage setting; MAX_SLIPPAGE_BPS is the active limit.
MAX_SLIPPAGE_PCT=15
MAX_PRIORITY_FEE_SOL=0.001
MAX_CONFIRMATION_WAIT_SECONDS=12
# Total send attempts; retries rebroadcast the same signed transaction.
MAX_SUBMISSION_ATTEMPTS=3
TOKEN_QUEUE_SIZE=1024
# Concurrent entry workers, per-snipe timeout, and duplicate suppression window.
SNIPE_CONCURRENCY=4
SNIPE_TIMEOUT_MS=15000
# Keep detected mints deduplicated for 30 minutes.
DEDUPE_TTL_MS=1800000
# Minimum period between RPC health probes while the worker runs continuously.
RPC_HEALTH_CHECK_INTERVAL_SECONDS=45
# A new mint waits this long before its bonding-curve entry gate runs.
ENTRY_DELAY_SECONDS=5
# Entry reserve limits are enforced in every entry mode using current real
# SOL bonding-curve reserves (a liquidity proxy, not cumulative traded volume).
# Both boundaries are inclusive.
MIN_VOLUME_BEFORE_BUY=0
MAX_VOLUME_BEFORE_BUY=1.5
MIN_MARKET_CAP_SOL=0
# Fast-entry path: use PumpPortal market cap for the cap gate and baseline.
# Real-reserve bounds are used only by the legacy RPC admission path.
USE_WS_MARKET_CAP=true
# Maximum market cap in SOL. The strategy example targets newly launched
# tokens up to 4 SOL; set 0 only when intentionally disabling the ceiling.
MAX_MARKET_CAP_SOL=4
# RPC refresh interval for open-position marks. In WebSocket mode it refreshes
# only marks older than this interval; in legacy mode it refreshes all marks.
PRICE_POLL_SECONDS=20
# Token age limit in seconds. 0 disables only this age filter in every mode.
# The configured age limit is strict; it is not extended by entry delay.
TRADE_USD=3
TAKE_PROFIT_GROSS_PCT=50
TOKEN_MAX_AGE_SECONDS=30
NO_REENTRY=true
TRAILING_STOP_PCT=12
# Required before enabling live trading; live trade notional must be explicitly chosen.
STOP_LOSS_PCT=25
MAX_HOLD_SECONDS=300
# Recover only genuinely stuck exits after this quarantine age.
STUCK_EXIT_QUARANTINE_SECONDS=120