Skip to content

Commit

Permalink
improved readme
Browse files Browse the repository at this point in the history
  • Loading branch information
msperlin committed Jun 4, 2024
1 parent 5643803 commit 75c423f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ knitr::opts_chunk$set(
* Valuation indicators
* And [more](https://eodhd.com/)..

Package eodhd2 is an R port of the API, allowing fast and intelligent access to the most endpoints.
Package eodhd2 is an R port of the API, allowing fast and intelligent access to most endpoints.

# Features

- Caching system that saves queries to local files, saving network bandwidth and api calls
- Quota management, informing the user of how much quota was used and how much to refresh the daily quota
- Function for aggregating and organizing financial information into a single dataframe
- A local caching system that saves queries to the disk, improving execution time and reducing api calls on repeated queries.
- A quota management system, informing the user of how much of the API daily quota was used and how much time is left to refresh it.
- Function for aggregating and organizing financial information into a single dataframe, allowing easier access to clean financial data in the wide or long format.


# Installation
Expand Down
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ exchanges across the world. This includes:
- And [more](https://eodhd.com/)..

Package eodhd2 is an R port of the API, allowing fast and intelligent
access to the most endpoints.
access to most endpoints.

# Features

- Caching system that saves queries to local files, saving network
bandwidth and api calls
- Quota management, informing the user of how much quota was used and
how much to refresh the daily quota
- A local caching system that saves queries to the disk, improving
execution time and reducing api calls on repeated queries.
- A quota management system, informing the user of how much of the API
daily quota was used and how much time is left to refresh it.
- Function for aggregating and organizing financial information into a
single dataframe
single dataframe, allowing easier access to clean financial data in
the wide or long format.

# Installation

Expand Down Expand Up @@ -67,7 +68,7 @@ token <- eodhd2::get_demo_token()
eodhd2::set_token(token)
#> ✔ eodhd API token set
#> ℹ Account name: API Documentation 2 (supportlevel1@eodhistoricaldata.com)
#> ℹ Quota: 44117 | 10000000
#> ℹ Quota: 46886 | 10000000
#> ℹ Subscription: demo
#> ✖ You are using a DEMONSTRATION token for testing pourposes, with limited access to the data repositories.
#> See <https://eodhd.com/> for registration and use function set_token(TOKEN) to set your own token.
Expand All @@ -84,8 +85,8 @@ exchange <- "US"
df_prices <- eodhd2::get_prices(ticker, exchange)
#>
#> ── fetching price data for ticker AAPL|US ──────────────────────────────────────
#> ! Quota status: 44117|10000000, refreshing in 10.8 hours
#> ℹ cache file '/tmp/RtmpB7Sy9K/eodhd2-cache/AAPL_US_eodhd_prices.rds' saved
#> ! Quota status: 46887|10000000, refreshing in 9.99 hours
#> ℹ cache file '/tmp/RtmpT3AO3H/eodhd2-cache/AAPL_US_eodhd_prices.rds' saved
#> ✔ got 10959 rows of prices
#> ℹ got daily data from 1980-12-12 to 2024-06-03
```
Expand Down Expand Up @@ -134,8 +135,8 @@ exchange <- "US"
df_div <- eodhd2::get_dividends(ticker, exchange)
#>
#> ── fetching dividends for ticker AAPL|US ───────────────────────────────────────
#> ! Quota status: 44121|10000000, refreshing in 10.8 hours
#> ℹ cache file '/tmp/RtmpB7Sy9K/eodhd2-cache/AAPL_US_eodhd_dividends.rds' saved
#> ! Quota status: 46890|10000000, refreshing in 9.99 hours
#> ℹ cache file '/tmp/RtmpT3AO3H/eodhd2-cache/AAPL_US_eodhd_dividends.rds' saved
#> ✔ got 83 rows of dividend data
```

Expand Down Expand Up @@ -182,7 +183,7 @@ exchange <- "US"
l_fun <- eodhd2::get_fundamentals(ticker, exchange)
#>
#> ── fetching fundamentals for ticker AAPL|US ────────────────────────────────────
#> ! Quota status: 44122|10000000, refreshing in 10.8 hours
#> ! Quota status: 46891|10000000, refreshing in 9.99 hours
#> ✔ querying API
#> ✔ got 13 elements in raw list
```
Expand Down

0 comments on commit 75c423f

Please sign in to comment.