-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate StockResearchService out of StockService
- part of overall effort to clean up StockService V2 (cloud) - V1 (legacy) has not been separated as it is deprecated anyways
- Loading branch information
Showing
21 changed files
with
297 additions
and
234 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...l/Stock/Response/AdvancedStatsResponse.cs → ...esearch/Response/AdvancedStatsResponse.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
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 @@ | ||
using System.Collections.Generic; | ||
using VSLee.IEXSharp.Model.Stock.Response; | ||
|
||
namespace VSLee.IEXSharp.Model.StockResearch.Response | ||
{ | ||
public class EstimateResponse | ||
{ | ||
public string symbol { get; set; } | ||
public List<Estimate> estimates { get; set; } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...l/Stock/Response/FundOwnershipResponse.cs → ...esearch/Response/FundOwnershipResponse.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
2 changes: 1 addition & 1 deletion
2
...esponse/InstitutionalOwnershipResponse.cs → ...esponse/InstitutionalOwnershipResponse.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
4 changes: 2 additions & 2 deletions
4
.../Model/Stock/Response/KeyStatsResponse.cs → ...tockResearch/Response/KeyStatsResponse.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
2 changes: 1 addition & 1 deletion
2
...del/Stock/Response/PriceTargetResponse.cs → ...kResearch/Response/PriceTargetResponse.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
4 changes: 2 additions & 2 deletions
4
...ck/Response/TechnicalIndicatorResponse.cs → ...ch/Response/TechnicalIndicatorResponse.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
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
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
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
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
80 changes: 80 additions & 0 deletions
80
IEXSharp/Service/V2/StockResearch/IStockResearchService.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,80 @@ | ||
using IEXSharp.Model; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using VSLee.IEXSharp.Model.StockResearch.Response; | ||
|
||
namespace IEXSharp.Service.V2.StockResearch | ||
{ | ||
public interface IStockResearchService | ||
{ | ||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#advanced-stats"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<AdvancedStatsResponse>> AdvancedStatsAsync(string symbol); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#estimates"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <param name="last"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<EstimateResponse>> EstimateAsync(string symbol, int last = 1); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#estimates"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <param name="field"></param> | ||
/// <param name="last"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<string>> EstimateFieldAsync(string symbol, string field, int last = 1); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#fund-ownership"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<IEnumerable<FundOwnershipResponse>>> FundOwnershipAsync(string symbol); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#institutional-ownership"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<IEnumerable<InstitutionalOwnershipResponse>>> InstitutionalOwnerShipAsync(string symbol); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#key-stats"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<KeyStatsResponse>> KeyStatsAsync(string symbol); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#key-stats"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <param name="stat"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<string>> KeyStatsStatAsync(string symbol, string stat); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#price-target"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<PriceTargetResponse>> PriceTargetAsync(string symbol); | ||
|
||
/// <summary> | ||
/// <see cref="https://iexcloud.io/docs/api/#technical-indicators"/> | ||
/// </summary> | ||
/// <param name="symbol"></param> | ||
/// <param name="indicator"></param> | ||
/// <returns></returns> | ||
Task<IEXResponse<TechnicalIndicatorsResponse>> TechnicalIndicatorsAsync(string symbol, string indicator); | ||
} | ||
} |
Oops, something went wrong.