-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio_settings_template.py
105 lines (85 loc) · 2.88 KB
/
portfolio_settings_template.py
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
sort_col = {}
# -
# CUREENCY OPTIONS
# -
# Currency of user, everything will by covnert on a signle day basis
user_currency='EUR'
# Yahoo Finance symbol forforeign currency exchange value
curremcy2exchange='USDEUR=X'
# Start date for starting getting data for foreign currency
start_exchange_rate = "2016-06-30"
# -
# DISPLAY OPTIONS
# -
# Intervals in days to report (last value only used for wealth plot)
report_days = [50, 300, 500, 1000]
# Colum to sort porfolio overview (e.g. '1' for one day change)
sort_col[0] = '1'
# Set ascemdomg (TRUE) or descemding (FALSE)
sort_col[1] = False
# Show single stock charts
show_charts = True
# Show plot showing entire wealth increase
show_wealth_plot = True
# Line of change to show
interest_interval = 0.05
# Sliding average windows size in days
window_size = 200
# Stock definitions
stock_bb = { 'name': "BlackBerry",
'symbol': "BB",
'nun_stocks': 100,
'rate': 1.122,
'currency': 'USD',
'buy_date': "2018-07-23" }
stock_AMD = { 'name': "AMD",
'symbol': "AMD",
'nun_stocks': 100,
'buy_price': 12.5 * 1.094,
'rate': 1.094,
'currency': 'USD',
'buy_date': "2017-04-30" }
stock_NETFLIX = {'name': "Netflix",
'symbol': "NFLX",
'nun_stocks': 100,
'buy_price': 185.00,
'rate': 1.1738,
'currency': 'USD',
'buy_date': "2017-11-12" }
stock_AURORA_CANABIS = {'name': "Aurora",
'symbol': "ACB",
'nun_stocks': 300,
'buy_price': 6.25,
'rate':1.192,
'currency': 'USD',
'buy_date': "2018-05-11"
}
stock_GWP = {'name': "GW Pharma",
'symbol': "GWPH",
'nun_stocks': 100,
'buy_price': 140.26,
'rate': 1.1858,
'currency': 'USD',
'buy_date': "2018-06-08"}
stock_MURE = {'name': "Munich Re",
'symbol': "MUV2.F",
'nun_stocks': 100,
'buy_price': 192.10,
'currency': 'EUR',
'buy_date': "2018-05-15",
'return': [50]}
stock_SMH = {'name': "Siemens H",
'symbol': "SHL.F",
'nun_stocks': 100,
'buy_price': 33.06,
'currency': 'EUR',
'buy_date': "2018-05-11",
'return': [100]}
stocks = { 'BB':stock_bb,
"AMD": stock_AMD,
"NETFLIX": stock_NETFLIX,
"MURE": stock_MURE,
"GW_PHARMA": stock_GWP,
"AURORA": stock_AURORA_CANABIS,
"Siemens H": stock_SMH
}