Skip to content

Automatic scheduled updater for crypto/stock prices on a Notion Page

License

Notifications You must be signed in to change notification settings

ilagon/cryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryption

A Standalone Express Application that queries current market prices of crypto and stocks from external APIs at certain intervals.

Queried prices are then used to update custom notion pages to reflect updated prices using the NotionAPI.

Tech Stack:

  • NodeJS
  • Express
  • NotionAPI

APIs:

Setup requirements:

  • A notion database with minimally these columns for crypto

  • A notion database with minimally these columns for stocks

  • Your own notion API key and database keys. Check here for instructions on getting your own keys

Usage:

  • To manually trigger crypto price updates, simply hit up '/notion/crypto' endpoint.
  • To manually trigger crypto price updates, simply hit up '/notion/crypto' endpoint.

Coming Soon:

  • Stock database auto update API
  • Automatic scheduled triggers of APIs

Dev Notes:

I figured that creating an automatic scheduler would require me to deploy somewhere that will allow the app to run 24/7. Now this requirement isn't exactly available for free and I am currently not willing to pay for that feature on any platform.

I will continue developing the scheduler portion but the current implementation would be deployed to heroku and use Windows Task Scheduler to trigger a curl script (Included in the util folder) every week to hit the API.