Giter VIP home page Giter VIP logo

solana-jupiter-bot's People

Contributors

alexonab avatar arbcaptain avatar cryptopavelsan avatar cussin avatar fechi92 avatar iamoskvin avatar pmioduszewski 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

solana-jupiter-bot's Issues

Multiple rotating RPCs

Consider that RPCs have limits and not always send transactions because of exceed tries would it be possible to rotate multiple RPC?

Arbitrage Mode Constant Crashes (can never last more than 1 hour without the error)

For the last month+, bug reports have been reported in the discord server but nothing seems to be happening so hopefully someone from the development team might be able to look at the error and fix this so we can finally use the arbitrage mode to its full abilities.

When running the Arbitrage mode at random times the bot would crash showing many different error messages. Attached to this are examples of the error. Everything is up to date and many people from the community have the same problem.

rn_image_picker_lib_temp_789f0431-d7e0-442d-837a-79b8998645b0
Screen_Shot_2022-11-11_at_7 37 52_pm
rn_image_picker_lib_temp_e22a2a85-1f1a-4de7-aa5e-0932d7767d5d
image

profit minus

How to make it work with a profit? Always sleep page error. I.e. the bot believes that there will be a profit, but it is not, but the transaction is made anyway. What should I do? How do I speed up?

No Routes Found

image

ERROR: Cannot read properties of undefined

I have uploaded the image Kindly view the image and help me with this error

No routes found for the input and output mints

I had the bot up and running no issues. I then crtl+c to stop the bot, and the next time I went to restart it I got an error for no found routes for input and output mints. I'll attach a screen grab of the command prompt.
Screenshot 2024-03-20 165307

pingpong token to same token

When pingponging USDC to USDC the new current balance that the bot detects its the actual profit, so it displays that it had -99% profit.

This error over and over again

Error: Account info HygmN5vEUcC******************************** missing
    at C:\arb\solana-jupiter-bot-main\solana-jupiter-bot-main\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:3033
    at Array.map (<anonymous>)
    at j (C:\arb\solana-jupiter-bot-main\solana-jupiter-bot-main\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:2984)
    at Ct.update (C:\arb\solana-jupiter-bot-main\solana-jupiter-bot-main\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:99019)
    at C:\arb\solana-jupiter-bot-main\solana-jupiter-bot-main\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:192826
    at Map.forEach (<anonymous>)
    at C:\arb\solana-jupiter-bot-main\solana-jupiter-bot-main\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:192811
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Yn.computeRoutes (C:\arb\solana-jupiter-bot-main\solana-jupiter-bot-main\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:192531)
    at async arbitrageStrategy (C:\arb\solana-jupiter-bot-main\solana-jupiter-bot-main\src\bot\index.js:275:18)

It al starts with a 429 Too many requests error even with the settings on 100000 in the min interval.

Server responded with 429 Too Many Requests. Retrying after 1000ms delay... all the way up to 4000ms. It hangs for a min and it crashes.

Error ARB url not found

√ Config loaded!
× Setting up failed!
Loading Jupiter SDK...
ERROR: request to https://my-super-lazy-rpc.gov/ failed, reason: getaddrinfo ENOTFOUND my-super-lazy-rpc.gov
FetchError: request to https://my-super-lazy-rpc.gov/ failed, reason: getaddrinfo ENOTFOUND my-super-lazy-rpc.gov
at ClientRequest. (index.js:1491:11)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

stuck on this error, please help

Been messing around with this for awhile and this is as far as I can get. Any help would be appreciated.

