Skip to content

Historical and current crypto coin/token prices in AUD - PHP scripts

License

Notifications You must be signed in to change notification settings

4625kHz/crypto-price-aud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

crypto-price-aud

PHP scripts that return the historial or current price of a crypto coin/token in AUD via the binance.com API.

historical-crypto-price-aud

If the chosen coin/token is not traded against AUD on Binance, the script calculates the price indirectly by dividing the historial coin/token price in USDT by the historical AUD/USDT trading price.

Script reads Date/Time in the format 2022-06-04 15:05

Time interval used is 1 minute, closing price for chosen historical minute is returned.

Alternative time intervals, eg. 1 hour (1h) or 1 day (1d) can be used in API URLs.

If 1 hour intervals are used, minutes in Date/Time must be 00.

If 1 day intervals are used, hours and minutes in Date/Time must be 00:00.

current-crypto-price-aud

If the chosen coin/token is not traded against AUD on Binance, the script calculates the price indirectly by dividing the current coin/token price in USDT by the current AUD/USDT trading price.

About

Historical and current crypto coin/token prices in AUD - PHP scripts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages