Git Product home page Git Product logo

solana-raydium-trading's People

Contributors

henrytirla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

solana-raydium-trading's Issues

JITO_PRIVATE_KEY

Hello,
I'm trying to use Jito code. It requires JITO_PRIVATE_KEY, but it seems they are not longer use pubkey for searcher access.

No method

Hi. Why is there a file called buy_WithoutWrapAcc.py are you using _Token Code._create_wrapped_native_account_args ? After all, this contradicts the name of the file.

Still, do you have a code option where the Wrapped WSOL Account is not used? Where the purchase of tokens takes place directly from WSOL. Thanks

incorrect pair address

buy  RUpbmGF6p42AAeN1QvhFReZejQry1cLkE1PUYFVVpnL 44thS3tRhYuuSUAv1Zi2RKNoMWpEHqzC4RzcQae7oho92aUnd1LBDgo9s1821noSGjS55c6VJPDeZGdmipvjQrM9 0.012593837
Response: EPEP
fetch_pool_key  {'error': 'incorrect pair address'}
pool_keys  {'error': 'incorrect pair address'}
Unhandled exception: argument 's': 'NoneType' object cannot be converted to 'PyString'. 

pyo3_runtime. PanicException: called 'Result: :unwrap()

i got that error

note: run with 'RUST_BACKTRACE=1 environment variable to display a backtrace
Traceback (most recent call last):
File "main.py", line 54, in 
asyncio.run (start_buy (payer, valance, client))
File " /us/local/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete (main)
File "/us/local/lib/python3.7/asyncio/base_events.py", line 566, in run_until_complete self.run_forever ()
File "/us/local/lib/python3.7/asyncio/base_events-py", line 534, in run_ forever self._run_once ()
File " /us/local/lib/python3.7/asyncio/base_events.py", line 1771, in _run_once
handle. _run ()
File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "main.py", line 20, in start_buy
buy_transaction=await buy (client, manny, payer, amount-0.02) #Enter amount of sol you wish to saand File "/workspace/contrader /buy_swap.py", line 80, in buy
E501 line too long (91 > 79 characters) | visual indent
txn = solana_client.send_transaction (swap_tx, payer, Wsol_account_keyPair)
File "/usr/local/lib/python3.7/site-packages/solana/rpc/api.py",line1067,insend_transaction
txn_resp = self.send_raw_transaction(txn.serialize() , opts=opts_to_use)
File "/us/local/lib/python3.7/site-packages/solana/rpc/api.py",line992,insend_raw_transaction
resp = self._provider.make_request (body, SendTransactionResp)
File " /us/local/lib/python3.7/site-packages/solana/exceptions.py", line 43, in argument_decorator return func (*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/solana/rpc/providers/http.py",line49,in make_request return _parse_raw(raw, parser=parser)
File "/usr/local/lib/python3.7/site-packages/solana/rpc/providers/core.py",line95,in_parse_raw
parsed = parser. from_json (raw) # type: ignore
pyo3_runtime. PanicException: called 'Result: :unwrap() on an 'Err' value: Error ("missing field 'data'", line: 0, column: 0)

I think it comes make_swap_instruction function

do you have any idea with this?

Dependency Conflict with Numpy

While setting up the Solana-Raydium Trading project, I encountered dependency conflicts related to the numpy version specified in the requirements.txt file, despite attempts with Python 3.11 and 3.9. Also I've noticed the requirements.txt is unusually extensive.

Details:

Environment: Attempted on Python 3.11.5 and 3.9.19
Error Message: "ERROR: Could not find a version that satisfies the requirement numpy==1.21.5"
Potential Cause: The numpy version 1.21.5 specified does not support Python 3.11. Although it supports Python 3.9, the extensive list of dependencies seems to cause other conflicts as well, making setup challenging.

With 3.11

~/personal/snipers on ☁️  (us-east-1) on ☁️  [email protected] 
❯ git clone https://github.com/henrytirla/Solana-Raydium-Trading.git Solana-Raydium-Trading-Original                        
Cloning into 'Solana-Raydium-Trading-Original'...
remote: Enumerating objects: 30, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 30 (delta 7), reused 25 (delta 5), pack-reused 0
Receiving objects: 100% (30/30), 13.16 KiB | 842.00 KiB/s, done.
Resolving deltas: 100% (7/7), done.

~/personal/snipers on ☁️  (us-east-1) on ☁️  [email protected] 
❯ cd Solana-Raydium-Trading-Original  

Solana-Raydium-Trading-Original on  master via 🐍 v3.11.5 on ☁️  (us-east-1) on ☁️  [email protected] 
❯ python3 -m venv venv

Solana-Raydium-Trading-Original on  master [?] via 🐍 v3.11.5 on ☁️  (us-east-1) on ☁️  [email protected] took 3s 
❯ source venv/bin/activate

Solana-Raydium-Trading-Original on  master [?] via 🐍 v3.11.5 (venv) on ☁️  (us-east-1) on ☁️  [email protected] 
❯ pip install -r requirements.txt
Collecting aiohttp==3.8.1 (from -r requirements.txt (line 1))
  Using cached aiohttp-3.8.1.tar.gz (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting aiosignal==1.2.0 (from -r requirements.txt (line 2))
  Obtaining dependency information for aiosignal==1.2.0 from https://files.pythonhosted.org/packages/3b/87/fe94898f2d44a93a35d5aa74671ed28094d80753a1113d68b799fab6dc22/aiosignal-1.2.0-py3-none-any.whl.metadata
  Using cached aiosignal-1.2.0-py3-none-any.whl.metadata (5.5 kB)
.............

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 3.0.0 Requires-Python >=3.6, <3.11; 3.1.0 Requires-Python >=3.6, <3.11
ERROR: Could not find a version that satisfies the requirement numpy==1.21.5 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0rc1, 1.23.0rc2, 1.23.0rc3, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0rc1, 1.24.0rc2, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0rc1, 1.25.0, 1.25.1, 1.25.2, 1.26.0b1, 1.26.0rc1, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 2.0.0b1, 2.0.0rc1)
ERROR: No matching distribution found for numpy==1.21.5

With 3.9

Solana-Raydium-Trading-Original on  master [?] via 🐍 v3.11.5 (venv) on ☁️  (us-east-1) on ☁️  [email protected] took 52s 
❯ rm -rf venv

Solana-Raydium-Trading-Original on  master via 🐍 v3.11.5 (venv) on ☁️  (us-east-1) on ☁️  [email protected] 
❯ python3.9 -m venv venv

Solana-Raydium-Trading-Original on  master [?] via 🐍 v3.9.19 (venv) on ☁️  (us-east-1) on ☁️  [email protected] took 3s 
❯ source venv/bin/activate

Solana-Raydium-Trading-Original on  master [?] via 🐍 v3.9.19 (venv) on ☁️  (us-east-1) on ☁️  [email protected] 
❯ pip install -r requirements.txt
Collecting aiohttp==3.8.1 (from -r requirements.txt (line 1))
  Using cached aiohttp-3.8.1-cp39-cp39-macosx_11_0_arm64.whl.metadata (7.3 kB)
....

Collecting six==1.16.0 (from -r requirements.txt (line 291))
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting sklearn==0.0.post1 (from -r requirements.txt (line 292))
  Using cached sklearn-0.0.post1.tar.gz (3.6 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
      rather than 'sklearn' for pip commands.
      
      Here is how to fix this error in the main use cases:
      - use 'pip install scikit-learn' rather than 'pip install sklearn'
      - replace 'sklearn' by 'scikit-learn' in your pip requirements files
        (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
      - if the 'sklearn' package is used by one of your dependencies,
        it would be great if you take some time to track which package uses
        'sklearn' instead of 'scikit-learn' and report it to their issue tracker
      - as a last resort, set the environment variable
        SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
      
      More information is available at
      https://github.com/scikit-learn/sklearn-pypi-package
      
      If the previous advice does not cover your use case, feel free to report it at
      https://github.com/scikit-learn/sklearn-pypi-package/issues/new
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Not Found AMMID

Thank you for your contribution, but in actual transactions, I found that many tokens will prompt AMMID NOT FOUND SEARCHING WILL BE FETCHING WITH RAYDIUM SDK. In fact, the transaction has been started for a long time. What is the problem? example: 3S8qX1MsMqRbiwKg2cQyx7nis1oHMgaCuc9c4VfvVdPN or BsjcdsZGq2myoCQEv1v7MMvjfUxkpNoqH6WaXWUzpump They all execute transactions on Raydium

No module named 'WrapSol'

Good evening, first of all thank you for this project, excuse me but maybe i am not understaning how to make it work, i downloaded the project and configured the .env inside jito, installed all dependencies and launched buy_with_jito.py and it gives me that error raydium-buy-sell\Jito\utils\create_close_account.py", line 6, in
from WrapSol.utils.layouts import SWAP_LAYOUT
ModuleNotFoundError: No module named 'WrapSol'

how can i solve? thank you

Transaction not going through

I'm running this file and the transactions are not going through, it's this file sell_WithoutWrap.py

Your Token Balance is:  433707483
433707483
Create Swap Instructions...
Unhandled exception: . Retrying...
Your Token Balance is:  433707483
433707483
Create Swap Instructions...
Transaction sent
Transaction Signature Waiting to be confirmed: https://solscan.io/tx/PbDke9AffsJYacNpJK1uZ38ZuDwrKZQvSbyLaJwmTiMVdYvv6srwC86KDL9X17RcjHWjE9cden5mtvs5yNPhdUY
Waiting Confirmation
Unhandled exception: Unable to confirm transaction PbDke9AffsJYacNpJK1uZ38ZuDwrKZQvSbyLaJwmTiMVdYvv6srwC86KDL9X17RcjHWjE9cden5mtvs5yNPhdUY. Retrying...
Your Token Balance is:  433707483
433707483
Create Swap Instructions...
Transaction sent
Transaction Signature Waiting to be confirmed: https://solscan.io/tx/2kHGKC1ZwwU7rDjpAGAPgeednucrqQhnJGoPSdrEjtibGwL1TPo4KhHYZ6nD1NchHWuzPAmNgakKWw6JmeWt8ZuN
Waiting Confirmation
Unhandled exception: Unable to confirm transaction 2kHGKC1ZwwU7rDjpAGAPgeednucrqQhnJGoPSdrEjtibGwL1TPo4KhHYZ6nD1NchHWuzPAmNgakKWw6JmeWt8ZuN. Retrying...
Your Token Balance is:  433707483
433707483
Create Swap Instructions...
Unhandled exception: . Retrying...
Your Token Balance is:  433707483
433707483
Create Swap Instructions...
Transaction sent
Transaction Signature Waiting to be confirmed: https://solscan.io/tx/4EcyFGuHn71cPXtcfg9TgMxRaqULiKuTNqFRBrhTPBgWTksqaG1U18UN7y5WM8Vsqf6gJaDpdbE8sn2SfLUKGrzY
Waiting Confirmation
Unhandled exception: Unable to confirm transaction 4EcyFGuHn71cPXtcfg9TgMxRaqULiKuTNqFRBrhTPBgWTksqaG1U18UN7y5WM8Vsqf6gJaDpdbE8sn2SfLUKGrzY. Retrying...
Failed to confirm transaction after maximum retries.

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.