-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom-types.json
48 lines (48 loc) · 1.13 KB
/
custom-types.json
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
{
"Asset": {
"_enum": [
"Unknown",
"Usd",
"Eq",
"Eth",
"Btc",
"Eos"
]
},
"Duration": {
"secs": "u64",
"nanos": "u32"
},
"FixedNumber": "u128",
"Price": "u128",
"PriceUpdate": {
"period_start": "Duration",
"time": "Duration",
"price": "FixedNumber"
},
"PriceLog": {
"latest_timestamp": "Duration",
"prices": "CapVec<Price>"
},
"CapVec": {
"head_index": "u32",
"len_cap": "u32",
"items": "Vec<FixedNumber>"
},
"AssetMetrics": {
"period_start": "Duration",
"period_end": "Duration",
"returns": "Vec<FixedNumber>",
"volatility": "FixedNumber",
"correlations": "Vec<(Asset, FixedNumber)>"
},
"FinancialMetrics": {
"period_start": "Duration",
"period_end": "Duration",
"assets": "Vec<Asset>",
"mean_returns": "Vec<FixedNumber>",
"volatilities": "Vec<FixedNumber>",
"correlations": "Vec<FixedNumber>",
"covariances": "Vec<FixedNumber>"
}
}