CURL & WGET Stock API Examples

Examples to get access to our API via CURL or WGET. For testing purposes, you can try the following API Key (works only for MCD.US and VTI.US tickers):  OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX. Learn more about our End of Day and Fundamental Data APIs. CURL Stock Data API Stock End of Day Data API via CURL curl https://eodhistoricaldata.com/api/eod/AAPL.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&order=d&fmt=json&from=2017-08-01 Fundamental […]

Read More

C# .NET API Stock Wrapper

Comprehensive .NET wrapper for all our APIs, including End-of-Day API, Fundamental API, Options API, and others, was written for us by Fred Blot. You can find the project on GitHub: https://github.com/EodHistoricalData/EODHistoricalData.NET. The wrapper is easy to use. This C# .NET wrapper for stock API is a stand-alone .NET project. For a quick start, we recommend […]

Read More

F Sharp (F#) Stock API Example

It’s very easy to use our API with F# (F Sharp) language as well. We provide simple examples of using our API with F# (F Sharp) and we believe that it will help to start working with our API very quick. Installation First, you should download f_sharp_bundle.zip. In this archive, you will find three files: […]

Read More

PHP/Laravel Example

EOD Historical Data API Client Wrapper (Financial and Stock Market API) for Laravel/PHP. You can find the Wrapper on Github page: https://github.com/radicalloop/eodhistoricaldata. Features Easy installation with Composer No configuration required for Laravel >= 5.5+, It will use the auto-discovery function. Easy to use Stocks API Example use Eod; $stock = Eod::stock(); // JSON $stock->realTime(‘AAPL.US’)->json(); $stock->eod(‘AAPL.US’)->json(); // […]

Read More

Java Stock API Example

Here you can find a Java example on how to use our API. In this API we provide source code for both EOD API and Fundamentals API. The example works with JSON version of our API, which provide more data and more flexible than CSV output. Here you can download source code for via github: […]

Read More
Python Stock API Example

Python Stock API Example

A simple Python example was written for us by Femto Trader. There is a small example, more information you can find on GitHub, check python-eodhistoricaldata. import requests import pandas as pd from io import StringIO def get_eod_data(symbol=”AAPL.US”, api_token=”xxxx”, session=None): if session is None: session = requests.Session() url = ‘https://eodhistoricaldata.com/api/eod/%s’ % symbol params = {“api_token”: api_token} […]

Read More
R-language Stock API Example

R Language Stock API Example

It’s very easy to use our API with R language, below you can find a very simple example with explanations for R developers. api.token <- “YOUR_API_KEY_HERE” symbol <- “AAPL.US” ticker.link <- paste(“http://nonsecure.eodhistoricaldata.com/api/eod/”, symbol, “?api_token=”, api.token, “&period=m&order=d”, sep=””) data <- read.csv(url(ticker.link)) head(data) For testing purposes, you can use this API Key: api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX. Works with AAPL.US only. If you […]

Read More