Skip to content
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

How to get the price of defi project under meteora dlmm via json rpc request #123

Open
artanis-lewis opened this issue Jul 23, 2024 · 0 comments

Comments

@artanis-lewis
Copy link

I am a developer and want to request a node through prc to get the price of defi. The account address as DcfLjNC4gdQNwVNkQ1guHiiuTkDxwvmWV74VsT6yTF75, Now know his oracle address is 9MfojiTHuztdoCdniBDhAfw1TRfxRnDyX2xPpWsWuf25, this address accountInfo information of 3232 bytes, 32 bytes received 4 Long before fields, values are respectively

  • 800035941899844981.

96

100

100

Then the 4 long field values after the (96+1) * 32 are

  • 2724918002.

  • 1

1721693978

1721693978

I don't know how to calculate these values into the price, I haven't seen the relevant documents, I hope to get your help, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant