Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adjustment ¶
type Adjustment string
Adjustment specifies the corporate action adjustment(s) for the bars
const ( Raw Adjustment = "raw" Split Adjustment = "split" Dividend Adjustment = "dividend" All Adjustment = "all" )
List of adjustments
type Bar ¶
type Bar struct { Open float64 `json:"o"` High float64 `json:"h"` Low float64 `json:"l"` Close float64 `json:"c"` Volume uint64 `json:"v"` Timestamp time.Time `json:"t"` }
Bar is an aggregate of trades
type Quote ¶
type Quote struct { BidExchange string `json:"bx"` BidPrice float64 `json:"bp"` BidSize uint32 `json:"bs"` AskExchange string `json:"ax"` AskPrice float64 `json:"ap"` AskSize uint32 `json:"as"` Timestamp time.Time `json:"t"` Conditions []string `json:"c"` Tape string `json:"z"` }
Quote is a stock quote from the market
type Snapshot ¶ added in v1.8.2
type Snapshot struct { LatestTrade *Trade `json:"latestTrade"` LatestQuote *Quote `json:"latestQuote"` MinuteBar *Bar `json:"minuteBar"` DailyBar *Bar `json:"dailyBar"` PrevDailyBar *Bar `json:"prevDailyBar"` }
Snapshot is a snapshot of a symbol
Click to show internal directories.
Click to hide internal directories.