How shakeebshams/swiper works
This repository is a Solana memecoin trading bot with separate buy-scanning and sell-monitoring runtimes. The buy scanner fetches GMGN trending tokens, filters for newly created tokens, then calls placeholder buy logic that checks and records positions in Supabase. A separate buy module implements Jupiter quoting, transaction signing, and Solana submission, but the shown scanner does not call it. The sell loop reads open positions, fetches prices, applies exit checks, and updates Supabase; its sell function is explicitly a dummy. The README documents broader strategy capabilities, but sampled code does not show all of them.
Main entry points: sell/main.py Sell Monitor · gmgn_trending.py Trend Scanner · buy.py Jupiter Buy · buy/main.py Buy Scanner
Components 13
Buy Discovery
- Buy Scanner
buy/main.py - Trend Scanner
buy/gmgn_trending.py - GMGN Trends
Buy Execution
- Buy Placeholder
buy/swap.py - Jupiter Buy
buy/buy.py - Jupiter API
- Solana RPC
Sell Monitoring
- Sell Monitor
sell/main.py - Price Fetcher
sell/gmgn_price.py - GMGN Prices
- Sell Placeholder
sell/main.py
Position Data
- Supabase Positions
Other components
- Bot Operator
Connections 14
- Bot Operator → Buy Scanner: starts
README.MD - Buy Scanner → Trend Scanner: calls
buy/main.py - Trend Scanner → GMGN Trends: fetches
buy/gmgn_trending.py - Trend Scanner → Buy Placeholder: calls for new tokens
buy/gmgn_trending.py - Buy Placeholder → Supabase Positions: checks and inserts
buy/swap.py - Bot Operator → Jupiter Buy: runs separately
buy/buy.py - Jupiter Buy → Jupiter API: quotes and builds swap
buy/buy.py - Jupiter Buy → Solana RPC: submits signed transaction
buy/buy.py - Bot Operator → Sell Monitor: starts
README.MD - Sell Monitor → Supabase Positions: reads open positions
sell/main.py - Sell Monitor → Price Fetcher: requests token price
sell/main.py - Price Fetcher → GMGN Prices: fetches
sell/gmgn_price.py - Sell Monitor → Sell Placeholder: calls on exit condition
sell/main.py - Sell Monitor → Supabase Positions: updates closed position
sell/main.py