Comments (11)
@fdundjer Thanks for your help.
I tried so far but using LiquidityPoolJsonInfo, it does not have the openingTime on it, even on last version. Pretty weird.
Not sure where is the problem, I'm able to get pool time. I'll push the updated version with typed variables, so you can easily find pool time.
ps. If you want just to snipe open pools, instead of checking pool time, you could update the listener to subscribe to the correct pool status.
eg:
{
memcmp: {
offset: LIQUIDITY_STATE_LAYOUT_V4.offsetOf('status'),
bytes: binary_to_base58([1,0,0,0,0,0,0,0])
},
}
where bytes would in this case represent "Initalized" pool status. You can use 6 instead of 1 to listen to pools that have transitioned from closed (waitingToTrade) to open.
Here you can see code that does this transition on raydium: https://github.com/raydium-io/raydium-amm/blob/f290430a417569c3de514c43a17dad872ead59a2/program/src/processor.rs#L1208
If you are not in a rush, I can update the script.
from solana-trading-bot.
Hey @AndoKarim, the liquidity pool should be open as soon as it gets created.
Do you see any errors when running the script?
from solana-trading-bot.
from solana-trading-bot.
Thanks for sharing, I was not aware of this functionality. Looks like pool opening time is available in a new version of Raydium SDK.
raydium-io/raydium-sdk@9d346fc
LIQUIDITY_STATE_LAYOUT_V4 now contains pool time.
I think updating SDK package should give you the ability to read the opening time.
from solana-trading-bot.
Hey @AndoKarim , Great question!.
Can i contact you on another platform like instagram or gmail? I have a question about this. Im facing a problem with the opening time.
Thank you,
from solana-trading-bot.
@fdundjer Thanks for your help.
I tried so far but using LiquidityPoolJsonInfo, it does not have the openingTime on it, even on last version. Pretty weird.
from solana-trading-bot.
@fdundjer Thanks for your help.
I tried so far but using LiquidityPoolJsonInfo, it does not have the openingTime on it, even on last version. Pretty weird.
i think you have to parse data account using layout_v5..
from solana-trading-bot.
is it possible to find pool id from mint address(aka token address) ?
from solana-trading-bot.
Hello, thanks again for the help
do you have a Telegram or Discord by chance?
Thanks!
from solana-trading-bot.
@AndoKarim Hey, you can send me a message on discord
from solana-trading-bot.
@AndoKarim I've added a check for open pools. Let me know if script works as expected.
from solana-trading-bot.
Related Issues (20)
- after installing all dependencies i got this Cannot find module '@metaplex-foundation/umi/serializers' HOT 2
- 503 Service Unavailable
- Token filtering
- remove unused parameters
- Frozen account HOT 1
- base-trading-bot
- Adding 2 extra features
- ERROR: MAX_TOKENS_AT_THE_TIME is not set
- Discord dont work
- Skipping buy because one token at a time is turned on and token is already being processed HOT 4
- Logs HOT 2
- Auto sell
- Can someone add pump.fun or https://dexscreener.com/moonshot Our money has dried up from the rug pull on Raydium🥺 HOT 1
- ¿WHAT IS POOL SIZE? HOT 2
- now work
- How exactly does the cache work?
- Any way to filter by market cap? HOT 1
- "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4645 of 55411 compute units", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success", "Program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 consumed 30687 of 80692 compute units", "Program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 suc
- confirmTransaction is very slow
- Any way to send transactions with the default transaction executor adding priority fees?
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-trading-bot.