-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.env.example
More file actions
102 lines (91 loc) · 4.03 KB
/
Copy path.env.example
File metadata and controls
102 lines (91 loc) · 4.03 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
# ==============================================================================
# MoonBags — environment template
# ==============================================================================
# Copy this file to `.env` (`cp .env.example .env`) or better, run:
# npm run setup
# which walks you through every field with live validation and can
# auto-generate a wallet + auto-detect your Telegram chat_id.
#
# NEVER commit `.env` — it's in .gitignore for a reason.
# Keep secrets here. Live trading / exit settings are edited in Telegram and
# persisted separately from this template.
# ==============================================================================
# === REQUIRED ===
# Jupiter Ultra API — https://developers.jup.ag/portal
JUP_API_KEY=
# Helius RPC — https://dashboard.helius.dev
HELIUS_API_KEY=
# OKX OnchainOS API credentials — used if/when we switch from public CLI auth to signed OKX requests.
# Create a read-only API key and keep the passphrase you set during key creation.
OKX_API_KEY=
OKX_SECRET_KEY=
OKX_PASSPHRASE=
# GMGN OpenAPI key — optional, enables GMGN Watch/Live source modes in /sources.
GMGN_API_KEY=
# === Private Feed / SCG Alpha (TEMPORARILY DISABLED) ===
# Read-only Postgres URL for the shared signal feed. Pre-filled — leave as-is.
# After starting the bot, /ping in Telegram should show "Private Feed: ✅".
# PRIVATE_SIGNAL_SOURCE=postgres
DATABASE_URL=postgresql://feed_reader:OWj9AP6HMBKVl5VNj_wCFiysjeHnpfe1@tramway.proxy.rlwy.net:21270/railway
DATABASE_SSL=true
# Base58-encoded Solana keypair secret. Leave blank while DRY_RUN=true.
# The setup wizard can generate a fresh keypair for you.
PRIV_B58=
# === RPC ===
RPC_URL=https://beta.helius-rpc.com?api-key=${HELIUS_API_KEY}
# === TRADING BASICS ===
# Exit strategy, TP ladder, trail, stop, moonbag, and milestones are edited live
# in Telegram and persisted to state/settings.json.
BUY_SIZE_SOL=0.02
MAX_CONCURRENT_POSITIONS=10
# === ALERT FILTERS ===
# MCap floor/ceiling for OKX + GMGN sources. Private Feed bypasses filters.
# Also editable live via Telegram /mcapfilter or the /stats Adopt button.
MIN_ALERT_MCAP=0
MAX_ALERT_MCAP=0
# === POLLING (ms) ===
# PRIVATE_SIGNAL_POLL_MS=3000 # [SCG Alpha disabled]
PRICE_POLL_MS=3000
LLM_POLL_MS=30000
# How often (minutes) the LLM sends a heartbeat check-in for each watched position. Default: 15.
LLM_HEARTBEAT_MINS=15
# Optional OKX WebSocket acceleration for open-position monitoring.
# Keeps Jupiter as execution truth; WSS only refreshes live data and can wake exit checks sooner.
OKX_WSS_ENABLED=false
# === EXECUTION ===
# Fallback slippage for lite-v1 quotes. Ultra uses RTSE automatically.
SLIPPAGE_BPS=2500
# LEAVE TRUE while testing. Set to false to submit real swaps.
DRY_RUN=true
# === DASHBOARD ===
DASHBOARD_PORT=8787
# === TELEGRAM (control + alerts) ===
# Create a bot via @BotFather and paste the token. The setup wizard
# auto-detects your chat_id — or find it manually by messaging your bot
# and visiting https://api.telegram.org/bot<TOKEN>/getUpdates
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
# === LLM EXIT ADVISOR (optional) ===
# Toggle live via Telegram /llm or /settings -> Exit Strategy.
LLM_EXIT_ENABLED=false
# LLM watches from entry (before trail arms). Default false = only watch armed positions.
LLM_EXIT_IMMEDIATE=false
# LLM entry filter — consult LLM before opening a position. Default false.
LLM_ENTRY_ENABLED=false
#
# Choose one provider:
#
# Option A — MiniMax (default, recommended)
# Referral link (10% off): https://platform.minimax.io/subscribe/token-plan?code=K0Q2oDUiwK&source=link
MINIMAX_API_KEY=
#
# Option B — OpenRouter or any OpenAI-compatible provider
# Uncomment and fill in all three lines; leave MINIMAX_API_KEY blank.
# LLM_API_KEY=sk-or-v1-...
# LLM_ENDPOINT=https://openrouter.ai/api/v1/chat/completions
# LLM_MODEL=anthropic/claude-3.5-sonnet
# === MILESTONES ===
# Send a Telegram alert (with sell button) each time a position crosses one of
# these PnL-% thresholds for the first time. Comma-separated. Default: 2x/3x/6x/11x.
MILESTONES_ENABLED=true
MILESTONE_PCTS=100,200,500,1000