questrade

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ApiRateLimitRemaining = "X-RateLimit-Remaining"

Variables

This section is empty.

Functions

func IsApiQuestrade

func IsApiQuestrade(apiServer string) bool

func NewApiQuestrade

func NewApiQuestrade(apiKey, apiServer string, creds api.OAuthCredentials) api.StockApi

Types

type SymbolQuote

type SymbolQuote struct {
	Symbol              string  `json:"symbol"`
	SymbolId            int     `json:"symbolId"`
	Tier                string  `json:"tier"`
	BidPrice            float64 `json:"bidPrice"`
	BidSize             int     `json:"bidSize"`
	AskPrice            float64 `json:"askPrice"`
	AskSize             int     `json:"askSize"`
	LastTradePriceTrHrs float64 `json:"lastTradePriceTrHrs"`
	LastTradePrice      float64 `json:"lastTracePrice"`
	LastTradeSize       int     `json:"lastTradeSize"`
	LastTradeTick       string  `json:"lastTradeTick"`
	LastTradeTime       string  `json:"lastTradeTime"`
	Volume              int     `json:"volume"`
	OpenPrice           float64 `json:"openPrice"`
	HighPrice           float64 `json:"highPrice"`
	LowPrice            float64 `json:"lowPrice"`
	Delay               int     `json:"delay"`
	IsHalted            bool    `json:"isHalted"`
}

func GetSymbolQuote

func GetSymbolQuote(symbolId, apiKey, apiServer string) (*SymbolQuote, error)

type SymbolSearchMatch

type SymbolSearchMatch struct {
	Symbol          string `json:"symbol"`
	SymbolId        int    `json:"symbolId"`
	Description     string `json:"description"`
	SecurityType    string `json:"securityType"`
	ListingExchange string `json:"listingExchange"`
	IsTradable      bool   `json:"isTradable"`
	IsQuotable      bool   `json:"isQuotable"`
	Currency        string `json:"currency"`
}

func GetSymbolSearch

func GetSymbolSearch(symbol, apiKey, apiServer string) (*SymbolSearchMatch, error)

Jump to

Keyboard shortcuts

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