rest

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creds

type Creds struct {
	AgentSelection         string     `json:"Agent"`
	ConsumerKey            string     `json:"ConsumerKey"`
	ConsumerSecret         string     `json:"ConsumerSecret"`
	Token                  string     `json:"Token"`
	TokenSecret            string     `json:"TokenSecret"`
	UrlRedirect            string     `json:"UrlRedirect"`
	AccessToken            string     `json:"AccessToken"`
	RefreshToken           string     `json:"RefreshToken"`
	ExpireTimestamp        int64      `json:"ExpireTimestamp"`
	RefreshExpireTimestamp int64      `json:"RefreshExpireTimestamp"`
	ErrorState             ErrorState `json:"ErrorState"`
}

type DatabaseRecords

type DatabaseRecords struct {
	Histories          string     `json:"Histories"`
	Intradays          string     `json:"Intradays"`
	StockQuotes        string     `json:"StockQuotes"`
	StockStableQuotes  string     `json:"StockStableQuotes"`
	OptionQuotes       string     `json:"OptionQuotes"`
	OptionStableQuotes string     `json:"OptionStableQuotes"`
	LastID             string     `json:"LastID"`
	More               bool       `json:"More"`
	ErrorState         ErrorState `json:"ErrorState"`
}

type ErrorState

type ErrorState struct {
	Error         string `json:"Errors"`
	ErrorReturned bool   `json:"ErrorReturned"`
}

type Histories

type Histories struct {
	Histories  []History  `json:"History"`
	ErrorState ErrorState `json:"ErrorState"`
}

type History

type History struct {
	ClosePrice string `json:"ClosePrice"`
	HighPrice  string `json:"HighPrice"`
	LowPrice   string `json:"LowPrice"`
	OpenPrice  string `json:"OpenPrice"`
	Symbol     string `json:"Symbol"`
	Timestamp  int64  `json:"Timestamp"`
	Volume     string `json:"Volume"`
}

type Intraday

type Intraday struct {
	HighPrice string `json:"HighPrice"`
	LastPrice string `json:"LastPrice"`
	LowPrice  string `json:"LowPrice"`
	OpenPrice string `json:"OpenPrice"`
	Symbol    string `json:"Symbol"`
	Timestamp int64  `json:"Timestamp"`
	Volume    string `json:"Volume"`
}

type Intradays

type Intradays struct {
	Intradays  []Intraday `json:"Intraday"`
	ErrorState ErrorState `json:"ErrorState"`
}

type Stock

type Stock struct {
	Exchange              string `json:"Exchange"`
	ExchangeDescription   string `json:"ExchangeDescription"`
	DownloadStatus        string `json:"DownloadStatus"`
	HasOptions            bool   `json:"HasOptions"`
	HistoryStatus         string `json:"HistoryStatus"`
	IntradayHistoryStatus string `json:"IntradayHistoryStatus"`
	Name                  string `json:"Name"`
	QuotesStatus          string `json:"QuotesStatus"`
	StableQuotesStatus    string `json:"StableQuotesStatus"`
	Symbol                string `json:"Symbol"`
	Validation            string `json:"Validation"`
}

type StocksResponse

type StocksResponse struct {
	Stocks     []Stock    `json:"Stocks"`
	ErrorState ErrorState `json:"ErrorState"`
}

Jump to

Keyboard shortcuts

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