Code Monkey home page Code Monkey logo

opensea-python-bot's Introduction

OpenSea-Python-Bot

OpenSea Python Bot can be used in 2 modes. When --nft parameter is passed, it will allow you to continuously monitor an NFT project and automatically snipe/buy if the price of the NFT is 50% or lower than it's floor value. If the price of the NFT is 20-40% below it's floor, then the bot can send a notification on Discord or print the result on-screen. The script can also be used to buy a specific NFT by passing the --url parameter. In that case, the bot will automatically buy the NFT at its current price value.

Usage

Installation:

The OpenSea Python3 bot only works with Python3. To install the required packages you can do the following:

git clone https://github.com/OpenSea-Sniper/OpenSea-Python-Bot.git
cd OpenSea-Python-Bot
pip3 install -r requirements.txt

Usage of the script is straightforward:

Usage: python3 python_sniper.py [-h] [--nft NFT] --mnemonic MNEMONIC --wallet WALLET [--url URL]

optional arguments:
  -h, --help           show this help message and exit
  --nft NFT            Name of the NFT collection. Eg: boredapeyachtclub
  --mnemonic MNEMONIC  The mnemonic/seed phrase of the wallet to use.(Trustwallet, MetaMask etc)
  --wallet WALLET      The ETH address linked to the mnemonic above.
  --url URL            URL of the NFT asset on OpenSea. Eg: https://opensea.io/assets/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d/5875

Continous Monitor Mode

The continous monitor mode allow you to look at an NFT continously and alert in the case the NFT is below floor price. If the value is below 50% floor then an automatic buy can be triggered. Recently OpenSea has made it difficult for sales bot to work by rate limiting API calls. The code has been altered to add delays and use new techniques to bypass this. With that, the bot will function smoothly but at times OpenSea can crash so keep an eye out. The parameters --nft, --mnemonic & --wallet are mandatory to make the call.

Example:

C:\> python3 python_sniper.py --nft mekaverse --mnemonic 'bore apple cloud gray solid winter people ' --wallet '0xf2946C517462e8d70c7cfad32eE5ce024d9dA21c'

Fetching mekaverse
==================================
NFT Contract Address:  0x9a534628b4062e123ce7ee2222ec20b86e16ca8f
Floor: 0.4851 ETH
Website:  https://themekaverse.com/
Verified Status:  verified
Fetching periodic listing for NFT:  mekaverse

Potential Listing Below floor: https://opensea.io/assets/0x9a534628b4062e123ce7ee2222ec20b86e16ca8f/6186

alt text

Automatic Buy Mode (curretly in beta)

Few tweaks are being made so expect a full commit in a few days. Currently in beta stage.

Example:

C:\> python3 python_sniper.py --url https://opensea.io/assets/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d/5875

Fetching NFT
=================================
NFT Contract Address: 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d
Price: 38 ETH
Performing Transaction.....
Success!

opensea-python-bot's People

Watchers

 avatar

Forkers

stayfoolisj

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.