-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initialize2 log is received too late from actual trades on token #41
Comments
@Semrubo so to drill into this a little bit:
Correct? I recently implemented a way of being able to use So I had the same idea for the token migrations to Raydium and try to extract the liquidity address purely from I still have it on my list to come back and look into, just not sure when. I do think being able to extract/compute the liquidity address from the logs alone would be nice, but at this point I am not sure if it'll work. But I'll look if there's a way. |
Thanks for reply. So my goal is to catch the token migration completion event, monitor the trades for 1-2 seconds, and if the trades of this 1-2 seconds match to some conditions decide to buy at the 3-4 seconds after it's launch on Raydium.
Correct. I saw that there are earlier logs related to that token before initialize2 instruction, and when initialize2 is received it is already 14-15 seconds others are already trading with that token on Raydium.
I saw that. That is great addition for getting data directly from RPC, especially the parsing and decoding of received data saves me a lot of time. Thank's for that.
I had the same purpose, looked at couple prior logs but haven't found liquidity address that's needed for buy transaction. I am thinking that probably there should be some other RPC call that we can use for getting liquidity address from MINT or DEX or other addresses that we have from earlier logs. But haven't found it yet.
Thanks, I will also continue researches to see where from we can get liquidity address earlier. By the way, I haven't looked at |
Hello,
No matter what Websocket I use (mainnet, free or paid) the transaction with initialize2 instruction is received in 14-15 seconds after trades started on Raydium. When I see the initialize2 instruction output and compare with trading websites, the trades are already started for 14-15 seconds. My network should not be an issue, because if I then buy token programmatically it takes 1-2 seconds, but I am being late for 17-18 seconds from trades on Raydium.
When I print all incoming messages for blockSubscribe I can see that before receiving the log with "initialize2" string there are other messages received with that same token address. Those early logs contain same Token Address (which is then acquired from
account_keys[18]
key of initialize2 transaction), but do not contain the Liquidity Address (account_keys[2]
). So even if we catch those prior to initialize2 instruction logs it's not clear how we can buy token.Is there another way to get the Raydium migration event right when that happens and trades are started, so that we can be one of the first traders?
If we catch logs prior to initialize2 instruction, can we find the Liquidity Address to use that for trades?
Thanks.
The text was updated successfully, but these errors were encountered: