-
Notifications
You must be signed in to change notification settings - Fork 0
/
crypto.go
60 lines (56 loc) · 956 Bytes
/
crypto.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package main
type CryptoDinamic struct {
symbol string
PastMeter struct {
past1m []Price
past5m []Price
past15m []Price
past1h []Price
past4h []Price
past1d []Price
past1w []Price
}
ActualMeter struct {
actual1m []Price
actual5m []Price
actual15m []Price
actual1h []Price
actual4h []Price
actual1d []Price
actual1w []Price
}
}
type CryptoArray struct {
symbol string
PastMeter struct {
past1m [18]Price
past5m [18]Price
past15m [18]Price
past1h [18]Price
past4h [18]Price
past1d [18]Price
past1w [18]Price
}
ActualMeter struct {
actual1m [18]Price
actual5m [18]Price
actual15m [18]Price
actual1h [18]Price
actual4h [18]Price
actual1d [18]Price
actual1w [18]Price
}
}
type CryptoMatrix struct {
PastMeter struct {
last [7][17]Price
}
ActualMeter struct {
actual [7][17]Price
}
}
type Price struct {
open float64
close float64
actual float64
}