rest

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 1 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        int    `json:"DownloadStatus"`
	HistoryStatus         int    `json:"HistoryStatus"`
	HistoryTimestamp      int64  `json:"HistoryTimstamp"`
	IntradayStatus        int    `json:"IntradayStatus"`
	IntradayState         int    `json:"IntradayState"`
	IntradayTimestamp1Min int64  `json:"IntradayTimestamp1Min"`
	IntradayTimestamp5Min int64  `json:"IntradayTimestamp5Min"`
	IntradayTimestampTick int64  `json:"IntradayTimestampTick"`
	Name                  string `json:"Name"`
	OptionListTimestamp   int64  `json:"OptionListTimestamp"`
	OptionStatus          int    `json:"OptionStatus"`
	QuotesStatus          int    `json:"QuotesStatus"`
	StableQuotesStatus    int    `json:"StableQuotesStatus"`
	Symbol                string `json:"Symbol"`
	Validation            int    `json:"Validation"`
	ValidationTimestamp   int64  `json:"ValidationTimestamp"`
}

type StocksResponse

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

func (*StocksResponse) RootURL added in v0.0.24

func (sr *StocksResponse) RootURL() string

Jump to

Keyboard shortcuts

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