The Solana Sniper is a powerful Python-based tool designed to automate the process of buying and selling coins on the Solana blockchain. It allows you to set stop loss and limit orders, enabling you to execute trades automatically based on your predefined criteria. The sniper will snipe tokens from telegram channels based on CA or a birdeye url or dexscreener url or solscan/tx/of_a_new_pool. Raydium has been added too because Jupiter does not support low liquidity coins.
- Supports fetching pool info at much faster rate.
- Supports sniping new pools (since, it is open source, you all can modify it to your needs e.g. snipe from tg or discord or monitor pools in a naive way).
- Instead of getting price from dexscreener. It will now calculate how much your token balance is worth in Solana
- Note: Please keep in mind that if your rpc is good. You defintely will be the first one to buy a coin. I am talking about rented node or private node....
- If it is your first time on this repo, click on the branch and check out the first-release (FREE VERSION) to get an idea.
To use the Solana Sniper, you will need the following:
- Python 3.x installed on your machine.
- A Solana wallet with sufficient funds for trading and must have the private key in the form of alphanumeric string.
- Access to Telegram channels for receiving trade signals.
- Discord Webhook urls.
- Telegram bot api keys.
- Solana RPC Provider's HTTPS URL
- Jupiter SWAP API HTTPS URL
- Kokiez API key (PAID) - It is used in this open source project to fetch pool info (This key is not your one way ticket to become a millionaire, a proof is given in the video of how I got rugged while sniping new pools naively!)
- Clone the repository and move to the directory:
git clone https://github.com/kokiez/solana-sniper.git cd solana-sniper
- Watch the Video or Read it here in detail, Click me
- Note: Currently, the sniper is set to check for "new pool" and a solscan.com/tx/blabla url in a new message to snipe new pools... but you can change it to your liking. Example:
You can use this channel for getting new pools but remember to change the key word "new pool" in main.py to something that is unique in the new pools channel messages from other channels you follow....
NEW POOL https://solscan.io/tx/5v5BVhWW1rT1sXKvj6i8gRCgSzNLFhEb8tfmKZMUifmFbCLFzfJCnkHgcAwcvCXnizmWMh8cT2WSDV4soJ7Pf5AP
- FAQ: What does the kokiez API do? It returns pool info at hight speed that you need to swap a token. Example:
Response:
#pair_address or pool id, they are same things pair_address = "5DYUboYHHbxmvfZMV7cxYwfXBJH5E2oKgjBpjBHHPMaN" headers = { 'Auth': 'your_api_key' } resp = requests.get(f'https://www.kokiez.com/api/v1/{pair_address}', headers=headers) print(resp.json())
For Business inquires, please reach out at:
- Telegram:
kokiez4000
For Discussions and API services (my discord server):
- Discord Server: [https://discord.gg/UXpCGW5FqW]
Happy trading with the Solana Sniper!
- Update CA pattern: Moka51
- https://station.jup.ag/docs/apis/swap-api
- https://github.com/v0idum/solana-swap-arbitrage-bot - Was very useful repo in building the swap info - Note: His code is pretty old which is not compatible with current solana and solders library due to which it will give errors but raydium sdk helped in solving all the errors.
- https://solanacookbook.com/
- https://github.com/raydium-io/raydium-sdk
- https://github.com/raydium-io/raydium-frontend
- https://github.com/SolanaNatives/Solana-Programming-Resources - Further resources can be found here...
- https://michaelhly.com/solana-py/
- https://www.soldev.app/course/intro-to-reading-data
- https://kevinheavey.github.io/solders/index.html
- https://marketplace.quicknode.com/add-on/metis-jupiter-v6-swap-api