arbprotocol / solana-jupiter-bot Goto Github PK
View Code? Open in Web Editor NEWARB Protocol | Automated Arbitrage Bot Using Jupiter
License: MIT License
ARB Protocol | Automated Arbitrage Bot Using Jupiter
License: MIT License
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?
what to do?
im getting this everytime
I am trying to trade usdt-usdc.
All the trades fail with Slippage error.
What could I do to escape this error?
Sorted the private key issue out, now I am faced with this not able to use the RPC/Jupiter Connection.
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.
Consider that RPCs have limits and not always send transactions because of exceed tries would it be possible to rotate multiple RPC?
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.
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!
This is the error:
✖ Setting up failed!
Loading Jupiter SDK...
ERROR: Expected the value to satisfy a union oftype | type
, but received: [object Object]
StructError: Expected the value to satisfy a union oftype | 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)
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.
|| Slippage |
It keeps coming 429 too many requests I've already set the min interval to 300ms
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"
},
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)
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)
× 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
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.
√ 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)
hello man i think the bot need some update on priority fee it 99.9% give transaction was not confirmed thnx in advance
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.
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.
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
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.
I get like 70-80 consec this error before a swap on arbitrage, what to do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.