ally

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllyAgent

type AllyAgent struct {
	// contains filtered or unexported fields
}

func NewAllyAgent

func NewAllyAgent(
	consumerKey string,
	consumerSecret string,
	oAuthToken string,
	oAuthTokenSecret string,
) *AllyAgent

func (*AllyAgent) ConsumerKey

func (ag *AllyAgent) ConsumerKey() string

func (*AllyAgent) ConsumerSecret

func (ag *AllyAgent) ConsumerSecret() string

func (*AllyAgent) GetHistory

func (ag *AllyAgent) GetHistory(ctx context.Context, symbol core.StockSymbolType, tickSize core.HistoryTick, startDate, endDate core.DateType) ([]*core.SibylHistoryRecord, error)

func (*AllyAgent) GetIntraday

func (ag *AllyAgent) GetIntraday(ctx context.Context, symbol core.StockSymbolType, tickSize core.HistoryTick, startDate, endDate core.TimestampType) ([]*core.SibylIntradayRecord, error)

func (*AllyAgent) GetQuotes

func (ag *AllyAgent) GetQuotes(ctx context.Context, stockSymbols map[core.StockSymbolType]bool, optionSymbols map[core.OptionSymbolType]bool) ([]*core.SibylStockQuoteRecord, []*core.SibylOptionQuoteRecord, error)

func (*AllyAgent) GetStableQuotes

func (ag *AllyAgent) GetStableQuotes(ctx context.Context, stockSymbols map[core.StockSymbolType]bool, optionSymbols map[core.OptionSymbolType]bool) ([]*core.SibylStableStockQuoteRecord, []*core.SibylStableOptionQuoteRecord, error)

////////////////////////

func (*AllyAgent) GetStockOptionSymbols

func (ag *AllyAgent) GetStockOptionSymbols(ctx context.Context, symbol core.StockSymbolType) ([]*core.OptionSymbolType, error)

func (*AllyAgent) OAuthToken

func (ag *AllyAgent) OAuthToken() string

func (*AllyAgent) OAuthTokenSecret

func (ag *AllyAgent) OAuthTokenSecret() string

func (*AllyAgent) String

func (ac *AllyAgent) String() string

func (*AllyAgent) VerifyStockSymbol

func (ag *AllyAgent) VerifyStockSymbol(ctx context.Context, symbol core.StockSymbolType) (good, hasOptions bool, exchange, exchangeName, name string, err error)

Jump to

Keyboard shortcuts

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