Git Product home page Git Product logo

solana-sniper's Introduction

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
  • 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.