Documentation ¶
Index ¶
Constants ¶
View Source
const (
BatchSize = 100
)
Variables ¶
View Source
var (
NY, _ = time.LoadLocation("America/New_York")
)
Functions ¶
func SetSandbox ¶
func SetSandbox(b bool)
func SupportedRange ¶
Types ¶
type Chart ¶
type Chart struct { Date string `json:"date"` Minute string `json:"minute"` Label string `json:"label"` High float32 `json:"high"` Low float32 `json:"low"` Average float64 `json:"average"` Volume int32 `json:"volume"` Notional float64 `json:"notional"` NumberOfTrades int `json:"numberOfTrades"` MarketHigh float64 `json:"marketHigh"` MarketLow float64 `json:"marketLow"` MarketAverage float64 `json:"marketAverage"` MarketVolume int `json:"marketVolume"` MarketNotional float64 `json:"marketNotional"` MarketNumberOfTrades int `json:"marketNumberOfTrades"` Open float32 `json:"open"` Close float32 `json:"close"` MarketOpen float64 `json:"marketOpen,omitempty"` MarketClose float64 `json:"marketClose,omitempty"` ChangeOverTime float64 `json:"changeOverTime"` MarketChangeOverTime float64 `json:"marketChangeOverTime"` }
type ChartResponse ¶
type GetBarsResponse ¶
type GetBarsResponse map[string]*ChartResponse
type ListSymbolsResponse ¶
type ListSymbolsResponse []struct { Symbol string `json:"symbol"` Date string `json:"date"` IsEnabled bool `json:"isEnabled"` }
func ListSymbols ¶
func ListSymbols() (*ListSymbolsResponse, error)
Click to show internal directories.
Click to hide internal directories.