Documentation ¶
Index ¶
Constants ¶
View Source
const AMERITRADE_URL_BASE = "https://api.tdameritrade.com/v1/marketdata"
View Source
const COL_WIDTH = 15
View Source
const ESC_SGR_RESET string = "\x1b[0m"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiAmeritrade ¶
type ApiAmeritrade struct {
KEY string
}
func (*ApiAmeritrade) GetPriceHistory ¶
func (API *ApiAmeritrade) GetPriceHistory(pCli *http.Client, sym string, tMin, tMax time.Time) (sC S_CandleArray, E error)
type I_Chartable ¶
type S_CandleArray ¶
type S_CandleArray []S_Candle
func (S_CandleArray) Length ¶
func (V S_CandleArray) Length() int
func (S_CandleArray) Price ¶
func (V S_CandleArray) Price(ix int) T_Num
func (S_CandleArray) Timestamp ¶
func (V S_CandleArray) Timestamp(ix int) int64
type S_Quote ¶
type S_SampleArray ¶
type S_SampleArray []S_Sample
func (S_SampleArray) Length ¶
func (V S_SampleArray) Length() int
func (S_SampleArray) Price ¶
func (V S_SampleArray) Price(ix int) T_Num
func (S_SampleArray) Timestamp ¶
func (V S_SampleArray) Timestamp(ix int) int64
Click to show internal directories.
Click to hide internal directories.