Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NY, _ = time.LoadLocation("America/New_York")
)
Functions ¶
func SetBaseURL ¶
func SetBaseURL(url string)
func SetNatsServers ¶
func SetNatsServers(serverList string)
Types ¶
type GetAggregatesResponse ¶
type GetAggregatesResponse struct { Symbol string `json:"symbol"` AggType string `json:"aggType"` Map struct { O string `json:"o"` C string `json:"c"` H string `json:"h"` L string `json:"l"` V string `json:"v"` D string `json:"d"` } `json:"map"` Ticks []struct { Open float64 `json:"o"` Close float64 `json:"c"` High float64 `json:"h"` Low float64 `json:"l"` Volume int `json:"v"` EpochMillis int64 `json:"d"` } `json:"ticks"` }
func GetAggregates ¶
func GetAggregates(symbol string, from time.Time) (*GetAggregatesResponse, error)
type StreamAggregate ¶
Click to show internal directories.
Click to hide internal directories.