-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.go
41 lines (37 loc) · 1.02 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package iss
import "time"
var TzMsk = initMoscow()
func initMoscow() *time.Location {
var loc, err = time.LoadLocation("Europe/Moscow")
if err != nil {
loc = time.FixedZone("MSK", int(3*time.Hour/time.Second))
}
return loc
}
// Response структура ответа от iss
type Response struct {
Candles struct {
Columns []string `json:"columns"`
Data [][]interface{} `json:"data"`
} `json:"candles"`
MarketData struct {
Columns []string `json:"columns"`
Data [][]interface{} `json:"data"`
} `json:"marketdata"`
Securities struct {
Columns []string `json:"columns"`
Data [][]interface{} `json:"data"`
} `json:"securities"`
OrderBook struct {
Columns []string `json:"columns"`
Data [][]interface{} `json:"data"`
} `json:"orderbook"`
History struct {
Columns []string `json:"columns"`
Data [][]interface{} `json:"data"`
} `json:"history"`
Data struct {
Columns []string `json:"columns"`
Data [][]interface{} `json:"data"`
} `json:"data"`
}