-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add another API functions Readme added The proxy part has been rewritten
- Loading branch information
1 parent
3439a01
commit 647a2d1
Showing
133 changed files
with
6,315 additions
and
71 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
EODHistoricalData.Wrapper/APIs/Abstract/IBondsFundamentalsAndHistoricalAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using EOD.Model.BondsFundamentalData; | ||
|
||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IBondsFundamentalsAndHistoricalAPI | ||
{ | ||
/// <summary> | ||
/// To get the full list of supported exchanges with names, codes, operating MICs, country, and currency | ||
/// </summary> | ||
Task<BondsFundamentalData> GetBondsFundamendalDataAsync(string cusip); | ||
|
||
/// <summary> | ||
/// To get the full list of supported exchanges with names, codes, operating MICs, country, and currency | ||
/// </summary> | ||
Task<List<BondHistoricalData>> GetBondHistoricalDataAsync(string code, DateTime? from = null, DateTime? to = null, string? order = null, string? period = null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using EOD.Model.Bulks; | ||
|
||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IBulkAPI | ||
{ | ||
/// <summary> | ||
/// To get the full list of supported exchanges with names, codes, operating MICs, country, and currency | ||
/// </summary> | ||
Task<List<Bulk>> GetBulksAsync(string code, string? type, DateTime? date, string? symbols); | ||
|
||
/// <summary> | ||
/// To get the full list of supported exchanges with names, codes, operating MICs, country, and currency | ||
/// </summary> | ||
Task<List<ExtendedBulk>> GetExtendedBulksAsync(string code, string? type, DateTime? date, string? symbols); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using EOD.Model.EarningTrends; | ||
using EOD.Model.IPOs; | ||
using EOD.Model.UpcomingEarnings; | ||
using EOD.Model.UpcomingSplits; | ||
|
||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface ICalendarAPI | ||
{ | ||
Task<UpcomingEarning> GetUpcomingEarningsAsync(DateTime? from, DateTime? to, string? ticker); | ||
Task<EarningTrend> GetEarningTrendsAsync(string ticker); | ||
Task<UpcomingIPO> GetUpcomingIPOsAsync(DateTime? from = null, DateTime? to = null); | ||
Task<UpcomingSplit> GetUpcomingSplitsAsync(DateTime? from = null, DateTime? to = null); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
EODHistoricalData.Wrapper/APIs/Abstract/IEconomicEventDataAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IEconomicEventDataAPI | ||
{ | ||
/// <summary> | ||
/// To get the full list of supported exchanges with names, codes, operating MICs, country, and currency | ||
/// </summary> | ||
Task<List<EconomicEventData>> GetEconomicEventsDataAsync(DateTime? from = null, DateTime? to = null, | ||
string? country = null, string? comparison = null, int? offset = null, int? limit = null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
EODHistoricalData.Wrapper/APIs/Abstract/IExchangeDetailsAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using EOD.Model.ExchangeDetails; | ||
|
||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IExchangeDetailsAPI | ||
{ | ||
/// <summary> | ||
/// To get details on each exchange | ||
/// </summary> | ||
Task<ExchangeDetail> GetExchangeDetailsAsync(string code, DateTime? from = null, DateTime? to = null); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
EODHistoricalData.Wrapper/APIs/Abstract/IExchangeSymbolsAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IExchangeSymbolsAPI | ||
{ | ||
/// <summary> | ||
/// To get a list of symbols for exchange | ||
/// </summary> | ||
Task<List<ExchangeSymbol>> GetExchangeSymbolsAsync(string code); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IExchangesAPI | ||
{ | ||
/// <summary> | ||
/// To get the full list of supported exchanges with names, codes, operating MICs, country, and currency | ||
/// </summary> | ||
Task<List<Exchange>> GetExchangeAsync(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
EODHistoricalData.Wrapper/APIs/Abstract/IFinancialNewsAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
/// <summary> | ||
/// Financial news API | ||
/// </summary> | ||
internal interface IFinancialNewsAPI | ||
{ | ||
Task<List<FinancialNews>> GetFinancialNewsAsync(string? s = null, string? t = null, | ||
DateTime? from = null, DateTime? to = null, int? limit = null, int? offset = null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
EODHistoricalData.Wrapper/APIs/Abstract/IHistoricalDividendsAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
/// <summary> | ||
/// Historical Dividends API | ||
/// </summary> | ||
internal interface IHistoricalDividendsAPI | ||
{ | ||
Task<List<HistoricalDividend>> GetDataAsync(string ticker, DateTime from, DateTime to); | ||
|
||
Task<List<HistoricalSplit>> GetHistoricalSplitsAsync(string ticker, DateTime from, DateTime to); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
EODHistoricalData.Wrapper/APIs/Abstract/IInsiderTransactionsAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IInsiderTransactionsAPI | ||
{ | ||
Task<List<InsiderTransaction>> GetInsiderTransactionsAsync(int? limit = null, DateTime? from = null, DateTime? to = null, string? ticker = null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
EODHistoricalData.Wrapper/APIs/Abstract/ILiveStockPricesAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
/// <summary> | ||
/// Intraday Historical Data API | ||
/// </summary> | ||
internal interface ILiveStockPricesAPI | ||
{ | ||
Task<LiveStockPrice> GetLiveStockPricesAsync(string ticker); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
EODHistoricalData.Wrapper/APIs/Abstract/IMacroeconomicsDataAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace EOD.APIs.Abstract | ||
{ | ||
/// <summary> | ||
/// Intraday Historical Data API | ||
/// </summary> | ||
internal interface IMacroIndicatorsAPI | ||
{ | ||
Task<List<MacroIndicator>> GetDataAsync(string country, string indicator); | ||
Task<List<MacroeconomicsData>> GetMacroeconomicsDataAsync(string ticker); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
EODHistoricalData.Wrapper/APIs/Abstract/IOptionsDataAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using EOD.Model.OptionsData; | ||
|
||
namespace EOD.APIs.Abstract | ||
{ | ||
/// <summary> | ||
/// Stock options data | ||
/// </summary> | ||
internal interface IOptionalDataAPI | ||
{ | ||
/// <summary> | ||
/// Get stock options data | ||
/// </summary> | ||
/// <param name="ticker">Consists of two parts: {SYMBOL_NAME}.{EXCHANGE_ID}, | ||
/// then you can use, for example, AAPL.MX for Mexican Stock Exchange. | ||
/// Or AAPL.US for NASDAQ.</param> | ||
/// <param name="from">filters OPTIONS by expirationDate. Default value: today.</param> | ||
/// <param name="to">filters OPTIONS by expirationDate. Default value: '2100-01-01'.</param> | ||
/// <param name="trade_date_from">filters OPTIONS by lastTradeDateTime. Default value: NONE.</param> | ||
/// <param name="trade_date_to">filters OPTIONS by lastTradeDateTime. Default value: NONE.</param> | ||
/// <param name="contract_name">returns only the data for particular contract.</param> | ||
/// <returns></returns> | ||
Task<OptionsData> GetOptionsDataAsync(string ticker, DateTime? from = null, DateTime? to = null, DateTime? trade_date_from = null, DateTime? trade_date_to = null, string? contract_name = null); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
EODHistoricalData.Wrapper/APIs/Abstract/IStockMarketScreenerAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using EOD.Model.Screener; | ||
|
||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface IStockMarketScreenerAPI | ||
{ | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
Task<StockMarkerScreener> GetStockMarketScreenerAsync(string? filters = null, string? signals = null, | ||
string? sort = null, int? limit = null, int? offset = null); | ||
} | ||
} |
123 changes: 123 additions & 0 deletions
123
EODHistoricalData.Wrapper/APIs/Abstract/ITechnicalIndicatorsAPI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
using EOD.Model.TechnicalIndicators; | ||
|
||
using static EOD.API; | ||
|
||
namespace EOD.APIs.Abstract | ||
{ | ||
internal interface ITechnicalIndicatorAPI | ||
{ | ||
/// <summary> | ||
/// This function returns the Simple Moving Average indicator | ||
/// </summary> | ||
Task<List<SMA>> GetSMAAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, string? order = null, int? splitAdjustedOnly = null); | ||
|
||
/// <summary> | ||
/// This function returns the Exponential Moving Average indicator | ||
/// </summary> | ||
Task<List<EMA>> GetEMAAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, string? order = null, int? splitAdjustedOnly = null); | ||
|
||
/// <summary> | ||
/// This function returns the Weighted Moving Average indicator | ||
/// </summary> | ||
Task<List<WMA>> GetWMAAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, string? order = null, int? splitAdjustedOnly = null); | ||
|
||
/// <summary> | ||
/// It’s not a technical indicator itself, but we added this function to our API. | ||
/// By default Open, High, Low and Close values (OHLC) provided in raw values and adjust neither for splits nor for dividends. | ||
/// </summary> | ||
Task<List<SplitAdjustedData>> GetSplitAdjustedDataAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, HistoricalPeriod? historicalPeriod = null); | ||
|
||
|
||
/// <summary> | ||
/// This function returns the Average Trading Volume. | ||
/// </summary> | ||
Task<List<AverageVolume>> GetAverageVolumeAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null); | ||
|
||
/// <summary> | ||
/// This function returns the Average Trading Volume. | ||
/// </summary> | ||
Task<List<AverageVolumebyPrice>> GetAverageVolumebyPriceAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null); | ||
|
||
/// <summary> | ||
/// This function returns the Volatility, a statistical measure of the dispersion of returns for a given security or market index. | ||
/// </summary> | ||
Task<List<Volatility>> GetVolatilityAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, int? splitAdjustedOnly = null); | ||
|
||
/// <summary> | ||
/// This function returns the Volatility, a statistical measure of the dispersion of returns for a given security or market index. | ||
/// </summary> | ||
Task<List<Stochastic>> GetStochasticAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, int? fast_kperiod = null, int? slow_kperiod = null, int? slow_dperiod = null); | ||
|
||
/// <summary> | ||
/// This function returns the Relative Strength Index (RSI) technical indicator. | ||
/// </summary> | ||
Task<List<RelativeStrengthIndex>> GetRelativeStrengthIndexAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, int? splitAdjustedOnly = null); | ||
|
||
/// <summary> | ||
/// This function returns the Standard Deviation (stddev) technical indicator. | ||
/// </summary> | ||
Task<List<StandardDeviation>> GetStandardDeviationAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null); | ||
|
||
/// <summary> | ||
/// This function returns Stochastic Relative Strength Index values. | ||
/// </summary> | ||
Task<List<StochasticRelativeStrengthIndex>> GetStochasticRelativeStrengthIndexAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, int? fast_kperiod = null, int? fast_dperiod = null); | ||
|
||
/// <summary> | ||
/// This function returns the Linear Regression Slope. | ||
/// </summary> | ||
Task<List<Slope>> GetSlopeAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, int? splitAdjustedOnly = null); | ||
|
||
/// <summary> | ||
/// This function returns the Directional Movement Index. | ||
/// </summary> | ||
Task<List<DirectionalMovementIndex>> GetDirectionalMovementIndexAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null); | ||
|
||
/// <summary> | ||
/// This function returns the Average Directional Movement Index. | ||
/// </summary> | ||
Task<List<AverageDirectionalMovementIndex>> GetAverageDirectionalMovementIndexAsync(string ticker, int? period = null, DateTime? from = null, | ||
DateTime? to = null, string? order = null); | ||
|
||
/// <summary> | ||
/// This function returns Moving Average Convergence/Divergence values. | ||
/// </summary> | ||
Task<List<MovingAverageConvergence>> GetMovingAverageConvergenceAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, int? splitAdjustedOnly = null, int? fast_period = null, int? slow_period = null, int? signal_period = null); | ||
|
||
/// <summary> | ||
/// This function returns the average of true ranges over the specified period. | ||
/// </summary> | ||
Task<List<AverageTrueRange>> GetAverageTrueRangeAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null); | ||
|
||
/// <summary> | ||
/// This function returns the CCI data. The Commodity Channel Index (CCI) is a momentum-based oscillator used to help determine when | ||
/// an investment vehicle is reaching a condition of being overbought or oversold. | ||
/// </summary> | ||
Task<List<CommodityChannelIndex>> GetCommodityChannelIndexAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null); | ||
|
||
/// <summary> | ||
/// This function returns the Parabolic SAR values. | ||
/// </summary> | ||
Task<List<ParabolicSAR>> GetParabolicSARAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null, double? acceleration = null, double? maximum = null); | ||
|
||
/// <summary> | ||
/// This file format returns the data in AmiBroker File format to import the data into AmiBroker software. | ||
/// </summary> | ||
Task<List<AmiBrokerData>> GetAmiBrokerDataAsync(string ticker, int? period = null, DateTime? from = null, DateTime? to = null, | ||
string? order = null); | ||
} | ||
} |
Oops, something went wrong.