Skip to content

Uses coingecko to create a new API that summarises the results of dollar cost averaging a particular crypto currency over time vs a single bulk investment.

License

Notifications You must be signed in to change notification settings

local-optimum/dollar-cost-avg-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Dollar Cost Averaging API

Uses coingecko to create a new API that summarises the results of dollar cost averaging a particular crypto currency over time vs a single bulk investment.

This API is hosted on Heroku here

Structure of the Code

The API receives a number of inputs:

  • Cryptocurrency
  • Fiat Currency
  • Investment Start Date
  • Deposit Amount
  • Frequency of Deposits

The first three are used to query CoinGecko's API and return a dataframe of a particular crypto's price from the start date to today.

The dataframe then uses this information to calculate the user's portfolio investment value based on their dollar cost averaging parameters, as well as insights into the performance of a bulk buy taking place on the initial start date for comparison.

The above is wrapped into a flask app and hosted on Heroku.

This was part of a one day hackathon where I built the backend and and my co-hacker build a front end interface that allowed users to interface with it and see graphs of their portfolio over time.

For more detail on the hackathon, and to try out the final interface, please check out my blog on the subject.

About

Uses coingecko to create a new API that summarises the results of dollar cost averaging a particular crypto currency over time vs a single bulk investment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages