tradier

package
v0.0.0-...-04e463c Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tradier

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

func NewTradier

func NewTradier(isLive bool, apiKey string) *Tradier

func (*Tradier) GetOptionChains

func (t *Tradier) GetOptionChains(
	ctx context.Context, underlying string, expiration string,
) ([]*datasourcev1.Chain, error)

GetOptionChains refer to https://documentation.tradier.com/brokerage-api/markets/get-options-chains

func (*Tradier) GetOptionExpirations

func (t *Tradier) GetOptionExpirations(
	ctx context.Context, underlying string,
) ([]string, error)

GetOptionExpirations refer to https://documentation.tradier.com/brokerage-api/markets/get-options-expirations

func (*Tradier) GetTodayTradePeriod

func (t *Tradier) GetTodayTradePeriod(ctx context.Context) (
	*datasourcev1.TradePeriod, error,
)

GetTodayTradePeriod refer to https://documentation.tradier.com/brokerage-api/markets/get-calendar

Jump to

Keyboard shortcuts

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