Skip to content

Comments

Feat: Set application of querying Lithium price data#6

Open
escacan wants to merge 5 commits intotruflation:mainfrom
escacan:main
Open

Feat: Set application of querying Lithium price data#6
escacan wants to merge 5 commits intotruflation:mainfrom
escacan:main

Conversation

@escacan
Copy link

@escacan escacan commented Jan 31, 2024

Description

Fast api application query Lithium close price data from DB.
Used https://freedb.tech/ for db hosting.

How to run

$ pip install -r requirements.txt
$ cd app
$ uvicorn main:app --reload

Available apis

  • /docs : Swagger UI for test
  • /prices : get every prices from DB
  • /prices/latest : get latest price from DB
  • /prices/from/{target_date} : get data list since {target_date}
  • /prices/{target_date} : get data of {target_date}

target_date format : YYYY-MM-DD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant