Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from F4pl0/develop
Browse files Browse the repository at this point in the history
Update version and encapsulate class fields in IEXCloudClient
  • Loading branch information
F4pl0 authored Nov 26, 2023
2 parents e28f55c + 6460a85 commit fdffb2e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/main/java/io/github/f4pl0/IEXCloudClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
*/
public class IEXCloudClient {
public final EquitiesMarketData equitiesMarketData;
public final Reference reference;
public final CompanyData companyData;
public final HistoricalData historicalData;
private final Reference reference;
private final CompanyData companyData;
private final HistoricalData historicalData;

/**
* Create a new IEXCloudClient.
Expand All @@ -29,6 +29,18 @@ private IEXCloudClient(IEXCloudConfig config) {
historicalData = new HistoricalData();
}

public Reference fetchReferenceData() {
return this.reference;
}

public CompanyData fetchCompanyData() {
return this.companyData;
}

public HistoricalData fetchHistoricalData() {
return this.historicalData;
}

/**
* Builder for the IEXCloudClient.
* You will need to set the publishable token before building the client.
Expand Down

0 comments on commit fdffb2e

Please sign in to comment.