Coder Social home page Coder Social logo

pcs_bot's Introduction

Pancakeswap Sniping Bot

Snipe launches when contract is given out beforehand. User should have WBNB for swapping and BNB for gas.

Install

$ virtualenv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt

Usage

Input the following values into settings.yml

  • private_key
  • snipe_address
  • budget_in_wbnb
  • gasprice_in_gwei

Run python psc_bot.py

pcs_bot's People

Stargazers

 avatar  avatar Bruno Gama avatar Hoang Tung avatar  avatar

Watchers

James Cloos avatar  avatar

pcs_bot's Issues

question

hi bro can i use that to manual buy .Bot will be automatically buy when my token address opened to trade. Can i do this with this bot ? Thanks

Multithreading problem

I'm kinda of new to mulltiprocessing debugging but I'm having this issues while waiting for pairs.

Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Process Process-2:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Process Process-3:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Process Process-6:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Process Process-5:
Process Process-4:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
⠹ Starting.. (0:00:00.99)Process Process-8:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Process Process-7:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Process Process-9:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Process Process-10:
Traceback (most recent call last):
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
TypeError: worker() missing 1 required positional argument: 'outqueue'
Traceback (most recent call last):
  File "/Users/bruno/Developer/pcs-tools/add_liquidity_observer.py", line 154, in <module>
    main()
  File "/Users/bruno/Developer/pcs-tools/add_liquidity_observer.py", line 151, in main
    master()
  File "/Users/bruno/Developer/pcs-tools/add_liquidity_observer.py", line 131, in master
    tx_filter = web3.eth.filter("pending")
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/module.py", line 57, in caller
    result = w3.manager.request_blocking(method_str,
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/manager.py", line 197, in request_blocking
    response = self._make_request(method, params)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/manager.py", line 150, in _make_request
    return request_func(method, params)
  File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/formatting.py", line 76, in apply_formatters
    response = make_request(method, params)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/gas_price_strategy.py", line 90, in middleware
    return make_request(method, params)
  File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/formatting.py", line 76, in apply_formatters
    response = make_request(method, params)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/attrdict.py", line 33, in middleware
    response = make_request(method, params)
  File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/formatting.py", line 76, in apply_formatters
    response = make_request(method, params)
  File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/formatting.py", line 76, in apply_formatters
    response = make_request(method, params)
  File "cytoolz/functoolz.pyx", line 250, in cytoolz.functoolz.curry.__call__
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/formatting.py", line 76, in apply_formatters
    response = make_request(method, params)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/buffered_gas_estimate.py", line 40, in middleware
    return make_request(method, params)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/middleware/exception_retry_request.py", line 105, in middleware
    return make_request(method, params)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/providers/rpc.py", line 88, in make_request
    raw_response = make_post_request(
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/web3/_utils/request.py", line 48, in make_post_request
    response = session.post(endpoint_uri, data=data, *args, **kwargs)  # type: ignore
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/requests/sessions.py", line 590, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/http/client.py", line 1377, in getresponse
    response.begin()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/http/client.py", line 320, in begin
    version, status, reason = self._read_status()
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/http/client.py", line 281, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/Users/bruno/.asdf/installs/python/3.9.9/lib/python3.9/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
KeyboardInterrupt```

Do you have any idea on how to fix this?

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.