-
Notifications
You must be signed in to change notification settings - Fork 0
/
investorzilla.gsheets-obsolete.yaml
295 lines (235 loc) · 10.2 KB
/
investorzilla.gsheets-obsolete.yaml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
---
# The Investor app requires 3 things to let you navigate and visualize your
# portfolio:
#
# 1. Your portfolio worksheet
# This is a GoogleSheet that contains 2 time series:
# a. Dated balance of all your funds
# b. All in and out movements from your fund (ledger)
# From the funds found in your worksheet, new fund compositions can be
# created. In other words you can view two (or more) of your investments as
# a new fund, so compound fund share value and number of shares will be
# computed. For example, you can view your "Crypto Holds" and "Crypto ETFs"
# as one single fund to study movements and performance.
#
# 2. Currency converters
# The currencies you work with (including crypto) and where to pull
# historical data about them.
#
# 3. Market benchmarks or indices
# Benchmarks as the Nasdaq index, S&P 500 or simply daily Bitcoin price for
# you to compare the performance of your investments.
#
portfolio:
- type: !!python/name:investorzilla.portfolios.uri.URIBalanceOrLedger ''
params:
URI: ~/Notebooks/freqtrade/balances.txt
kind: traderbot_balance
sheetStructure:
separator: "|"
# In here you describe how the BALANCE and LEDGER data is
# organized in sheets and columns
balance:
columns:
# Time is in column called 'time'
time: time
# Name of funds on each row is under this column
fund: fund
# Column called 'Saldo USD' contains values in 'USD' and so on.
monetary:
- currency: USD
name: USD
- type: !!python/name:investorzilla.portfolios.uri.URIBalanceOrLedger ''
params:
URI: ~/Notebooks/MercadoBitcoinBalance/balances.txt
kind: mercadobitcoin_balance
sheetStructure:
separator: "|"
# In here you describe how the BALANCE and LEDGER data is
# organized in sheets and columns
balance:
columns:
# Time is in column called 'time'
time: time
# Name of funds on each row is under this column
fund: fund
# Column called 'Saldo USD' contains values in 'USD' and so on.
monetary:
- currency: BRL
name: BRL
# Ledger: https://docs.google.com/spreadsheets/d/e/2PACX-1vSKA1zpHJ7YjJ6kphj5B_TxQNa_pYUDZFTj038zq-usrvB4J4nqieyuVvraH6B134qiyv17SgxEvpaw/pub?gid=476533794&single=true&output=tsv
# Balance: https://docs.google.com/spreadsheets/d/e/2PACX-1vSKA1zpHJ7YjJ6kphj5B_TxQNa_pYUDZFTj038zq-usrvB4J4nqieyuVvraH6B134qiyv17SgxEvpaw/pub?gid=985882980&single=true&output=tsv
# Balance form: https://docs.google.com/spreadsheets/d/e/2PACX-1vSKA1zpHJ7YjJ6kphj5B_TxQNa_pYUDZFTj038zq-usrvB4J4nqieyuVvraH6B134qiyv17SgxEvpaw/pub?gid=1092685983&single=true&output=tsv
- type: !!python/name:investorzilla.portfolios.google_sheets.GoogleSheetsBalanceAndLedger ''
params:
# Get Google Sheets API access credentials at https://console.cloud.google.com/apis/credentials/oauthclient/
credentialsFile: &gappcreds ~/Notebooks/investorzilla/app-credentials-for-google-sheets.json
# A tag to differentiate from other data from same GSheet
kind: form_entry
sheetStructure:
sheet: &gsheet 1iBlzYMouXxbBSHEtBIvI4wuY_bE2VyoIprPchnyJRso
# In here you describe how the BALANCE and LEDGER data is
# organized in sheets and columns
balance:
# The sheet/tab range with your balances
sheetRange: Saldos form!A:D
columns:
# Time is in column called 'Data'
time: Timestamp
# Name of funds on each row is under this column
fund: Fundo
# Column called 'Saldo USD' contains values in 'USD' and so on.
monetary:
- currency: BRL
name: Saldo BRL
- currency: USD
name: Saldo USD
- type: !!python/name:investorzilla.portfolios.google_sheets.GoogleSheetsBalanceAndLedger ''
params:
# Get Google Sheets API access credentials at https://console.cloud.google.com/apis/credentials/oauthclient/
credentialsFile: *gappcreds
sheetStructure:
sheet: *gsheet
# A tag to differentiate from other data from same GSheet
kind: main
# In here you describe how the BALANCE and LEDGER data is
# organized in sheets and columns
balance:
# The sheet/tab range with your balances
sheetRange: Saldos!A:D
columns:
# Time is in column called 'Data'
time: Data
# Name of funds on each row is under this column
fund: Fundo composto
# Column called 'Saldo USD' contains values in 'USD' and so on.
monetary:
- currency: BRL
name: Saldo BRL
- currency: USD
name: Saldo USD
ledger:
# The sheet/tab with all your in and out movements (ledger)
sheetRange: Entradas e saidas brutas!A:E
columns:
time: Data
fund: Fundo composto
# Name of columns with random comments
comment: Comentário
monetary:
- currency: BRL
name: Movimento BRL
- currency: USD
name: Movimento USD
currency_converters:
# Included CurrencyConverter python classes are:
# - investorzilla.currency.brasil_banco_central.BCBCurrencyConverter:
# Pulls daily BRL/USD and BRL/EUR currency data from Banco Central
# do Brasil, compared to BRL.
#
# - investorzilla.currency.cryptocompare.CryptoCompareCurrencyConverter
# Pulls daily crypto data (BTC/ETH etc) from CryptoCompare,
# compared to USD.
# Inside the app there is the investor.monetary_time_series.CurrencyExchange
# class that contains many CurrencyConverter’s data and is capable of many
# currency conversion operations between them.
# USD➔BRL
- type: &BCBCurrencyConverter !!python/name:investorzilla.currency.brasil_banco_central.BCBCurrencyConverter ''
params:
currencyFrom: USD
# EUR➔BRL
# - type: *BCBCurrencyConverter
# params:
# currencyFrom: EUR
# USD➔BTC
- type: &CryptoCompareCurrencyConverter !!python/name:investorzilla.currency.cryptocompare.CryptoCompareCurrencyConverter ''
params:
# Get your API key at https://www.cryptocompare.com/cryptopian/api-keys
apiKey: &cckey b1b9b53ae6cf78a5825aa599a764bd111325381bbcdb9a62f231da54712f7123
currencyFrom: BTC
# USD➔ETH
- type: *CryptoCompareCurrencyConverter
params:
# Notice how we reference with *cckey a piece of data previously
# tagged as &cckey
apiKey: *cckey
currencyFrom: ETH
benchmarks:
# Describe the benchmarks you want to use.
#
# Included MarketIndex python classes are:
#
# - investorzilla.marketindex.brasil_banco_central.BCBMarketIndex
# Pulls Brazilian indices from Banco Central do Brasil, as INPC, CDI etc
#
# - investorzilla.marketindex.yahoo_finance.YahooMarketIndex
# Pulls global indices from Yahoo Finance
# See https://finance.yahoo.com/world-indices
#
# - investorzilla.marketindex.federal_reserve.FREDMarketIndex
# Pulls market indices from Federal Reserve
- kind: from_currency_converter
from_to: BRLUSD
- kind: from_currency_converter
from_to: USDBRL
- kind: from_currency_converter
from_to: BTCUSD
- kind: from_currency_converter
from_to: USDBTC
- type: &BCBMarketIndex !!python/name:investorzilla.marketindex.brasil_banco_central.BCBMarketIndex ''
params:
name: IPCA
- type: *BCBMarketIndex
params:
name: CDI
- type: *BCBMarketIndex
params:
name: SELIC
- type: *BCBMarketIndex
params:
name: IGPM
- type: *BCBMarketIndex
params:
name: INPC
- type: &YahooMarketIndex !!python/name:investorzilla.marketindex.yahoo_finance.YahooMarketIndex ''
params:
currency: BRL
friendlyName: Índice BoVESPa (^BVSP)
name: ^BVSP
- type: *YahooMarketIndex
params:
friendlyName: SPDR S&P 500 ETF Trust
name: SPY
- type: *YahooMarketIndex
params:
friendlyName: iShares Core S&P 500 ETF (IVV)
name: IVV
- type: *YahooMarketIndex
params:
friendlyName: Vanguard S&P 500 ETF (VOO)
name: VOO
- type: *YahooMarketIndex
params:
friendlyName: S&P 500 (^GSPC)
name: ^GSPC
- type: *YahooMarketIndex
params:
friendlyName: Dow Jones (^DJI)
name: ^DJI
- type: *YahooMarketIndex
params:
friendlyName: NASDAQ (^IXIC)
name: ^IXIC
- type: *YahooMarketIndex
params:
friendlyName: Invesco Nasdaq 100 ETF (QQQM)
name: QQQM
- type: *YahooMarketIndex
params:
friendlyName: Invesco QQQ
name: QQQ
# The «?check_same_thread=False» is important for SQLite and SQLAlchemy multithreading support
cache_database: sqlite:///investorzilla.cache?check_same_thread=False
# cache_database: mysql+pymysql://investorzilla:owlsmx847@localhost/investorzilla
# Default starting currency
currency: USD