CoinSniper watches selected Twitter accounts for Solana contract addresses and automates buy/sell execution with a risk-managed exit strategy. It uses:
TwitterClientto fetch tweets and extract Solana contracts.TelegramBotto place trades via the configured trading bot.- A sell strategy with take-profits, trailing stop, hard stop, and time-based exit.
- Python 3.10+
- Environment variables:
API_ID,API_HASH(Telegram credentials)HELIUS_API_KEY(price queries)TWEET_SCOUT_API_KEY(TweetScout API access)
Optional tuning:
TWITTER_USERS(comma-separated handles)BUY_AMOUNT_SOLPRICE_POLL_SECONDSMAX_HOLD_SECONDSTIME_EXIT_MULTIPLIERTRAILING_START_MULTIPLIERTRAILING_STOP_FACTORHARD_STOP_FACTORTWEET_POLL_SECONDS
From the repo root:
python __init__.py
Or provide handles directly:
TWITTER_USERS=noe_ether,another_handle python __init__.py
If you want to run just the Twitter or Telegram components for local testing:
TWITTER_HANDLE=noe_ether python Twitter/__init__.py
python Telegram/__init__.py