alpacaapi

package
v0.0.0-...-43d837c Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get1DBar

func Get1DBar(client *alpaca.Client, symbols []string) error

func Get1MinBar

func Get1MinBar(client *alpaca.Client, symbols []string) error

func GetQuotes

func GetQuotes(client *alpaca.Client, symbols []string) error

func GetSymbols

func GetSymbols() ([]string, error)

GetSymbols scrapes list of symbols of S&P 500 companies from https://en.wikipedia.org/wiki/List_of_S%26P_500_companies

func GetTrades

func GetTrades(client *alpaca.Client, symbols []string) error

func IndexChunks

func IndexChunks(length int, chunkSize int) <-chan IndexChunk

Types

type IndexChunk

type IndexChunk struct {
	From, To int
}

Jump to

Keyboard shortcuts

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