✔ Config loaded!
✖ Setting up failed!
Loading Jupiter SDK...
ERROR: Expected the value to satisfy a union of type | type, but received: [object Object]
StructError: Expected the value to satisfy a union of type | type, but received: [object Object]
at validate (/home/solana-jupiter-bot/node_modules/superstruct/lib/index.cjs:363:19)
at Object.create (/home/solana-jupiter-bot/node_modules/superstruct/lib/index.cjs:319:18)
at Connection.getTokenAccountsByOwner (/home/solana-jupiter-bot/node_modules/@solana/web3.js/lib/index.cjs.js:5890:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Dt (/home/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.production.min.js:1:85879)
at async Promise.all (index 2)
at async Ht.load (/home/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.production.min.js:1:99751)
at async setup (/home/solana-jupiter-bot/src/bot/setup.js:75:19)
at async run (/home/solana-jupiter-bot/src/bot/index.js:398:39)

Issue on start up after configuration

× Setting up failed!
Loading the Jupiter V4 SDK and getting ready to trade...
ERROR: Assertion failed
Error: Assertion failed
at assert (C:\Users\troll\ArbSol\node_modules\bn.js\lib\bn.js:6:21)
at BN.iushrn (C:\Users\troll\ArbSol\node_modules\bn.js\lib\bn.js:2100:5)
at BN.ishrn (C:\Users\troll\ArbSol\node_modules\bn.js\lib\bn.js:2159:17)
at BN.shrn (C:\Users\troll\ArbSol\node_modules\bn.js\lib\bn.js:2173:25)
at exports.TickUtils.searchHightBitFromStart (C:\Users\troll\ArbSol\node_modules@jup-ag\raydium-clmm-sdk\lib\index.js:1:3043)
at exports.TickUtils.getInitializedTickArrayInRange (C:\Users\troll\ArbSol\node_modules@jup-ag\raydium-clmm-sdk\lib\index.js:1:2740)
at me.getTickArrayPks (C:\Users\troll\ArbSol\node_modules@jup-ag\raydium-clmm-sdk\lib\index.js:1:16715)
at new zn (C:\Users\troll\ArbSol\node_modules@jup-ag\core\dist\core.cjs.production.min.js:1:136427)
at ti (C:\Users\troll\ArbSol\node_modules@jup-ag\core\dist\core.cjs.production.min.js:1:161036)
at C:\Users\troll\ArbSol\node_modules@jup-ag\core\dist\core.cjs.production.min.js:1:184725

Updated all modules... same issue

Problem with pingpong trading

Hi, I have a problem when running this bot.
When I trade USDT -> USDC and the system also wanna try to make a profit, it always notifies the error message below:

Error: Account info CUQecDVPSLXwWvUAPNTjtGb46vmteuMdqKqyFQnkPrLc missing
    at /home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:2508:13
    at Array.map (<anonymous>)
    at mapAddressToAccountInfos (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:2504:34)
    at SerumAmm.update (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:2838:48)
    at /home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:5460:11
    at Map.forEach (<anonymous>)
    at fetchAccountInfos (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:5459:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Jupiter.computeRoutes (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:6076:7)

Also have a problem on USDC -> USDT, the error message is :

Error: Account info 8sfGm6jsFTAcb4oLuqMKr1xNEBd5CXuNPAKZEdbeezA missing
    at /home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:2508:13
    at Array.map (<anonymous>)
    at mapAddressToAccountInfos (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:2504:34)
    at SerumAmm.update (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:2838:48)
    at /home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:5460:11
    at Map.forEach (<anonymous>)
    at fetchAccountInfos (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:5459:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Jupiter.computeRoutes (/home/aliven2023/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.development.js:6076:7)
    at async pingpongMode (/home/aliven2023/solana-jupiter-bot/src/bot.js:213:18)

My environment is Debian 11 , yarn 1.22.19, node 16.16

Error: No routes found for the input and output mints

at Vn (C:\Users\tobib\Desktop\solana-jupiter-bot\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:177824)
at Yn.computeRoutes (C:\Users\tobib\Desktop\solana-jupiter-bot\node_modules\@jup-ag\core\dist\core.cjs.production.min.js:1:192951)
at async pingpongStrategy (C:\Users\tobib\Desktop\solana-jupiter-bot\src\bot\index.js:64:18)
at async watcher (C:\Users\tobib\Desktop\solana-jupiter-bot\src\bot\index.js:452:4) 

"tradingStrategy": "pingpong",
"tokenA": {
"symbol": "USDC",
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
},
"tokenB": {
"symbol": "W",
"address": "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ"
},

slippage error

I am trying to trade usdt-usdc.
All the trades fail with Slippage error.
What could I do to escape this error?

StructError: Expected the value to satisfy a union of `type | type`, but received: [object Object]

This is the error:

✖ Setting up failed!
Loading Jupiter SDK...
ERROR: Expected the value to satisfy a union of type | type, but received: [object Object]
StructError: Expected the value to satisfy a union of type | type, but received: [object Object]
at validate (C:\arb protocol\solana-jupiter-bot-main\node_modules@solana\web3.js\node_modules\superstruct\lib\index.cjs:363:19)
at Object.create (C:\arb protocol\solana-jupiter-bot-main\node_modules@solana\web3.js\node_modules\superstruct\lib\index.cjs:319:18)
at Connection.getTokenAccountsByOwner (C:\arb protocol\solana-jupiter-bot-main\node_modules@solana\web3.js\lib\index.cjs.js:7304:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async vn (C:\arb protocol\solana-jupiter-bot-main\node_modules@jup-ag\core\dist\core.cjs.production.min.js:1:174517)
at async Promise.all (index 2)
at async Cn.load (C:\arb protocol\solana-jupiter-bot-main\node_modules@jup-ag\core\dist\core.cjs.production.min.js:1:187209)
at async setup (C:\arb protocol\solana-jupiter-bot-main\src\bot\setup.js:75:19)
at async run (C:\arb protocol\solana-jupiter-bot-main\src\bot\index.js:398:39)

Issue loading Jupiter SDK

Thanks so much for making this! I'm having this issue with loading Jupiter though:

Config loaded!
Loading Jupiter SDK...Server responded with 429 Too Many Requests. Retrying after 500ms delay...
Loading Jupiter SDK...Server responded with 429 Too Many Requests. Retrying after 1000ms delay...
Loading Jupiter SDK...Server responded with 429 Too Many Requests. Retrying after 2000ms delay...
Loading Jupiter SDK...Server responded with 429 Too Many Requests. Retrying after 4000ms delay...
Setting up failed!
Loading Jupiter SDK...
ERROR: Missing 5Z66YYYaTmmx1R4mATAGLSc8aV4Vfy5tNdJQzk1GP9RF
Error: Missing 5Z66YYYaTmmx1R4mATAGLSc8aV4Vfy5tNdJQzk1GP9RF
at WhirlpoolAmm.update (C:\Users\16136\Documents\Arbbot\solana-jupiter-bot\node_modules@jup-ag\core\dist\core.cjs.development.js:4423:38)
at prefetchAmms (C:\Users\16136\Documents\Arbbot\solana-jupiter-bot\node_modules@jup-ag\core\dist\core.cjs.development.js:2876:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async getAllAmms (C:\Users\16136\Documents\Arbbot\solana-jupiter-bot\node_modules@jup-ag\core\dist\core.cjs.development.js:7135:3)
at async Function.fetchTokenRouteSegments (C:\Users\16136\Documents\Arbbot\solana-jupiter-bot\node_modules@jup-ag\core\dist\core.cjs.development.js:8747:18)
at async Promise.all (index 0)
at async Function.load (C:\Users\16136\Documents\Arbbot\solana-jupiter-bot\node_modules@jup-ag\core\dist\core.cjs.development.js:8612:52)
at async setup (C:\Users\16136\Documents\Arbbot\solana-jupiter-bot\src\setup.js:69:19)
at async run (C:\Users\16136\Documents\Arbbot\solana-jupiter-bot\src\bot.js:395:39)

    Exit time:  2022-08-07, 11:08:30 a.m. 
            > Cache saved to ./temp/cache.json 
            > Trade history saved to ./temp/tradeHistory.json 
    Exit Done! 

Problem with yarn start

Hi, after I update the new of this bot, I got this error when I type "yarn start"
But is okay if I back to using the old one.
I'm not sure about this situation is wrong with my environment or not?
Thank you

The Error Message is:

/home/aliven2023/solana-jupiter-bot/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: ENOENT: no such file or directory, open './config.json'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at Object.<anonymous> (/home/aliven2023/solana-jupiter-bot/src/cache.js:2:30)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/aliven2023/solana-jupiter-bot/src/utils.js:3:15) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: './config.json'
}
error Command failed with exit code 7.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Problem with script

I received this problem when I run the script:

✔ Config loaded!
✖ Setting up failed!
 	Loading Jupiter SDK...
ERROR: Missing DvgSQJyx6JNaPzmhBwzWw6rntGBQCr5fmNnV2AfyEfCg
Error: Missing DvgSQJyx6JNaPzmhBwzWw6rntGBQCr5fmNnV2AfyEfCg
    at wt.update (/home/ubuntu/bot/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.production.min.js:1:74780)
    at /home/ubuntu/bot/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.production.min.js:1:104264
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home/ubuntu/bot/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.production.min.js:1:104090
    at async Function.fetchTokenRouteSegments (/home/ubuntu/bot/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.production.min.js:1:102571)
    at async Promise.all (index 0)
    at async Function.load (/home/ubuntu/bot/solana-jupiter-bot/node_modules/@jup-ag/core/dist/core.cjs.production.min.js:1:99751)
    at async setup (/home/ubuntu/bot/solana-jupiter-bot/src/bot/setup.js:75:19)
    at async run (/home/ubuntu/bot/solana-jupiter-bot/src/bot/index.js:398:39)

Ping Pong trading not working with default RPC

I am using the default RPC https://api.mainnet-beta.solana.com .
I get the following error when starting a PIngPong trading

✖ Setting up failed!
        Loading the Jupiter V4 SDK and getting ready to trade...
ERROR: Account info xxx missing

I tried with the following other RPCs:
https://solana-api.projectserum.com,
https://rpc.ankr.com/solana,
https://solana.api.onfinality.io/public,
https://solana.drpc.org

All of them make the bot exit with an error saying i'm not ARB ready.

Wallet Check Failed

I supply an 88 character private key as requested, but it still fails. Is there a certain type of private key that is required, and if so, where do I generate one? Thanks.

image

Slippage error -> Old: Unknown error, visit the explorer

Im trying the arbitrage strategy and it has done 45 fails in a row getting this error, "Unknown error, visit the explorer". What should I do?

Edit: I didnt have enough SOL for a serum order probably. I think that was it. Now there is a lot of slippage errors, is there a way so that I can set the slippage? The script says SLIPPAGE but I dont think thats the same slippage that Jupiter uses.

Computing Routes Failed

Sorted the private key issue out, now I am faced with this not able to use the RPC/Jupiter Connection.

image
Im using https://arbprotocol.genesysgo.net as an RPC to test, as youve mentioned it before, yet still failing. Ive also tried the standard Solana Serum RPC to no avail.

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.