Comments (8)
Hi,
This is not related to our bot.
Slippage basically means that trade that U wanted to execute will result in loss because market conditions has changed so transaction was aborted and your tokens returned to Your wallet.
For more info go to Jupiter Docs or just please type "What is slippage in defi / solana" in the Google :)
from solana-jupiter-bot.
Hi,
I understand what the slippage is.
My question is: what could I do to mitigate this problem?
I mean the bot configuration parameters.
from solana-jupiter-bot.
Ok,
Currently bot uses Profit Or Kill
strategy for slippage but soon You will be able to manage this behavior choosing between Profit Or Kill and Percentage value.
Profit Or Kill
strategy simply means that bot will set slippage amount to Last Balance of the Token that will be result of the transaction. Because of that if market condition changes You will receive not less than Last Balance (Solana fees are not included in this calculation)
From my experience Profit Or KIll will always result in more profit than percentage value.
Everything depends of user strategy. Bot is still raw, it will be much more flexible in the future :)
from solana-jupiter-bot.
Oh and RPC speed is crucial to avoid slippage error, a lot of people hunting for this usdt-usdc pair that You mentioned earlier :)
from solana-jupiter-bot.
Thank you for the detailed explanation!
Does the slippage depend on the minPercProfit setting?
If I increase or decrease minPercProfit, will the successful txs rate change?
I use a quicknode RPC. Maybe there is a better option...
I suppose that pingpong mode suits best for stablecoins.
Is it reasonable to use it for other assets?
from solana-jupiter-bot.
My pleasure 😄
Does the slippage depend on the minPercProfit setting?
no
If I increase or decrease minPercProfit, will the successful txs rate change?
yes, this is very important parameter impacting Your strategy and results
Is it reasonable to use it for other assets?
Ofc, maybe You will find pair that will be much more profitable that crowded stablecoins.
E.g. You can try renBTC <> BTC
You always need to remember that using Tokens other than stablecoins can result in loss because e.g. BTC price go down. Best market condition for pingpong strategy is when market is going constantly sideways up & down, consolidation. This kind of volatility can result in good profits using pingpong strategy.
from solana-jupiter-bot.
Thank you. Could you please explain a couple of things?
- Regarding fees. I see a tx with a fee of about 0.02 sol on a regular basis. Like this one
https://solscan.io/tx/5tx7WrwAjpkUpihNVUjtbns8utkmCFjYwo99AbVAShGTk18ny2N3EDR94A11CzdE1D2HDGJ1jrw8NeRJs6wW6Zbv
Can I expect that at some point, all possible accounts will be opened and such txs will no longer be needed? How many of these txs will there be in total?
- Did I understand correctly that at each iteration we run jupiter.computeRoutes to find the trade opportunity? We see the consumed time at UI (LOOKUP).
In my setup, LOOKUP takes 3 seconds on average. What is the bottleneck here? Does the jup SDK make API-calls that take a long time? Is there any possibility to reduce this latency (some optimizations)?
from solana-jupiter-bot.
1. Regarding fees. I see a tx with a fee of about 0.02 sol on a regular basis. Like this one https://solscan.io/tx/5tx7WrwAjpkUpihNVUjtbns8utkmCFjYwo99AbVAShGTk18ny2N3EDR94A11CzdE1D2HDGJ1jrw8NeRJs6wW6Zbv
Can I expect that at some point, all possible accounts will be opened and such txs will no longer be needed? How many of these txs will there be in total?
I have little time, sorry. The bot currently uses execute() (Jupiter SDK) to make swaps. U can check it on Jupiter Docs how it's working. From my experience, Serum has the most expensive fees (I can be wrong). I have on my to-do list the Exclude AMM
feature that will allow You to exclude e.g. Serum.
2. Did I understand correctly that at each iteration we run jupiter.computeRoutes to find the trade opportunity? We see the consumed time at UI (LOOKUP). In my setup, LOOKUP takes 3 seconds on average. What is the bottleneck here? Does the jup SDK make API-calls that take a long time? Is there any possibility to reduce this latency (some optimizations)?
Yes, the latency that is shown in the UI comes from jupiter.computeRoutes(). You have >1 sec probably because the asset you choose has many possible routes to compute. The more routes the pair have the more time it will take to calculate.
If You have any ideas to improve the bot, don't hesitate to share them with us :)
from solana-jupiter-bot.
Related Issues (20)
- Computing Routes Failed HOT 2
- No Routes Found HOT 13
- Always 429 Too many Requests HOT 1
- Arbitrage Mode Constant Crashes (can never last more than 1 hour without the error) HOT 4
- unknown error, visit the explorer HOT 2
- Transaction not confirmed HOT 2
- Unexpected token in JSON HOT 3
- StructError: Expected the value to satisfy a union of `type | type`, but received: [object Object] HOT 4
- ok HOT 2
- Problem with script HOT 2
- Error ARB url not found HOT 2
- stuck on this error, please help HOT 6
- This error over and over again HOT 2
- Ping Pong trading not working with default RPC HOT 5
- No routes found for the input and output mints
- Multiple rotating RPCs HOT 1
- 99% of tx give transaction was not confirmed HOT 5
- Error: No routes found for the input and output mints HOT 2
- Issue on start up after configuration HOT 2
- No routes found for the input and output mints HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solana-jupiter-bot.