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

Commit

Permalink
Remove IEX Data Stats
Browse files Browse the repository at this point in the history
The endpoints no longer exist to gather the IEA data stats.
  • Loading branch information
matthewrankin committed Jan 24, 2024
1 parent a0ff426 commit 5519dc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 112 deletions.
22 changes: 2 additions & 20 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1577,33 +1577,15 @@ func (c Client) OneTOPS(ctx context.Context, symbol string) ([]TOPS, error) {
return r, err
}

// StatsIntraday retrieves the intraday stats on IEX.
func (c Client) StatsIntraday(ctx context.Context) (IntradayStats, error) {
r := IntradayStats{}
endpoint := "/stats/intraday"
err := c.GetJSON(ctx, endpoint, &r)
return r, err
}

// IntradayStats retrieves the intraday stats on IEX. Deprecated. Use
// StatsIntraday instead.
func (c Client) IntradayStats(ctx context.Context, symbol string) (IntradayStats, error) {
// FIXME(mdr): symbol isn't used, so this is a bad method. Need to delete.
r := IntradayStats{}
endpoint := "/stats/intraday"
err := c.GetJSON(ctx, endpoint, &r)
return r, err
}

//////////////////////////////////////////////////////////////////////////////
//
// Premium Data Endpoints
// Premium Data Endpoints (Deprecated)
//
//////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////
//
// Refinitiv Endpoints
// Refinitiv Endpoints (Deprecated)
//
//////////////////////////////////////////////////////////////////////////////

Expand Down
15 changes: 0 additions & 15 deletions iexdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,3 @@ type VolumeRecord struct {
PreviousDayValue float64 `json:"previousDayValue"`
Avg30Value float64 `json:"avg30Value"`
}

// IntradayStats models the intraday stats on IEX.
type IntradayStats struct {
Volume Stat `json:"volume"`
SymbolsTraded Stat `json:"symbolsTraded"`
RoutedVolume Stat `json:"routedVolume"`
Notional Stat `json:"notional"`
MarketShare Stat `json:"marketShare"`
}

// Stat models a single stat.
type Stat struct {
Value float64 `json:"value"`
LastUpdated EpochTime `json:"lastUpdated"`
}
79 changes: 2 additions & 77 deletions implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,88 +179,13 @@ issue.
- [ ] DEEP Trade Break
- [ ] DEEP Trading Status
- [x] Last
- [ ] Listed Regulation SHO Threshold Securities List (Alpha)
- [ ] Stats Historical Daily (Alpha)
- [ ] Stats Historical Summary
- [x] Stats Intraday
- [ ] Stats Recent
- [ ] Stats Records
- [x] TOPS

## Premium Data
## Premium Data (Deprecated)

### Audit Analytics

- [ ] Audit Analytics Director and Officer Changes
- [ ] Audit Analytics Accounting Quality and Risk Matrix

### BRAIN Company

### CityFalcon

### ExtractAlpha

### Fraud Factors

- [ ] Non-Timely Filings

### Invisage

- [ ] Analyst Recommendations and Price Targets

### Kavout

- [ ] K Score for US Equities
- [ ] K Score for China A-Shares

### New Constructs

- [ ] New Constructs Report

### Precision Alpha

- [ ] Precision Alpha Price Dynamics

### Refinitiv
### Refinitiv (Deprecated)

- [x] Analyst Recommendations
- [x] Earnings
- [x] Estimates
- [x] Price Target

### Stocktwits

- [ ] Social Sentiment

### ValuEngine

- [ ] ValuEngine Stock Research Report

### Wall Street Horizon

- [ ] Analyst Days
- [ ] Board of Directors Meeting
- [ ] Business Updates
- [ ] Buybacks
- [ ] Capital Markets Day
- [ ] Company Travel
- [ ] Filing Due Dates
- [ ] Fiscal Quarter End
- [ ] Forum
- [ ] General Conference
- [ ] FDA Advisory Committee Meetings
- [ ] Holidays
- [ ] Index Changes
- [ ] IPOs
- [ ] Legal Actions
- [ ] Mergers & Acquisitions
- [ ] Product Events
- [ ] Research and Development Days
- [ ] Same Store Sales
- [ ] Secondary Offerings
- [ ] Seminars
- [ ] Shareholder Meetings
- [ ] Summit Meetings
- [ ] Trade Shows
- [ ] Witching Hours
- [ ] Workshops

0 comments on commit 5519dc9

Please sign in to comment.