Skip to content

Commit

Permalink
Feature/stock missing fields (#87)
Browse files Browse the repository at this point in the history
Beginning of picking up missing fields in the response types.

This is just:

https://iexcloud.io/docs/api/#balance-sheet
https://iexcloud.io/docs/api/#cash-flow
https://iexcloud.io/docs/api/#company
https://iexcloud.io/docs/api/#earnings
https://iexcloud.io/docs/api/#financials
https://iexcloud.io/docs/api/#fund-ownership
https://iexcloud.io/docs/api/#historical-prices
https://iexcloud.io/docs/api/#insider-summary
https://iexcloud.io/docs/api/#insider-transactions
https://iexcloud.io/docs/api/#institutional-ownership
https://iexcloud.io/docs/api/#key-stats
https://iexcloud.io/docs/api/#splits-basic

Includes the following commits:
* Adding missing fields for Earning.cs

* Adding missing fields for CompanyResponse

* Adding missing fields for CashFlowResponse

* Adding missing fields for BalanceSheetResponse

* FinancialResponse

* Updating FundOwnershipResponse

* HistoricalPriceResponse Update

* Earning response, double to decimal.

* Update InsiderSummaryResponse.cs

* Update InsiderTransactionResponse.cs

* Update InstitutionalOwnershipResponse.cs

* Fixed Typos in IntradayPriceResponse.cs

* Update KeyStatsResponse.cs

- Removing fields that are no longer in use as of 01/12/2020.
- Adding missing beta field.

* Update Split.cs

+ Rearrange to match IEX Docs.
  • Loading branch information
JamiePrentice authored Dec 13, 2020
1 parent e719fe2 commit 4a0ddef
Show file tree
Hide file tree
Showing 13 changed files with 166 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@ public class Balancesheet
public decimal? capitalSurplus { get; set; }
public decimal? shareholderEquity { get; set; }
public decimal? netTangibleAssets { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long date { get; set; }
public long updated { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ public class CashFlowsResponse
{
public string symbol { get; set; }
public List<Cashflow> cashflow { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long date { get; set; }
public long updated { get; set; }
}
}
13 changes: 9 additions & 4 deletions IEXSharp/Model/CoreData/StockFundamentals/Response/Split.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ public class SplitLegacy

public class Split
{
public DateTime exDate { get; set; }
public DateTime? declaredDate { get; set; }
public decimal ratio { get; set; }
public decimal toFactor { get; set; }
public decimal fromFactor { get; set; }
public string description { get; set; }
public DateTime exDate { get; set; }
public decimal fromFactor { get; set; }
public decimal ratio { get; set; }
public long refid { get; set; }
public string symbol { get; set; }
public decimal toFactor { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long? updated { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,32 @@ public class HistoricalPriceResponse : ITimestampedDateMinute
/// <summary>
/// Use DateTimeExtensions.GetTimestampInUTC(), which takes into account both 'date' and 'minute' and timezone
/// </summary>
public string date { get; set; }
public string minute { get; set; }
public decimal? open { get; set; }
public decimal? close { get; set; }
public decimal? high { get; set; }
public decimal? low { get; set; }
public decimal? open { get; set; }
public string symbol { get; set; }
public long? volume { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public string date { get; set; }
public long? updated { get; set; }
public decimal? changeOverTime { get; set; }
public decimal? marketChangeOverTime { get; set; }
public decimal? uOpen { get; set; }
public decimal? uClose { get; set; }
public decimal? uHigh { get; set; }
public decimal? uLow { get; set; }
public long? uVolume { get; set; }
public decimal? fOpen { get; set; }
public decimal? fClose { get; set; }
public decimal? fHigh { get; set; }
public decimal? fLow { get; set; }
public long? fVolume { get; set; }
public string label { get; set; }
public decimal? change { get; set; }
public decimal? changePercent { get; set; }
public decimal? changeOverTime { get; set; }
public string symbol { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public class IntradayPriceResponse : ITimestampedDateMinute
public string date { get; set; }
public string minute { get; set; }
public string label { get; set; } // can be null
public decimal? marktOpen { get; set; }
public decimal? marketOpen { get; set; }
public decimal? marketClose { get; set; }
public decimal? marktHigh { get; set; }
public decimal? marketHigh { get; set; }
public decimal? marketLow { get; set; }
public decimal? marketAverage { get; set; }
public long? marketVolume { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ public class CompanyResponse
public string CEO { get; set; }
public string issueType { get; set; }
public string sector { get; set; }
public string primarySicCode { get; set; }
public int employees { get; set; }
public List<string> tags { get; set; }
public string address { get; set; }
public string address2 { get; set; }
public string state { get; set; }
public string city { get; set; }
public string zip { get; set; }
public string country { get; set; }
public string phone { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ public class InsiderSummaryResponse
public string fullName { get; set; }
public long netTransacted { get; set; }
public string reportedTitle { get; set; }
public string symbol { get; set; }
public long totalBought { get; set; }
public long totalSold { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long updated { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,27 @@ namespace IEXSharp.Model.CoreData.StockProfiles.Response
{
public class InsiderTransactionResponse
{
public decimal? conversionOrExercisePrice { get; set; }
public string directIndirect { get; set; }
public long effectiveDate { get; set; }
public string filingDate { get; set; }
public string fullName { get; set; }
public bool is10b51 { get; set; }
public long? postShares { get; set; }
public string reportedTitle { get; set; }
public string symbol { get; set; }
public string transactionCode { get; set; }
public string transactionDate { get; set; }
public decimal? transactionPrice { get; set; }
public long? transactionShares { get; set; }
public decimal? transactionValue { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long date { get; set; }
public long updated { get; set; }
public decimal? tranPrice { get; set; }
public long tranShares { get; set; }
public long? tranShares { get; set; }
public decimal? tranValue { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ namespace IEXSharp.Model.CoreData.StockResearch.Response
{
public class FundOwnershipResponse
{
public string symbol { get; set; }
public long adjHolding { get; set; }
public long adjMv { get; set; }
public long? adjMv { get; set; }
public string entityProperName { get; set; }
public long reportDate { get; set; }
public long reportedHolding { get; set; }
public long? report_date { get; set; }
public int reportedHolding { get; set; }
public long reportedMv { get; set; }
public string id { get; set; }
public string source { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long date { get; set; }
public long updated { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ namespace IEXSharp.Model.CoreData.StockResearch.Response
{
public class InstitutionalOwnershipResponse
{
public long adjHolding { get; set; }
public long adjMv { get; set; }
public string symbol { get; set; }
public string id { get; set; }
public long? adjHolding { get; set; }
public long? adjMv { get; set; }
public string entityProperName { get; set; }
public long reportDate { get; set; }
public long reportedHolding { get; set; }
public string filingDate { get; set; }
public long? reportedHolding { get; set; }
public long date { get; set; }
public long updated { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class KeyStatsResponse
public decimal? week52low { get; set; }
public decimal? week52change { get; set; }
public long? sharesOutstanding { get; set; }
public long? @float { get; set; }
public string symbol { get; set; }
public decimal? avg10Volume { get; set; }
public decimal? avg30Volume { get; set; }
Expand All @@ -22,8 +21,8 @@ public class KeyStatsResponse
public decimal? dividendYield { get; set; }
public DateTime? nextDividendDate { get; set; }
public DateTime? exDividendDate { get; set; }
public DateTime? nextEarningsDate { get; set; }
public decimal? peRatio { get; set; }
public decimal? beta { get; set; }
public decimal? maxChangePercent { get; set; }
public decimal? year5ChangePercent { get; set; }
public decimal? year2ChangePercent { get; set; }
Expand Down
20 changes: 14 additions & 6 deletions IEXSharp/Model/Shared/Response/Earning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@ namespace IEXSharp.Model.Shared.Response
{
public class Earning
{
public DateTime EPSReportDate { get; set; }
public decimal EPSSurpriseDollar { get; set; }
public decimal EPSSurpriseDollarPercent { get; set; }
public decimal actualEPS { get; set; }
public decimal consensusEPS { get; set; }
public string announceTime { get; set; }
public int numberOfEstimates { get; set; }
public decimal EPSSurpriseDollar { get; set; }
public DateTime EPSReportDate { get; set; }
public string fiscalPeriod { get; set; }
public decimal consensusEPS { get; set; }
public string currency { get; set; }
public DateTime fiscalEndDate { get; set; }
public string fiscalPeriod { get; set; }
public int numberOfEstimates { get; set; }
public string periodType { get; set; }
public string symbol { get; set; }
public decimal yearAgo { get; set; }
public decimal yearAgoChangePercent { get; set; }
public string currency { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long date { get; set; }
public long updated { get; set; }
}
}
89 changes: 66 additions & 23 deletions IEXSharp/Model/Shared/Response/Financial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,71 @@ namespace IEXSharp.Model.Shared.Response
{
public class Financial
{
public DateTime reportDate { get; set; }
public DateTime fiscalDate { get; set; }
public string currency { get; set; }
public long grossProfit { get; set; }
public long costOfRevenue { get; set; }
public long operatingRevenue { get; set; }
public long totalRevenue { get; set; }
public long operatingIncome { get; set; }
public long netIncome { get; set; }
public long researchAndDevelopment { get; set; }
public long operatingExpense { get; set; }
public long currentAssets { get; set; }
public long totalAssets { get; set; }
public long totalLiabilities { get; set; }
public long currentCash { get; set; }
public long currentDebt { get; set; }
public long shortTermDebt { get; set; }
public long longTermDebt { get; set; }
public long totalCash { get; set; }
public long totalDebt { get; set; }
public long shareholderEquity { get; set; }
public long cashChange { get; set; }
public long cashFlow { get; set; }
public long EBITDA { get; set; }
public long accountsPayable { get; set; }
public long? capitalSurplus { get; set; }
public long? cashChange { get; set; }
public long cashFlow { get; set; }
public int cashFlowFinancing { get; set; }
public long? changesInInventories { get; set; }
public long? changesInReceivables { get; set; }
public long commonStock { get; set; }
public long costOfRevenue { get; set; }
public string currency { get; set; }
public long currentAssets { get; set; }
public long currentCash { get; set; }
public long currentDebt { get; set; }
public long? currentLongTermDebt { get; set; }
public long depreciation { get; set; }
public long? dividendsPaid { get; set; }
public long ebit { get; set; }
public long? exchangeRateEffect { get; set; }
public DateTime fiscalDate { get; set; }
public int goodwill { get; set; }
public long grossProfit { get; set; }
public long incomeTax { get; set; }
public int intangibleAssets { get; set; }
public int interestIncome { get; set; }
public long inventory { get; set; }
public long? investingActivityOther { get; set; }
public long? investments { get; set; }
public long longTermDebt { get; set; }
public long longTermInvestments { get; set; }
public int minorityInterest { get; set; }
public long? netBorrowings { get; set; }
public long netIncome { get; set; }
public long netIncomeBasic { get; set; }
public long? netTangibleAssets { get; set; }
public long operatingExpense { get; set; }
public long operatingIncome { get; set; }
public long? operatingRevenue { get; set; }
public long otherAssets { get; set; }
public long otherCurrentAssets { get; set; }
public long? otherCurrentLiabilities { get; set; }
public long otherIncomeExpenseNet { get; set; }
public long? otherLiabilities { get; set; }
public long pretaxIncome { get; set; }
public long propertyPlantEquipment { get; set; }
public long receivables { get; set; }
public DateTime reportDate { get; set; }
public long researchAndDevelopment { get; set; }
public long retainedEarnings { get; set; }
public long revenue { get; set; }
public long sellingGeneralAndAdmin { get; set; }
public long shareholderEquity { get; set; }
public long shortTermDebt { get; set; }
public long? shortTermInvestments { get; set; }
public string symbol { get; set; }
public long totalAssets { get; set; }
public long totalCash { get; set; }
public long totalDebt { get; set; }
public long totalInvestingCashFlows { get; set; }
public long totalLiabilities { get; set; }
public long totalRevenue { get; set; }
public long treasuryStock { get; set; }
public string id { get; set; }
public string key { get; set; }
public string subkey { get; set; }
public long updated { get; set; }
}
}

0 comments on commit 4a0ddef

Please sign in to comment.