Retrieve stock info with CLI tool
Simple CLI tool to retrieve stock information from Financial Modeling Prep API (FMP).
There are a number of environment variables required to be set for the successful functioning of the tool, see below for details.
Env vars can be set directly in the environment where the tool is running or by
having a .env
file in the directory (or a parent directory).
Name | Description |
---|---|
API_KEY |
apiKey for FMP, get one here |
REMAINING_CALLS_API_URL |
URL for API used to retrieve the number of calls remaining for the API_KEY within the 24 hour period |
RUST_LOG |
Level of logging to enable. Options are from log::Level |
- Add tests
- Check test coverage for some minimum
- Add CI (using GitHub Actions)
- Create release when merged to
main
- Consider an 'admin' subcommand where commands like get-remaining-calls can be grouped
- Consider validating symbols - check against a search
- Print out full response when specific setting is provided
- Retrieve historical data
- Visualise historical data
- Improve logging - log by level, set level by CLI option
- Improve file structure
- Get price change for symbols
- Get remaining API calls