Code Monkey home page Code Monkey logo

Comments (11)

fdundjer avatar fdundjer commented on July 20, 2024 1

@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.

fdundjer avatar fdundjer commented on July 20, 2024

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.

AndoKarim avatar AndoKarim commented on July 20, 2024

from solana-trading-bot.

fdundjer avatar fdundjer commented on July 20, 2024

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.

chiochocolate avatar chiochocolate commented on July 20, 2024

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.

AndoKarim avatar AndoKarim commented on July 20, 2024

@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.

dtmrc avatar dtmrc commented on July 20, 2024

@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.

saurabh41 avatar saurabh41 commented on July 20, 2024

is it possible to find pool id from mint address(aka token address) ?

from solana-trading-bot.

AndoKarim avatar AndoKarim commented on July 20, 2024

Hello, thanks again for the help
do you have a Telegram or Discord by chance?

Thanks!

from solana-trading-bot.

fdundjer avatar fdundjer commented on July 20, 2024

@AndoKarim Hey, you can send me a message on discord

from solana-trading-bot.

fdundjer avatar fdundjer commented on July 20, 2024

@AndoKarim I've added a check for open pools. Let me know if script works as expected.

from solana-trading-bot.

Related Issues (20)

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.