lizhming / solana-snipers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

V2 - Solana Sniper Bot

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.

Whats new ?

  1. Supports fetching pool info at much faster rate.
  2. 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).
  3. Instead of getting price from dexscreener. It will now calculate how much your token balance is worth in Solana
  4. 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.

Requirements

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!)

Getting Started

  1. Clone the repository and move to the directory:
    git clone https://github.com/kokiez/solana-sniper.git
    cd solana-sniper
  2. 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:
    NEW POOL
    https://solscan.io/tx/5v5BVhWW1rT1sXKvj6i8gRCgSzNLFhEb8tfmKZMUifmFbCLFzfJCnkHgcAwcvCXnizmWMh8cT2WSDV4soJ7Pf5AP
    
    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....
  1. FAQ: What does the kokiez API do? It returns pool info at hight speed that you need to swap a token. Example:
    #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())
    
    Response: image

Contact

For Business inquires, please reach out at:

  • Telegram: kokiez4000

For Discussions and API services (my discord server):

Happy trading with the Solana Sniper!

Proof of its working

Video - Click me

Contributors:

References

  1. https://station.jup.ag/docs/apis/swap-api
  2. 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.
  3. https://solanacookbook.com/
  4. https://github.com/raydium-io/raydium-sdk
  5. https://github.com/raydium-io/raydium-frontend
  6. https://github.com/SolanaNatives/Solana-Programming-Resources - Further resources can be found here...
  7. https://michaelhly.com/solana-py/
  8. https://www.soldev.app/course/intro-to-reading-data
  9. https://kevinheavey.github.io/solders/index.html
  10. https://marketplace.quicknode.com/add-on/metis-jupiter-v6-swap-api

About

License:MIT License


Languages

Language:Python 100.0%