EodHistoricalData.Sdk
0.6.3
dotnet add package EodHistoricalData.Sdk --version 0.6.3
NuGet\Install-Package EodHistoricalData.Sdk -Version 0.6.3
<PackageReference Include="EodHistoricalData.Sdk" Version="0.6.3" />
paket add EodHistoricalData.Sdk --version 0.6.3
#r "nuget: EodHistoricalData.Sdk, 0.6.3"
// Install EodHistoricalData.Sdk as a Cake Addin #addin nuget:?package=EodHistoricalData.Sdk&version=0.6.3 // Install EodHistoricalData.Sdk as a Cake Tool #tool nuget:?package=EodHistoricalData.Sdk&version=0.6.3
EodHistoricalData.com SDK
Overview
This is an unofficial SDK for the EOD Historical Data API, and to use this code, a valid, active subscription is required.
Data Feeds Supported
- EOD Historical Data
- Split Data Feed
- Dividends Data Feed
- Calendar Data
- Fundamental Data
- Stock Options Data
The specific API uris that are supported are all identified in the ApiService
class:
public const string BaseUri = "https://eodhistoricaldata.com/api/";
public const string EodUri = $"{BaseUri}eod/";
public const string ExchangesUri = $"{BaseUri}exchanges-list/";
public const string ExchangeDetailsUri = $"{BaseUri}exchange-details/";
public const string ExchangeSymbolListUri = $"{BaseUri}exchange-symbol-list/";
public const string BulkEodUri = $"{BaseUri}eod-bulk-last-day/";
public const string DividendUri = $"{BaseUri}div/";
public const string SplitsUri = $"{BaseUri}splits/";
public const string CalendarUri = $"{BaseUri}calendar/";
public const string FundamentalsUri = $"{BaseUri}fundamentals/";
public const string OptionsUri = $"{BaseUri}options/";
public const string UserUri = $"{BaseUri}user/";
Notes
- The
Fundamentals
API has a query string parameter calledfilter
; this feature is not currently supported by this SDK and there are no plans to add it. - The
Bulk Fundamentals
endpoint is not supported by this SDK and there are no plans to add it. - The
Technicals
API is not supported by this SDK; it remains to be seen whether it will be supported in the future.
Usage
The DataClient
class is a partial
class spread across a number of files whose names begin with DataClient_
.
This is the only class to instantiate to gain access to the EOD Historical Data API; hopefully the function names speak for themselves.
The import CLI and automated tests are good sources for usage examples.
The models to which the API results are mapped are all struct
s. the results coming from the API are immutable values that can be transformed into the domain objects (i.e., class
es you require.
var dataClient = new DataClient("your api key");
List<ApiResponseException> excs = new();
// The `ApiResponseExceptionEventHandler` captures errors originating from calls to the eodhistoricaldata.com API.
dataClient.ApiResponseExceptionEventHandler += (sender, apiResponseException, symbols) =>
{
// do something useful here.
excs.Add(apiResponseException);
};
var bulkLastDayNyse = await dataClient.GetBulkHistoricalDataForExchangeAsync("NYSE");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Shibusa.Extensions (>= 8.0.0)
-
net7.0
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- Shibusa.Extensions (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.