Skip to content

This is a quick python script to track coin prices for coins on Coin Market Cap

Notifications You must be signed in to change notification settings

ie2173/CMCPriceData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CMCPriceData

This is a quick python script to track coin prices for coins on Coin Market Cap (CMC)

This is a quick python script I made to help me track the prices of various crypto currencies. My set up is by pluggin into the Coin Market Cap api with a basic user subscription and will gather date, price and volume data for various crypto coins every 5 minutes and save them to specific CSV files pertaining to the coins. In this guide, I will detail my set up if you wish to gather your own price data.

STEPS:

  1. Set up an API account with coin market cap.
  1. Gather the coin information from CMC to access coin information with the API.
  1. Create a CSV file containing the Coinid and coin ticker symbol. You can skip this step by removing lines 9 through 19 and putting this information into a dictionary.
  • Make sure that the CSV file is in the same location as the python script. Make sure there are no headers in the CSV file.
  1. Create a folder called CoinData and create CSV files to store the price data.
  • name each CSV file as the ticker symbol as it appears on coinmarketcap followed by price, ex: BTCprice.csv, ETHprice.csv. You can change the name of the files by tweaking line 67.
  1. Create/edit the crontab to activate the script to run to your preference (on MAC/Linux).
  • copy the file path where the script is located.
  • go into terminal, and type nano crontab -e (you can use any other editor you wish aside from nano)
  • tweak the tab to run the python file. If you are new to this, please google how to run cronjobs.

Please feel free to contact if you have any questions or if there is anything I can clarify.

Thanks

About

This is a quick python script to track coin prices for coins on Coin Market Cap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages