{"id":7150,"date":"2024-08-19T09:17:24","date_gmt":"2024-08-19T07:17:24","guid":{"rendered":"https:\/\/eodhd.com\/financial-apis\/?p=7150"},"modified":"2026-09-24T15:17:04","modified_gmt":"2026-09-24T13:17:04","slug":"r-library-v-2-for-financial-data-by-eodhd-2024","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024","title":{"rendered":"R Library for Financial Data (eodhdR2)"},"content":{"rendered":"\n<p class=\"article-content__text wp-block-paragraph\"><strong>eodhdR2<\/strong> is the official EODHD package for R, written by <a href=\"https:\/\/msperlin.com\">Prof. Marcelo S. Perlin<\/a>. It wraps our REST API in 60 functions that return tidy data frames: end-of-day and intraday prices, dividends and splits, fundamentals and financial statements, live quotes, technical indicators, a stock screener, search, options, index composition, calendars, macroeconomic and fixed-income series, sanctions lists, news and sentiment. The current release is <strong>0.8<\/strong>, published on CRAN on 22 September 2026.<\/p>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">R is an open-source language with a large following in quantitative finance, thanks to its statistical toolbox and its plotting libraries. This guide covers installation, authentication, everything the package covers, what the main functions cost in API calls, and a full worked example on Apple (AAPL). All outputs shown below were produced with eodhdR2 0.8 on 24 September 2026 \u2014 your row counts will be slightly higher as the data set grows.<\/p>\n\n\n    <div class=\"admonition admonition--warning\">\n        <span class=\"admonition__icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" width=\"20\" height=\"20\"><path fill-rule=\"evenodd\" d=\"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625l6.28-10.875zM10 6a1 1 0 011 1v3a1 1 0 11-2 0V7a1 1 0 011-1zm0 8a1 1 0 100-2 1 1 0 000 2z\"\/><\/svg><\/span>\n        <div class=\"admonition__body\">\n\n<p class=\"article-content__text wp-block-paragraph\">Our first-generation R package, <strong>eodhd<\/strong>, was archived by CRAN on 3 September 2024 and can no longer be installed with install.packages(). If you are still using it, migrate to eodhdR2 \u2014 it is the package described on this page and the one we maintain.<\/p>\n\n<\/div>\n    <\/div>\n    \n\n<!--TOC-->\n\n\n\n<p class=\"article-content__text has-text-align-center wp-block-paragraph\"><a class=\"btn btn--orange\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Sign up &amp; Get Data<\/span><\/a><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-installation\">Installation<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">You need R itself and, optionally, an editor. The suggested setup is:<\/p>\n\n\n\n<ol class=\"article-content__list article-content__list--ordered wp-block-list\">\n<li>Install the latest R for your platform (Windows, macOS or Linux) from <a href=\"https:\/\/cran.r-project.org\/\">cran.r-project.org<\/a>.<\/li>\n\n\n\n<li>Install <a href=\"https:\/\/posit.co\/products\/open-source\/rstudio\/\">RStudio<\/a>, or use R inside <a href=\"https:\/\/code.visualstudio.com\/\">VS Code<\/a> if you prefer.<\/li>\n<\/ol>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Then install the package from the R console. Note the function name is <strong>install.packages<\/strong>, with an &#8220;s&#8221;:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># stable version, from CRAN\ninstall.packages(\"eodhdR2\")\n\n# development version, from GitHub\nif (!require(devtools)) install.packages(\"devtools\")\ndevtools::install_github(\"EodHistoricalData\/R-Library-for-financial-data-2024\")<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">This pulls in the package&#8217;s dependencies \u2014 dplyr, tidyr, readr, lubridate, cli and others. On a machine with no compiled binaries available it may take several minutes. Once it finishes, load the package:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">library(eodhdR2)<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">If that runs without an error, the package is installed correctly. The source code and the issue tracker are on our <a href=\"https:\/\/github.com\/EodHistoricalData\/R-Library-for-financial-data-2024\">GitHub page<\/a> \u2014 watch the repository to be notified about new releases.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-activating-the-api\">Activating the API<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Register an account at <a href=\"https:\/\/eodhd.com\/\">eodhd.com<\/a>, then open your <a href=\"https:\/\/eodhd.com\/cp\/dashboard\">dashboard<\/a> and copy your API token. The token is tied to your subscription: a Fundamentals-only plan will not return price data, and vice versa. Our <a href=\"https:\/\/eodhd.com\/pricing\">plans<\/a> start at <strong>\u20ac19.99 per month<\/strong>, and the All-In-One plan covers every endpoint the library talks to.<\/p>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Authentication is handled once per R session with set_token():<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># set your own token\neodhdR2::set_token(\"YOUR_API_TOKEN\")<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">If you are logged in, the box below shows your own key in the request \u2014 use that value in set_token():<\/p>\n\n\n    <div class=\"api-key\" data-feed=\"API Usage\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/user?api_token=demo&amp;fmt=json\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/user?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>demo<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/user?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>demo<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/user?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>demo<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/user?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>demo<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/user?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>demo<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n\n<p class=\"article-content__text wp-block-paragraph\">You can also start with the free <strong>demo<\/strong> token, which returns real data for a small set of symbols: <a href=\"https:\/\/eodhd.com\/financial-summary\/AAPL.US\">AAPL.US<\/a>, <a href=\"https:\/\/eodhd.com\/financial-summary\/MSFT.US\">MSFT.US<\/a>, <a href=\"https:\/\/eodhd.com\/financial-summary\/TSLA.US\">TSLA.US<\/a>, <a href=\"https:\/\/eodhd.com\/financial-summary\/VTI.US\">VTI.US<\/a>, <a href=\"https:\/\/eodhd.com\/financial-summary\/AMZN.US\">AMZN.US<\/a>, <a href=\"https:\/\/eodhd.com\/financial-summary\/MCD.US\">MCD.US<\/a>, <a href=\"https:\/\/eodhd.com\/financial-summary\/BTC-USD.CC\">BTC-USD.CC<\/a> and EURUSD.FOREX. Any other symbol answers 403 Forbidden.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">token &lt;- eodhdR2::get_demo_token()\neodhdR2::set_token(token)<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">\u2714 eodhd API token set\n\u2139 Account name: API Documentation 2 (supportlevel1@eodhistoricaldata.com)\n\u2139 Quota: 251099 | 10000000\n\u2139 Subscription: demo\n\u2716 You are using a DEMONSTRATION token for testing purposes, with limited\n  access to the data repositories.<\/code><\/pre>\n<\/div>\n\n    <div class=\"admonition admonition--tip\">\n        <span class=\"admonition__icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" width=\"20\" height=\"20\"><path fill-rule=\"evenodd\" d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z\"\/><\/svg><\/span>\n        <div class=\"admonition__body\">\n\n<p class=\"article-content__text wp-block-paragraph\">Every function in eodhdR2 takes the ticker and the exchange as two separate arguments, so a symbol written as AAPL.US elsewhere in our documentation becomes get_prices(&#8220;AAPL&#8221;, &#8220;US&#8221;) here. The same rule applies to currency pairs: EUR-USD is get_prices(&#8220;EURUSD&#8221;, &#8220;FOREX&#8221;), not &#8220;EUR-USD&#8221;.<\/p>\n\n<\/div>\n    <\/div>\n    \n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-what-the-demo-token-covers\">What the demo token covers<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">The demo token does not cover every function. These are the results of running each one against it on 24 September 2026:<\/p>\n\n\n\n<figure class=\"article-content__table-wrap wp-block-table\"><table><thead><tr><th>Function<\/th><th>Demo token<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td><strong>get_prices<\/strong><\/td><td>Works<\/td><td>For the demo symbols only<\/td><\/tr><tr><td><strong>get_dividends<\/strong><\/td><td>Works<\/td><td>For the demo symbols only<\/td><\/tr><tr><td><strong>get_fundamentals<\/strong><\/td><td>Works<\/td><td>For the demo symbols only<\/td><\/tr><tr><td><strong>get_intraday<\/strong><\/td><td>Works<\/td><td>For the demo symbols only<\/td><\/tr><tr><td><strong>get_news<\/strong><\/td><td>Works<\/td><td>For the demo symbols only<\/td><\/tr><tr><td><strong>get_real_time<\/strong><\/td><td>Works<\/td><td>For the demo symbols only<\/td><\/tr><tr><td><strong>get_splits<\/strong><\/td><td>Paid token required<\/td><td>The library returns an explicit error<\/td><\/tr><tr><td><strong>get_exchanges<\/strong><\/td><td>Paid token required<\/td><td>The library returns an explicit error<\/td><\/tr><tr><td><strong>get_tickers<\/strong><\/td><td>Paid token required<\/td><td>The library returns an explicit error<\/td><\/tr><tr><td><strong>get_ipos<\/strong><\/td><td>Paid token required<\/td><td>The API answers 403 Forbidden<\/td><\/tr><tr><td><strong>get_screener<\/strong><\/td><td>Paid token required<\/td><td>The API answers 403 Forbidden<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">The rule of thumb: the demo token opens the endpoints a free trial would show you, on a handful of symbols. Everything else \u2014 the screener, the calendars, options, macro and credit-risk series \u2014 needs a paid token.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-api-calls-per-function\">API calls per function<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Each function spends API calls from your daily quota. The figures below were measured by reading the usage counter before and after each call \u2014 see <a href=\"https:\/\/eodhd.com\/financial-apis\/api-limits\">API Limits<\/a> for how the quota works.<\/p>\n\n\n\n<figure class=\"article-content__table-wrap wp-block-table\"><table><thead><tr><th>Function<\/th><th>What it returns<\/th><th>API calls<\/th><\/tr><\/thead><tbody><tr><td><strong>get_prices<\/strong><\/td><td>Daily OHLCV with adjusted close, full history<\/td><td>1<\/td><\/tr><tr><td><strong>get_dividends<\/strong><\/td><td>Dividend history<\/td><td>1<\/td><\/tr><tr><td><strong>get_splits<\/strong><\/td><td>Split history<\/td><td>1<\/td><\/tr><tr><td><strong>get_fundamentals<\/strong><\/td><td>Raw fundamentals as a nested list<\/td><td>10<\/td><\/tr><tr><td><strong>parse_financials<\/strong><\/td><td>Financial statements as a data frame<\/td><td>0 \u2014 works on data already downloaded<\/td><\/tr><tr><td><strong>get_intraday<\/strong><\/td><td>Intraday OHLCV bars<\/td><td>5<\/td><\/tr><tr><td><strong>get_news<\/strong><\/td><td>Company news<\/td><td>5 per page \u2014 see below<\/td><\/tr><tr><td><strong>get_ipos<\/strong><\/td><td>IPO calendar<\/td><td>1<\/td><\/tr><tr><td><strong>get_exchanges<\/strong><\/td><td>List of supported exchanges<\/td><td>1<\/td><\/tr><tr><td><strong>get_tickers<\/strong><\/td><td>All tickers of one exchange<\/td><td>1<\/td><\/tr><tr><td><strong>get_real_time<\/strong><\/td><td>Delayed live quote<\/td><td>1 per ticker<\/td><\/tr><tr><td><strong>get_technical<\/strong><\/td><td>One technical indicator series<\/td><td>5<\/td><\/tr><tr><td><strong>get_search<\/strong><\/td><td>Ticker and company search<\/td><td>1<\/td><\/tr><tr><td><strong>get_demo_token<\/strong>, <strong>set_token<\/strong>, <strong>get_user_info<\/strong><\/td><td>Authentication and account helpers<\/td><td>0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">get_news() pages through results automatically, 500 headlines at a time, and each page costs 5 API calls. A two-week window on AAPL returned 643 headlines over two pages, plus one more request that found nothing left, so it cost 15 calls in total. Every call also prints your remaining quota, so you can watch the counter as you work. The functions added in 0.7 cost whatever their endpoint costs \u2014 the per-endpoint figures are in <a href=\"https:\/\/eodhd.com\/financial-apis\/api-limits\">API Limits<\/a>, and get_user_info() reads your counter back at any point without spending a call.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-what-the-package-covers\">What the package covers<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Version 0.7 grew the package from twelve functions to sixty, and 0.8 fixed the bugs that pass uncovered. Almost every endpoint of our REST API now has an R wrapper, grouped as follows:<\/p>\n\n\n\n<figure class=\"article-content__table-wrap wp-block-table\"><table><thead><tr><th>Group<\/th><th>Functions<\/th><\/tr><\/thead><tbody><tr><td><strong>Prices<\/strong><\/td><td>get_prices, get_intraday, get_ticks, get_real_time, get_us_quote_delayed, get_bulk_eod<\/td><\/tr><tr><td><strong>Corporate actions<\/strong><\/td><td>get_dividends, get_splits, get_symbol_change_history<\/td><\/tr><tr><td><strong>Fundamentals<\/strong><\/td><td>get_fundamentals, parse_financials, get_bulk_fundamentals, get_historical_market_cap, get_insider_transactions<\/td><\/tr><tr><td><strong>Calendars<\/strong><\/td><td>get_earnings, get_earnings_trends, get_dividends_calendar, get_splits_calendar, get_ipos, get_economic_events<\/td><\/tr><tr><td><strong>Reference data<\/strong><\/td><td>get_exchanges, get_exchange_details, get_tickers, get_search, get_id_mapping, get_index_list, get_index_composition<\/td><\/tr><tr><td><strong>Screening and signals<\/strong><\/td><td>get_screener, get_technical<\/td><\/tr><tr><td><strong>News and sentiment<\/strong><\/td><td>get_news, get_sentiments, get_news_word_weights<\/td><\/tr><tr><td><strong>Options<\/strong><\/td><td>get_options_contracts, get_options_eod, get_options_underlyings<\/td><\/tr><tr><td><strong>Macro and rates<\/strong><\/td><td>get_macro_indicator, get_policy_rates, get_reference_rates, get_ust_rates, get_commodities<\/td><\/tr><tr><td><strong>Credit risk<\/strong><\/td><td>get_sovereign_cds_spreads, get_sovereign_credit_ratings, get_sovereign_risk_premium, get_cds_market_aggregates, get_default_spreads, get_corporate_cmdi, get_corporate_hqm_yields, get_funding_stress_spreads<\/td><\/tr><tr><td><strong>Real estate<\/strong><\/td><td>get_real_estate, get_real_estate_countries, get_real_estate_detailed, get_real_estate_series<\/td><\/tr><tr><td><strong>Sanctions<\/strong><\/td><td>get_sanctions_entities, get_sanctions_programs, get_sanctions_sources, get_sanctions_vessels<\/td><\/tr><tr><td><strong>Account and escape hatch<\/strong><\/td><td>set_token, get_demo_token, get_user_info, get_eodhd<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">get_eodhd() is the escape hatch: it takes any endpoint path and any set of parameters, and returns a data frame, so an endpoint we add tomorrow is reachable before it gets its own wrapper.<\/p>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Every function is documented inside R. To read the arguments and the return value of any of them, use the help command:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">help(get_prices)<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"article-content__image wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"509\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/example-help.png\" alt=\"R help page for the get_prices() function of eodhdR2\" class=\"wp-image-7163\" srcset=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/example-help.png 750w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/example-help-300x204.png 300w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/example-help-60x41.png 60w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/example-help-150x102.png 150w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Here is one call for each of the core functions, with the number of rows we got back on 24 September 2026 using a paid token:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">library(eodhdR2)\nset_token(\"YOUR_API_TOKEN\")\n\nprices  &lt;- get_prices(\"AAPL\", \"US\")                    # 11,537 rows, 1980-12-12 to 2026-09-23\ndivs    &lt;- get_dividends(\"AAPL\", \"US\")                 # 92 rows\nsplits  &lt;- get_splits(\"AAPL\", \"US\")                    # 5 rows\nl_fun   &lt;- get_fundamentals(\"AAPL\", \"US\")              # list of 13 elements\nfin     &lt;- parse_financials(l_fun, \"long\")             # 71,280 rows\nintra   &lt;- get_intraday(\"AAPL\", \"US\", \"5m\")            # 395 five-minute bars, last 7 days\nnews    &lt;- get_news(\"AAPL\", \"US\",\n                    first_date = Sys.Date() - 14)      # 643 headlines\nipos    &lt;- get_ipos(first_date = Sys.Date() - 30)      # 108 IPOs\nexch    &lt;- get_exchanges()                             # 70 exchanges\ntickers &lt;- get_tickers(\"US\")                           # 51,084 US tickers<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">Supported intraday frequencies are 1m, 5m and 1h, subject to the retention windows described in the <a href=\"https:\/\/eodhd.com\/financial-apis\/intraday-historical-data-api\">Intraday Historical Data API<\/a> documentation. parse_financials() accepts &#8220;long&#8221; or &#8220;wide&#8221; as its second argument; the wide table for AAPL is 594 rows by 127 columns.<\/p>\n\n\n    <div class=\"admonition admonition--note\">\n        <span class=\"admonition__icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" width=\"20\" height=\"20\"><path fill-rule=\"evenodd\" d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z\"\/><\/svg><\/span>\n        <div class=\"admonition__body\">\n\n<p class=\"article-content__text wp-block-paragraph\">Until version 0.7, get_intraday() ignored its first_date and last_date arguments and returned the whole retention window. From 0.7 the dates are honoured, and the default window is the past seven days \u2014 pass first_date and last_date when you want more.<\/p>\n\n<\/div>\n    <\/div>\n    \n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-worked-example-apple-aapl\">Worked example: Apple (AAPL)<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Everything in this section runs with the demo token, except for the splits example. Apple trades on the US market, so the ticker is &#8220;AAPL&#8221; and the exchange is &#8220;US&#8221;.<\/p>\n\n\n\n<h3 class=\"article-content__heading article-content__heading--h3 wp-block-heading\" id=\"h-retrieving-prices\"><strong>Retrieving prices<\/strong><\/h3>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">ticker   &lt;- \"AAPL\" # AAPL is the ticker for Apple Inc\nexchange &lt;- \"US\"   # AAPL trades on the US market\n\n# fetch prices from the eodhd end-of-day endpoint\ndf_prices &lt;- eodhdR2::get_prices(ticker, exchange)<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">\u2500\u2500 retrieving price data for ticker AAPL|US \u2500\u2500\n\u2139 cache file AAPL_US_eodhd_prices.rds saved\n\u2714 got 11537 rows of prices\n\u2139 got daily data from 1980-12-12 to 2026-09-23<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># check the result\ndplyr::glimpse(df_prices)<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"article-content__image wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"570\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2.png\" alt=\"Structure of the price data frame returned by eodhdR2 get_prices()\" class=\"wp-image-7177\"  srcset=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2.png 1608w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2-300x106.png 300w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2-1024x363.png 1024w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2-768x272.png 768w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2-1536x544.png 1536w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2-60x21.png 60w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/request_example-2-150x53.png 150w\" sizes=\"(max-width: 1608px) 100vw, 1608px\" \/><\/figure>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Now let&#8217;s use ggplot2 to plot the adjusted price series of the past five years:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">library(ggplot2)\n\nfirst_date &lt;- Sys.Date() - 5*365 # last 5 years\nlast_date  &lt;- Sys.Date()\n\ndf_prices &lt;- df_prices |&gt;\n  dplyr::filter(\n    date &gt;= first_date,\n    date &lt;= last_date\n    )\n\np &lt;- ggplot(df_prices, aes(y = adjusted_close, x = date)) +\n  geom_line() +\n  theme_light() +\n  labs(title = \"Adjusted Prices of AAPL\",\n       subtitle = \"Prices are adjusted to splits, dividends and other corporate events\",\n       x = \"Date\",\n       y = \"Adjusted Prices\",\n       caption = \"Data obtained with package eodhdR2\")\n\np<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"article-content__image wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"960\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-5-1.png\" alt=\"Chart of AAPL adjusted prices plotted in R with ggplot2\" class=\"wp-image-7178\" srcset=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-5-1.png 1344w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-5-1-300x214.png 300w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-5-1-1024x731.png 1024w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-5-1-768x549.png 768w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-5-1-60x43.png 60w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-5-1-150x107.png 150w\" sizes=\"(max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n\n\n<h3 class=\"article-content__heading article-content__heading--h3 wp-block-heading\" id=\"h-retrieving-dividends\"><strong>Retrieving dividends<\/strong><\/h3>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">The same interface returns the dividend history:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># fetch data from the dividends endpoint and filter for dates\ndf_div &lt;- eodhdR2::get_dividends(ticker, exchange) |&gt;\n  dplyr::filter(\n    date &gt;= first_date,\n    date &lt;= last_date\n    )<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">\u2500\u2500 retrieving dividends for ticker AAPL|US \u2500\u2500\n\u2139 cache file AAPL_US_eodhd_dividends.rds saved\n\u2714 got 92 rows of dividend data<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># check the data\ndplyr::glimpse(df_div)<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"article-content__image wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1580\" height=\"576\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2.png\" alt=\"Structure of the dividend data frame returned by eodhdR2\" class=\"wp-image-7179\" srcset=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2.png 1580w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2-300x109.png 300w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2-1024x373.png 1024w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2-768x280.png 768w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2-1536x560.png 1536w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2-60x22.png 60w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/response-example-AAPL-2-150x55.png 150w\" sizes=\"(max-width: 1580px) 100vw, 1580px\" \/><\/figure>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">And the dividend history as a chart:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">p &lt;- ggplot(df_div, aes(y = value, x = date)) +\n  geom_point(size = 2) +\n  theme_light() +\n  labs(title = \"Adjusted Dividends of AAPL\",\n       x = \"Date\",\n       y = \"Adjusted Dividends\")\n\np<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"article-content__image wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1344\" height=\"960\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-7-1.png\" alt=\"Chart of AAPL adjusted dividends plotted in R with ggplot2\" class=\"wp-image-7180\" srcset=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-7-1.png 1344w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-7-1-300x214.png 300w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-7-1-1024x731.png 1024w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-7-1-768x549.png 768w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-7-1-60x43.png 60w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/unnamed-chunk-7-1-150x107.png 150w\" sizes=\"(max-width: 1344px) 100vw, 1344px\" \/><\/figure>\n\n\n\n<h3 class=\"article-content__heading article-content__heading--h3 wp-block-heading\" id=\"h-retrieving-splits\"><strong>Retrieving splits<\/strong><\/h3>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Splits need a paid token. Apple has split its stock five times:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">df_splits &lt;- eodhdR2::get_splits(ticker, exchange)\ndf_splits<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">        date ticker exchange             split\n1 1987-06-16   AAPL       US 2.000000\/1.000000\n2 2000-06-21   AAPL       US 2.000000\/1.000000\n3 2005-02-28   AAPL       US 2.000000\/1.000000\n4 2014-06-09   AAPL       US 7.000000\/1.000000\n5 2020-08-31   AAPL       US 4.000000\/1.000000<\/code><\/pre>\n<\/div>\n\n\n<h3 class=\"article-content__heading article-content__heading--h3 wp-block-heading\" id=\"h-retrieving-fundamentals\"><strong>Retrieving fundamentals<\/strong><\/h3>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Fundamental data arrives as a nested list, the same structure our <a href=\"https:\/\/eodhd.com\/financial-apis\/stock-etfs-fundamental-data-feeds\">Fundamental Data API<\/a> returns as JSON:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># fetch the data\nl_fun &lt;- eodhdR2::get_fundamentals(ticker, exchange)\n\n# the result is a list \u2014 check its content\nnames(l_fun)<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">\u2500\u2500 retrieving fundamentals for ticker AAPL|US \u2500\u2500\n\u2714 querying API\n\u2714 got 13 elements in raw list\n\n [1] \"General\"             \"Highlights\"          \"Valuation\"\n [4] \"SharesStats\"         \"Technicals\"          \"SplitsDividends\"\n [7] \"AnalystRatings\"      \"Holders\"             \"InsiderTransactions\"\n[10] \"ESGScores\"           \"outstandingShares\"   \"Earnings\"\n[13] \"Financials\"<\/code><\/pre>\n<\/div>\n\n\n<h3 class=\"article-content__heading article-content__heading--h3 wp-block-heading\" id=\"h-parsing-financials\">Parsing financials<\/h3>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">parse_financials() turns the raw list into a data frame. It downloads nothing, so it costs no API calls:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">type_table &lt;- \"long\" # \"long\" or \"wide\"\n\n# l_fun is the output of eodhdR2::get_fundamentals()\nlong_financials &lt;- eodhdR2::parse_financials(l_fun, type_table)\n\n# check contents\nhead(long_financials)<\/code><\/pre>\n<\/div>\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">\u2500\u2500 Parsing financial data for Apple Inc. | AAPL \u2500\u2500\n\u2139 parsing Balance_Sheet data\n\u2139    quarterly\n\u2139    yearly\n\u2139 parsing Cash_Flow data\n\u2139    quarterly\n\u2139    yearly\n\u2139 parsing Income_Statement data\n\u2139    quarterly\n\u2139    yearly\n\u2714 got 71280 rows of financial data (long format)<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"article-content__image wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1604\" height=\"512\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials.png\" alt=\"Financial statements of AAPL parsed into a long-format data frame\" class=\"wp-image-7181\" srcset=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials.png 1604w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials-300x96.png 300w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials-1024x327.png 1024w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials-768x245.png 768w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials-1536x490.png 1536w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials-60x19.png 60w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/Parsing-financials-150x48.png 150w\" sizes=\"(max-width: 1604px) 100vw, 1604px\" \/><\/figure>\n\n\n\n<h3 class=\"article-content__heading article-content__heading--h3 wp-block-heading\" id=\"h-the-last-quarterly-balance-sheet-of-aapl\">The last quarterly balance sheet of AAPL<\/h3>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">With the financials in a data frame, a report of the latest quarterly balance sheet is a few lines of dplyr and gt:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">quarterly_bs &lt;- long_financials |&gt;\n  dplyr::filter(\n    frequency == 'quarterly',\n    type_financial == \"Balance_Sheet\"\n  )\n\nlast_date &lt;- max(quarterly_bs$date)\n\nlast_bs &lt;- quarterly_bs |&gt;\n  dplyr::filter(date == last_date)\n\nlast_bs |&gt;\n  dplyr::select(date, name, value) |&gt;\n  na.omit() |&gt;\n  gt::gt() |&gt;\n  gt::tab_header(\n    title = paste0(\"Balance Sheet of AAPL (\", last_date,\")\"),\n    subtitle = paste0(\"Data from eodhd (values in thousands USD)\")\n  ) |&gt;\n  gt::fmt_currency(value, scale_by = 1\/1000)<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"article-content__image wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"1534\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/balance-sheet-AAPL.png\" alt=\"Quarterly balance sheet of AAPL rendered as a gt table in R\" class=\"wp-image-7182\" srcset=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/balance-sheet-AAPL.png 918w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/balance-sheet-AAPL-180x300.png 180w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/balance-sheet-AAPL-613x1024.png 613w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/balance-sheet-AAPL-768x1283.png 768w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/balance-sheet-AAPL-36x60.png 36w, https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2024\/08\/balance-sheet-AAPL-90x150.png 90w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-intraday-prices-news-and-ipos\">Intraday prices, news and IPOs<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">These three were the first additions after the original release of this guide, and 0.7 fixed the date handling of get_intraday(): the window you ask for is the window you get.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># five-minute bars; without dates you get the past seven days\nintra &lt;- eodhdR2::get_intraday(\"AAPL\", \"US\", frequency = \"5m\")\n\n# or ask for an explicit window\nintra &lt;- eodhdR2::get_intraday(\"AAPL\", \"US\", frequency = \"5m\",\n                               first_date = Sys.Date() - 3,\n                               last_date  = Sys.Date())\n\ndplyr::glimpse(intra)<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">The data frame carries timestamp, gmtoffset, datetime, open, high, low, close, volume, ticker and exchange. On 24 September 2026 the default seven-day window held 395 five-minute bars for AAPL, from 17 September 13:30 to 23 September 20:00 UTC; the three-day window held 237.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># company news for the past two weeks\nnews &lt;- eodhdR2::get_news(\"AAPL\", \"US\", first_date = Sys.Date() - 14)\n\n# IPOs of the past 30 days \u2014 needs a paid token\nipos &lt;- eodhdR2::get_ipos(first_date = Sys.Date() - 30)<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">get_news() returns the headline, the full text, the sentiment scores and the related tickers of each article, the same payload as the <a href=\"https:\/\/eodhd.com\/financial-apis\/stock-market-financial-news-api\">Financial News API<\/a>. For the two weeks to 24 September 2026 it returned 643 headlines on AAPL. get_ipos() covers the same calendar as the <a href=\"https:\/\/eodhd.com\/financial-apis\/calendar-upcoming-earnings-ipos-and-splits\">Calendar API<\/a> \u2014 108 IPOs in the preceding 30 days.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-beyond-prices-and-fundamentals\">Beyond prices and fundamentals<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">The functions added in 0.7 follow the same conventions \u2014 ticker and exchange as separate arguments, a tidy data frame back, the answer cached on disk. A few of them, run on 24 September 2026:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\"># delayed live quote \u2014 1 row: code, timestamp, gmtoffset, OHLC,\n# volume, previousClose, change, change_p\nquote &lt;- eodhdR2::get_real_time(\"AAPL\", \"US\")\n\n# a technical indicator, computed server side\nsma &lt;- eodhdR2::get_technical(\"AAPL\", \"US\", indicator = \"sma\", period = 50,\n                              first_date = Sys.Date() - 365)   # 202 rows\n\n# search by name, ticker or ISIN\nhits &lt;- eodhdR2::get_search(\"apple\", limit = 5)                # 5 rows\n\n# screen the whole universe by fundamentals and price\nbig &lt;- eodhdR2::get_screener(\n  filters = list(c(\"market_capitalization\", \"&gt;\", 100000000000)),\n  sort    = \"market_capitalization.desc\",\n  limit   = 5)\n\n# daily news sentiment\nsent &lt;- eodhdR2::get_sentiments(\"AAPL.US\", first_date = Sys.Date() - 7)\n\n# index composition, current and historical\nl_idx &lt;- eodhdR2::get_index_composition(\"GSPC.INDX\")\n# list of 3: info, current_components (503 rows), historical_components (822 rows)<\/code><\/pre>\n<\/div>\n\n    <div class=\"admonition admonition--note\">\n        <span class=\"admonition__icon\" aria-hidden=\"true\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" width=\"20\" height=\"20\"><path fill-rule=\"evenodd\" d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z\"\/><\/svg><\/span>\n        <div class=\"admonition__body\">\n\n<p class=\"article-content__text wp-block-paragraph\">get_technical() asks the API for the indicator over the window you give it, and an indicator needs a warm-up: a 50-day moving average over a 30-day window returns zero rows. Request a window comfortably longer than the period.<\/p>\n\n<\/div>\n    <\/div>\n    \n\n\n<p class=\"article-content__text wp-block-paragraph\">Note that get_index_composition() takes the full symbol with its exchange, &#8220;GSPC.INDX&#8221;, not the two separate arguments the price functions use. When an endpoint has no wrapper yet, get_eodhd() reaches it directly:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">df &lt;- eodhdR2::get_eodhd(\"eod\/AAPL.US\", params = list(from = \"2026-09-01\"))\n# 16 rows: date, open, high, low, close, adjusted_close, volume<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">Options, macroeconomic series, treasury and policy rates, sovereign credit risk, real estate and the sanctions lists work the same way \u2014 the full list is in the table above, and each function has its own help page in R.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-caching\">Caching<\/h2>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">Every data function caches its answer on disk and reuses it when you repeat the same call, which keeps your quota intact while you iterate. Live quotes are the exception: get_real_time() and get_us_quote_delayed() are never cached, because a cached quote is a wrong quote. By default the cache lives in R&#8217;s temporary folder and disappears when you close the session. To keep it between sessions, pass a folder of your own:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"article-content__code-block wp-block-code\"><code class=\"\">prices &lt;- eodhdR2::get_prices(\"AAPL\", \"US\", cache_folder = \"eodhd-cache\")<\/code><\/pre>\n<\/div>\n\n\n<p class=\"article-content__text wp-block-paragraph\">A cached file is never refreshed automatically. Delete it \u2014 or point the function at a different folder \u2014 when you want new data.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"article-content__heading article-content__heading--h2 wp-block-heading\" id=\"h-related-apis\">Related APIs and libraries<\/h2>\n\n\n\n<ul class=\"article-content__list wp-block-list\">\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\">End-of-Day Historical Data API<\/a> \u2014 the endpoint behind get_prices(), with every parameter it supports.<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/stock-etfs-fundamental-data-feeds\">Fundamental Data API<\/a> \u2014 the structure of the list get_fundamentals() returns, field by field.<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/api-splits-dividends\">Splits and Dividends API<\/a> \u2014 the endpoints behind get_splits() and get_dividends().<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/intraday-historical-data-api\">Intraday Historical Data API<\/a> \u2014 supported frequencies and how far back each one goes.<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/live-ohlcv-stocks-api\">Live (Delayed) Stock Prices API<\/a> \u2014 the quote get_real_time() returns and how delayed it is per exchange.<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/technical-indicators-api\">Technical Indicators API<\/a> and <a href=\"https:\/\/eodhd.com\/financial-apis\/stock-market-screener-api\">Stock Market Screener API<\/a> \u2014 every indicator and every filter get_technical() and get_screener() accept.<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/search-api-for-stocks-etfs-mutual-funds\">Search API<\/a> \u2014 the matching rules behind get_search().<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/python-financial-libraries-and-code-samples\">Python library<\/a> and <a href=\"https:\/\/eodhd.com\/financial-apis\/spreadsheets-for-stocks-etfs-forex-markets\">Google Sheets and Excel add-ons<\/a> \u2014 the same data outside R.<\/li>\n\n\n\n<li><a href=\"https:\/\/eodhd.com\/financial-apis\/api-limits\">API Limits<\/a> \u2014 how requests, API calls and daily quotas are counted.<\/li>\n<\/ul>\n\n\n\n<p class=\"article-content__text wp-block-paragraph\">If something on this page does not match what you see in your R session, write to <a href=\"mailto:support@eodhistoricaldata.com\">support@eodhistoricaldata.com<\/a>, or open an issue on the package&#8217;s <a href=\"https:\/\/github.com\/EodHistoricalData\/R-Library-for-financial-data-2024\/issues\">GitHub tracker<\/a>.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>eodhdR2 is the official EODHD package for R, written by Prof. Marcelo S. Perlin. It wraps our REST API in 60 functions that return tidy data frames: end-of-day and intraday prices, dividends and splits, fundamentals and financial statements, live quotes, technical indicators, a stock screener, search, options, index composition, calendars, macroeconomic and fixed-income series, sanctions [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":4485,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-7150","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel-python-php-laravel-java-matlab-examples"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.6 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>R Financial Data API Library &amp; Code Examples | EODHD<\/title>\n<meta name=\"description\" content=\"Official EODHD R library (eodhdR2): install it, authenticate, and pull EOD, intraday, fundamentals, dividends and news into R with live code examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R Library for Financial Data (eodhdR2)\" \/>\n<meta property=\"og:description\" content=\"Official EODHD R library (eodhdR2): install it, authenticate, and pull EOD, intraday, fundamentals, dividends and news into R with live code examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024\" \/>\n<meta property=\"og:site_name\" content=\"Stock Price Data, Financial and Stock Market API\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-19T07:17:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-24T13:17:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png\" \/>\n\t<meta property=\"og:image:width\" content=\"270\" \/>\n\t<meta property=\"og:image:height\" content=\"270\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"a.pletnev\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"a.pletnev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024\"},\"author\":{\"name\":\"a.pletnev\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d\"},\"headline\":\"R Library for Financial Data (eodhdR2)\",\"datePublished\":\"2024-08-19T07:17:24+00:00\",\"dateModified\":\"2026-09-24T13:17:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024\"},\"wordCount\":1968,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png\",\"articleSection\":[\"5. Developer Tools &amp; Examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024\",\"name\":\"R Financial Data API Library & Code Examples | EODHD\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png\",\"datePublished\":\"2024-08-19T07:17:24+00:00\",\"dateModified\":\"2026-09-24T13:17:04+00:00\",\"description\":\"Official EODHD R library (eodhdR2): install it, authenticate, and pull EOD, intraday, fundamentals, dividends and news into R with live code examples.\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png\",\"width\":270,\"height\":270,\"caption\":\"R Language Stock API Example\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-apis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R Library for Financial Data (eodhdR2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/\",\"name\":\"Historical Stock Prices and Fundamental Financial Data APIs | EODHD\",\"description\":\"End Of Day (EOD), Fundamental and Real-time\/Live Data Market API\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-apis\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d\",\"name\":\"a.pletnev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g\",\"caption\":\"a.pletnev\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"R Financial Data API Library & Code Examples | EODHD","description":"Official EODHD R library (eodhdR2): install it, authenticate, and pull EOD, intraday, fundamentals, dividends and news into R with live code examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024","og_locale":"en_US","og_type":"article","og_title":"R Library for Financial Data (eodhdR2)","og_description":"Official EODHD R library (eodhdR2): install it, authenticate, and pull EOD, intraday, fundamentals, dividends and news into R with live code examples.","og_url":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024","og_site_name":"Stock Price Data, Financial and Stock Market API","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2024-08-19T07:17:24+00:00","article_modified_time":"2026-09-24T13:17:04+00:00","og_image":[{"width":270,"height":270,"url":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png","type":"image\/png"}],"author":"a.pletnev","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"a.pletnev","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024"},"author":{"name":"a.pletnev","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d"},"headline":"R Library for Financial Data (eodhdR2)","datePublished":"2024-08-19T07:17:24+00:00","dateModified":"2026-09-24T13:17:04+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024"},"wordCount":1968,"publisher":{"@id":"https:\/\/eodhd.com\/financial-apis\/#organization"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png","articleSection":["5. Developer Tools &amp; Examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024","url":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024","name":"R Financial Data API Library & Code Examples | EODHD","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png","datePublished":"2024-08-19T07:17:24+00:00","dateModified":"2026-09-24T13:17:04+00:00","description":"Official EODHD R library (eodhdR2): install it, authenticate, and pull EOD, intraday, fundamentals, dividends and news into R with live code examples.","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#primaryimage","url":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png","contentUrl":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png","width":270,"height":270,"caption":"R Language Stock API Example"},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-apis\/r-library-v-2-for-financial-data-by-eodhd-2024#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-apis"},{"@type":"ListItem","position":2,"name":"R Library for Financial Data (eodhdR2)"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-apis\/#website","url":"https:\/\/eodhd.com\/financial-apis\/","name":"Historical Stock Prices and Fundamental Financial Data APIs | EODHD","description":"End Of Day (EOD), Fundamental and Real-time\/Live Data Market API","publisher":{"@id":"https:\/\/eodhd.com\/financial-apis\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-apis\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-apis\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-apis\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d","name":"a.pletnev","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g","caption":"a.pletnev"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/07\/R-Language-Stock-API-Example.png","jetpack_shortlink":"https:\/\/wp.me\/p8NjB1-1Rk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/comments?post=7150"}],"version-history":[{"count":17,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7150\/revisions"}],"predecessor-version":[{"id":8190,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7150\/revisions\/8190"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/media?parent=7150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/categories?post=7150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/tags?post=7150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}