This is my first time i am using a api call for implementing on project for predicting the avalanche price feed for machine learning to get the historical data for 2 years.

I want api call from chainlink websites where there is alvalanche price feed below is the url whre i want to fetch the data for predicting a machine learning model for historical 2 years data


web3 = Web3(Web3.HTTPProvider('https://kovan.infura.io/v3/<infura_project_id>'))

addr = '0x9326BFA02ADD2366b30bacB125260Af641031331'
contract = web3.eth.contract(address=addr, abi=abi)
validRoundId = 18446744073709562301

historicalData = contract.functions.getRoundData(validRoundId).call()

The above is mentioned in the document in the chainlink documentation but i'm not sure how to extract day-wise historical prices of the cryptocurrency

1 Answer 1


This Chainlink external adapter provides a JSON object containing the aggregator Phase ID & answerRound. inputs are the Proxy address of price feed and the unix timestamp you are requesting.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.