Documentation
¶
Index ¶
- func FetchInstruments() []string
- func GetFileNameByDate(symbol string, t time.Time) string
- func GetInstruments() []string
- func HasData(symbol string, dayIndex int64) bool
- func Items(w http.ResponseWriter, r *http.Request)
- func LoadData(symbol string, date time.Time, fileName string)
- func LoadNext()
- func ParseDate(value string) time.Time
- func Start()
- func Stop()
- func ThLoad()
- func ThUpdateInstruments()
- func TimeByDayIndex(dayIndex int64) time.Time
- func UpdateInstruments()
- type Candle
- type GetCandlesResponse
- type GetCandlesResponseInt
- type GetInstrumentsItem
- type GetInstrumentsResponse
- type GetInstrumentsResponseInt
- type HeaderResponse
- type StringList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchInstruments ¶
func FetchInstruments() []string
func GetInstruments ¶
func GetInstruments() []string
func ThUpdateInstruments ¶
func ThUpdateInstruments()
func TimeByDayIndex ¶
func UpdateInstruments ¶
func UpdateInstruments()
Types ¶
type Candle ¶
type GetCandlesResponse ¶
type GetCandlesResponse struct {
HeaderResponse
Result GetCandlesResponseInt `json:"result"`
}
type GetCandlesResponseInt ¶
type GetCandlesResponseInt struct {
Symbol string `json:"symbol"`
Category string `json:"category"`
List []StringList `json:"list"`
}
type GetInstrumentsItem ¶
type GetInstrumentsItem struct {
Symbol string `json:"symbol"`
}
type GetInstrumentsResponse ¶
type GetInstrumentsResponse struct {
HeaderResponse
Result GetInstrumentsResponseInt `json:"result"`
}
type GetInstrumentsResponseInt ¶
type GetInstrumentsResponseInt struct {
Category string `json:"category"`
List []GetInstrumentsItem `json:"list"`
}
type HeaderResponse ¶
type StringList ¶
type StringList []string
Click to show internal directories.
Click to hide internal directories.