Skip to content

Getting the price of Algorand in USD on-chain, and/or finding the equivalent amount of Algorand for a target USD amount

Notifications You must be signed in to change notification settings

atsoc1993/On-Chain-Price-Fetching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial Video

https://youtu.be/a-CK4UzqvDc

Details

This code and paired youtube video go over getting the price of Algorand on-chain using a smart contract via testnet.

There is also a method from which you can input an amount of USD eg; $1000 and receive an output that is the equivalent amount in Algorand.

Note that the scaling factors were adjusted post-recording for a more accurate decimal representation.

Non-Contract Method

See "4_without_contract.py" for executing the same logic without writing a smart contract!

Nodely

https://nodely.io/docs/free/start

Algo Learn

See Algo-Learn Tutorial Series for other videos on building things like Marketplaces, Staking Smart contracts, and NFT modifying contracts— while also learning everything you need to write your own smart contracts! Website: https://algo-learn.com/ Youtube Playlist: https://youtube.com/playlist?list=PLfEzhqrD5SJ05tfER-CbtSPdh2C8znO_D&si=DWlTijooR0joDQRu

About

Getting the price of Algorand in USD on-chain, and/or finding the equivalent amount of Algorand for a target USD amount

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages