-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_def.json
More file actions
45 lines (43 loc) · 1.11 KB
/
api_def.json
File metadata and controls
45 lines (43 loc) · 1.11 KB
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
// get_investment_data_for_user(userID, from_to?)
[
{
"title": "Tech",
"Elements": [
{
"title": "Apple",
"percentage_sold": 0.30,
"percentage_bought": 0.25,
"amount_bought": 563,
"amount_sold": 566
},
{
"title": "Google",
"percentage_sold": 0.30,
"percentage_bought": 0.25,
"amount_bought": 563,
"amount_sold": 566
}
]
}
]
// get_aggregated_investment_data(region, from_to?) (Region is ENUM with {"Ger", "Uk", "World"})
// Same Structure as get_investment_data_for_user
[
{
"title": "Tech",
"percentage_sold": 0.30,
"percentage_bought": 0.25,
"Elements": [
{
"title": "Apple",
"percentage_sold": 0.05,
"percentage_bought": 0.6
},
{
"title": "Google",
"percentage": 0.05,
"percentage_bought": 0.6
}
]
}
]