Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Universal Snapshot 'session' model #460

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions rest/models/summaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@ type SummaryResult struct {
}

type Session struct {
Change float64 `json:"change,omitempty"`
ChangePercent float64 `json:"change_percent,omitempty"`
EarlyTradingChange float64 `json:"early_trading_change,omitempty"`
EarlyTradingChangePercent float64 `json:"early_trading_change_percent,omitempty"`
LateTradingChange float64 `json:"late_trading_change,omitempty"`
LateTradingChangePercent float64 `json:"late_trading_change_percent,omitempty"`
Close float64 `json:"close,omitempty"`
High float64 `json:"high,omitempty"`
Low float64 `json:"low,omitempty"`
Open float64 `json:"open,omitempty"`
PreviousClose float64 `json:"previous_close,omitempty"`
Volume float64 `json:"volume,omitempty"`
Price float64 `json:"price,omitempty"`
Change float64 `json:"change,omitempty"`
ChangePercent float64 `json:"change_percent,omitempty"`
EarlyTradingChange float64 `json:"early_trading_change,omitempty"`
EarlyTradingChangePercent float64 `json:"early_trading_change_percent,omitempty"`
RegularTradingChange float64 `json:"regular_trading_change,omitempty"`
RegularTradingChangePercent float64 `json:"regular_trading_change_percent,omitempty"`
LateTradingChange float64 `json:"late_trading_change,omitempty"`
LateTradingChangePercent float64 `json:"late_trading_change_percent,omitempty"`
Close float64 `json:"close,omitempty"`
High float64 `json:"high,omitempty"`
Low float64 `json:"low,omitempty"`
Open float64 `json:"open,omitempty"`
PreviousClose float64 `json:"previous_close,omitempty"`
Volume float64 `json:"volume,omitempty"`
Price float64 `json:"price,omitempty"`
}

//easyjson:json
Expand Down
Loading