polygonconfig

package
v4.1.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetcherConfig

type FetcherConfig struct {
	// AddTickCountToBars controls if TickCnt is added to the schema for Bars or not
	AddTickCountToBars bool `json:"add_bar_tick_count,omitempty"`
	// polygon API key for authenticating with their APIs
	APIKey string `json:"api_key"`
	// polygon API base URL in case it is being proxied
	// (defaults to https://api.polygon.io/)
	BaseURL string `json:"base_url"`
	// websocket servers for Polygon, default is: "wss://socket.polygon.io"
	WSServers string `json:"ws_servers"`
	// list of data types to subscribe to (one of bars, quotes, trades)
	DataTypes []string `json:"data_types"`
	// list of symbols that are important
	Symbols []string `json:"symbols"`
	// time string when to start first time, in "YYYY-MM-DD HH:MM" format
	// if it is restarting, the start is the last written data timestamp
	// otherwise, it starts from the latest streamed bar
	QueryStart string `json:"query_start"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL