npm run gen:settings from src/config.js on branch main: the SETTINGS schema (allowed ranges) and loadConfig() (defaults). Don't edit it by hand.DATA_DIR and override the environment variables below. They apply on the next check.| Setting | What it does | Default | Allowed |
Flip every % dropstepPctenv STEP_PCT | How far price must fall below the last flip before the next flip. Converted to bins with each pool's bin step (14% = 15 bins on bin step 100). | 14 | 1 – 50 |
Fixed bins per flipstepBinsenv STEP_BINS | Forces a fixed number of bins per flip. 0 keeps the automatic % → bins conversion. | 0 | 0 – 500 (whole) |
Sell stylescopeenv SCOPE | Where flipped token is offered: local = Ladder, full = Reshuffle to entry, fresh = Stack to entry. Each position can override it. | local | local · full · fresh |
Smallest flip (SOL)minTrancheSolenv MIN_TRANCHE_SOL | Skips flips worth less than this, so dust doesn't cost a transaction. | 0.02 | 0 – 10 |
Color each flip's batch on the bin chartcolorFlipsenv COLOR_FLIPS | Dashboard only. Colors each flip's token batch on the bin chart. | off | on / off |
Auto-compound fees after each flipautoCompoundenv AUTO_COMPOUND | After a flip lands, claim the position's fees and add them back in the same transaction. | off | on / off |
Compound only when fees ≥ (SOL)compoundMinSolenv COMPOUND_MIN_SOL | Skip compounding when fees are worth less than this (or less than 10× the transaction cost). | 0.005 | 0.001 – 10 |
| Setting | What it does | Default | Allowed |
Take profit at +%tpPctenv TP_PCT | Closes the position when PnL reaches this % of deposited SOL. | 10 | 0.5 – 500 |
Stop arms at −%slPctenv SL_PCT | The stop arms when PnL falls to this level. It does not fire yet. | 10 | 1 – 90 |
Cut after a bounce of (pts)bouncePctenv BOUNCE_PCT | Once armed, the stop waits for PnL to climb this many points off its low, then closes. | 3 | 0.5 – 50 |
Hard stop at −% (0 = off)hardStopPctenv HARD_STOP_PCT | Closes at this loss regardless of any bounce. Must be 0 or ≥ the stop level. | 30 | 0 – 95 |
Close if above entry for (min, 0 = off)oorTopMinenv OOR_TOP_MIN | If price sits above your entry bin (all SOL, earning nothing) this long, close and swap leftovers to SOL. | 0 | 0 – 1440 |
Swap leftover token to SOL after a closeswapToSolenv SWAP_TO_SOL | After a close, swap the token's whole wallet balance to SOL with Jupiter. | on | on / off |
| Setting | What it does | Default | Allowed |
Stop confirmations (checks)stopConfirmTicksenv STOP_CONFIRM_TICKS | How many checks in a row must agree before a stop fires. | 2 | 1 – 10 (whole) |
Take-profit confirmations (checks)tpConfirmTicksenv TP_CONFIRM_TICKS | How many checks in a row must agree before take profit fires. | 2 | 1 – 10 (whole) |
Check positions every (sec)pollSecenv POLL_SEC | How often the bot reads the RPC for flips, PnL and exits (Wallet & RPC card). | 30 | 5 – 600 (whole) |
Look for new positions every (sec)discoverEverySecenv DISCOVER_EVERY_SEC | How often it asks Meteora's data API for new positions (no RPC load). | 30 | 10 – 600 (whole) |
Max swap slippage (bps)swapSlippageBpsenv SWAP_SLIPPAGE_BPS | Cap on Jupiter Swap v2 auto slippage (300 = 3%). The v1 fallback uses it as a fixed value. | 300 | 10 – 1500 (whole) |
Max swap price impact %maxSwapImpactPctenv MAX_SWAP_IMPACT_PCT | Refuses a token→SOL swap whose price impact is above this. | 15 | 0.5 – 50 |
Min swap value (SOL)minSwapValueSolenv MIN_SWAP_VALUE_SOL | Leftover token worth less than this is not swapped (env/API only, no dashboard field). | 0.002 | 0 – 1 |
Fixed / fallback (µlamports/CU)priorityMicroLamportsenv PRIORITY_MICROLAMPORTS | Used in Fixed mode, or when Helius can't estimate. | 100,000 | 0 – 2,000,000 (whole) |
Priority feepriorityModeenv PRIORITY_MODE | auto = ask Helius for an estimate per transaction; fixed = always use the fixed price. | auto | auto · fixed |
Auto levelpriorityLevelenv PRIORITY_LEVEL | Percentile used for flips and opens: Medium 50th, High 75th, VeryHigh 95th. | High | Medium · High · VeryHigh |
Auto level for closes and exitsclosePriorityLevelenv CLOSE_PRIORITY_LEVEL | Percentile used for closes, take profit and stops (speed matters most). | VeryHigh | Medium · High · VeryHigh |
Auto cap (µlamports/CU)priorityMaxMicroLamportsenv PRIORITY_MAX_MICROLAMPORTS | Never pays more than this per compute unit, however high the estimate. | 1,000,000 | 1000 – 5,000,000 (whole) |
| Setting | What it does | Default | Allowed |
Send alerts to DiscorddiscordOnenv DISCORD_ALERTS | Master switch for Discord alerts. Off keeps the webhook saved but sends nothing. | on | on / off |
Include simulated (shadow) eventsdiscordIncludeSimenv DISCORD_INCLUDE_SIM | Also send Shadow-mode "would flip / would close" events to Discord. | off | on / off |
Mention on urgent alertsdiscordMentionenv DISCORD_MENTION | A role <@&id>, user <@id>, @here or @everyone added only to urgent alerts (stop loss, hard stop, failed flips, errors). Tests never ping. | none | up to 5 of <@userId>, <@&roleId>, @here, @everyone |
Discord: send mediscordKindsdashboard only | Per-type toggles (entries, flips, exits, risk changes, compound, problems, bot start/stop). Dashboard only. | 20 of 25 types on | on / off per alert type |
| Setting | What it does | Default | Allowed |
Max SOL per openmaxOpenSolenv MAX_OPEN_SOL | Refuses a single open above this (0 = no cap). | 5 | 0 – 1000 |
Keep in wallet (SOL)openReserveSolenv OPEN_RESERVE_SOL | SOL always left in the wallet for rent and fees when opening. | 0.05 | 0 – 5 |
Open slippage %openSlippagePctenv OPEN_SLIPPAGE_PCT | Price move allowed while an open lands (converted to bins with the bin step). | 1 | 0.1 – 10 |
Default amount (SOL)openDefaultSolenv OPEN_DEFAULT_SOL | Pre-filled amount in the Open dialog / order ticket. | 1 | 0.01 – 1000 |
Default range depth (bins)openDefaultBinsenv OPEN_DEFAULT_BINS | Pre-filled range depth below price in the Open dialog. | 69 | 5 – 499 (whole) |
| Setting | What it does | Default | Allowed |
Min token 5m vol $sigMinVol5menv SIG_MIN_VOL_5M | Hides tokens with less token-wide 5-minute volume (every venue). | 2000 | 0 – 100,000,000 |
Min TVL $sigMinTvlenv SIG_MIN_TVL | Hides pools with less total value locked. | 5000 | 0 – 1,000,000,000 |
Min MC $sigMinMcapenv SIG_MIN_MCAP | Hides tokens below this market cap. | 100,000 | 0 – 1,000,000,000,000 |
Max MC $sigMaxMcapenv SIG_MAX_MCAP | Hides tokens above this market cap (0 = no cap). | 50,000,000 | 0 – 1,000,000,000,000 |
Min base fee %sigMinBaseFeeenv SIG_MIN_BASE_FEE | Hides low-fee pools (majors and stables). | 0.5 | 0 – 10 |
Jupiter score (min) /100sigMinOrganicScoreenv SIG_MIN_ORGANIC_SCORE | Jupiter organic score, 0–100 | off | 0 – 100, blank = off |
Holders (min)sigMinHoldersenv SIG_MIN_HOLDERS | off | 0 – 1,000,000,000, blank = off | |
Token age (min) hsigMinTokenAgeHenv SIG_MIN_TOKEN_AGE_H | off | 0 – 100,000, blank = off | |
Token age (max) hsigMaxTokenAgeHenv SIG_MAX_TOKEN_AGE_H | off | 0 – 100,000, blank = off | |
Traders 5m (min)sigMinTraders5menv SIG_MIN_TRADERS_5M | off | 0 – 1,000,000, blank = off | |
Organic volume (min) %sigMinOrganicPctenv SIG_MIN_ORGANIC_PCT | off | 0 – 100, blank = off | |
vs prev 5m (min) ×sigMinSpikeenv SIG_MIN_SPIKE | off | 0 – 10,000, blank = off | |
5m price change (min) %sigMinChg5menv SIG_MIN_CHG_5M | off | -100 – 100,000, blank = off | |
5m price change (max) %sigMaxChg5menv SIG_MAX_CHG_5M | off | -100 – 100,000, blank = off | |
Fee/TVL 5m (min) %sigMinFeeTvl5menv SIG_MIN_FEE_TVL_5M | off | 0 – 100, blank = off | |
Base fee (max) %sigMaxBaseFeeenv SIG_MAX_BASE_FEE | off | 0 – 10, blank = off | |
Pool age (max) hsigMaxPoolAgeHenv SIG_MAX_POOL_AGE_H | off | 0 – 100,000, blank = off | |
Pool 5m volume (min) $sigMinPoolVol5menv SIG_MIN_POOL_VOL_5M | off | 0 – 1,000,000,000, blank = off | |
Pool share (min) %sigMinPoolShareenv SIG_MIN_POOL_SHARE | this pool's share of the token's 5m volume | off | 0 – 100, blank = off |
Bin stepsigBinStepsenv SIG_BIN_STEPS | any | list of whole numbers 1–1000 | |
LaunchpadsigLaunchpadsenv SIG_LAUNCHPADS | any | list of names | |
Verified onlysigVerifiedOnlyenv SIG_VERIFIED_ONLY | off | on / off | |
Hide transfer taxsigHideTransferTaxenv SIG_HIDE_TRANSFER_TAX | Token-2022 tokens with a transfer fee | off | on / off |
List sizesigLimitenv SIG_LIMIT | How many rows Discovery shows. | 15 | 5 – 50 (whole) |
Missing datasigMissingenv SIG_MISSING | hide = a token missing a value fails any filter set on it; show = it stays and is marked. | hide | hide · show |
PresetssigPresetsdashboard only | Saved filter sets (dashboard only). | any | up to the preset limit |
.env):| Env var | Default | What it does |
MODE | shadow | shadow simulates everything and never signs; live signs. Usually flipped from the dashboard. |
ALLOW_LIVE | true | false caps a deployment at shadow: the dashboard cannot switch to live. |
ADOPT_FILLED | confirm | Positions found already holding token need a click (confirm) or are adopted (auto). |
WATCH_WALLET | empty | Watch any public wallet read-only (shadow only, can never sign). |
JUP_SWAP_V2 | true | Use Jupiter Swap v2 first, v1 as fallback. |
PRIORITY_MODE / PRIORITY_LEVEL | auto / High | See Run above. |
PORT | 8787 | Dashboard port. |
DASHBOARD_PASSWORD | empty | Required when the dashboard is reachable from the network. |
DATA_DIR | ./data | Where state, journal and .env live. On Railway, the mounted volume. |
TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID | empty | Optional send-only Telegram alerts. |
DISCORD_WEBHOOK_URL | empty | Discord webhook for alerts (a secret; or save it in Settings → Alerts → Discord, which wins). |
DISCORD_AVATAR_URL | empty | Optional https image for the webhook avatar / embed author. |
JUP_API_KEY / GMGN_API_KEY | empty | Optional API keys (Jupiter api.jup.ag, GMGN token analytics). |