PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, September 25, 2022

[FIXED] How to Pull HIstorical Price Data from Solana Devnet Contracts?

 September 25, 2022     blockchain, chainlink, smartcontracts, solana     No comments   

Issue

I am looking to grab historical data from our Solana Devnet feeds. Can you let me know if get_submissions is the function that should be called for historical data for the Solana contracts? And if not, can you tell me what is?

Also, are there perhaps instructions I'm missing somewhere for this?


Solution

The function you would want to run is get_round().

get_round() is similar to get_price() but you specify a timestamp and it will return the closest price that occurred just before that timestamp.

You can see this function on GitHub.

Full documentation is still underway for the Chainlink+Solana integration so keep your eyes out on this page in the chainlink docs to find it in the future.



Answered By - Zak Ayesh
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing