goldhand 16.11__py3-none-any.whl → 17.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of goldhand might be problematic. Click here for more details.
goldhand/tw.py
CHANGED
|
@@ -131,21 +131,23 @@ class Tw:
|
|
|
131
131
|
- ticker: ticker of the stock
|
|
132
132
|
Return: Summary of the stock or crypto to be used as plotly title
|
|
133
133
|
"""
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
134
|
+
try:
|
|
135
|
+
if '-USD' in ticker:
|
|
136
|
+
# crypto
|
|
137
|
+
coin = self.crypto.loc[self.crypto['ticker']==ticker].iloc[0]
|
|
138
|
+
plotly_title = f"{coin['base_currency_desc']} ({coin['base_currency']})<br>💲{self.moneystring(coin['market_cap_calc'])} | {', '.join(coin['crypto_common_categories'])}"
|
|
139
|
+
|
|
140
|
+
elif ticker in self.etf['name'].tolist() :
|
|
141
|
+
# ETF
|
|
142
|
+
t = self.etf.loc[self.etf['name']==ticker].iloc[0]
|
|
143
|
+
plotly_title = f"{t['description']} ({t['name']}) | 💲{round(t['close'], 2)} <br>AUM:💲{self.moneystring(t['aum'])} | {t['focus.tr']} | Expense ratio {t['expense_ratio']}"
|
|
144
|
+
else:
|
|
145
|
+
# stock
|
|
146
|
+
t = self.get_one_stock_info(ticker)
|
|
147
|
+
plotly_title = f"{t['name']} ({t['ticker']}) | 💲{round(t['price'], 2)} | {t['sector']} | {t['industry']} <br>💲{t['market_cap_text']} | 👨💼 {round(t['n_emp']):,} <br>Sector location: {t['sec_loc']} | Industry location: {t['ind_loc']}"
|
|
148
|
+
return(plotly_title)
|
|
149
|
+
except:
|
|
150
|
+
return(f"{ticker}")
|
|
149
151
|
|
|
150
152
|
|
|
151
153
|
def get_sec_plot(self, ticker):
|
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: goldhand
|
|
3
|
-
Version:
|
|
3
|
+
Version: 17.3
|
|
4
4
|
Summary: A package working with financial data
|
|
5
5
|
Home-page: https://github.com/misrori/goldhand
|
|
6
6
|
Author: Mihaly
|
|
7
7
|
Author-email: ormraat.pte@gmail.com
|
|
8
8
|
License: MIT
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist:
|
|
11
|
-
Requires-Dist: pandas
|
|
12
|
-
Requires-Dist:
|
|
10
|
+
Requires-Dist: pandas_datareader
|
|
11
|
+
Requires-Dist: pandas==2.2.2
|
|
12
|
+
Requires-Dist: pandas_ta
|
|
13
13
|
Requires-Dist: plotly
|
|
14
14
|
Requires-Dist: scipy
|
|
15
|
+
Requires-Dist: numpy==1.26.4
|
|
15
16
|
Requires-Dist: numpy
|
|
16
17
|
Requires-Dist: requests
|
|
17
18
|
Requires-Dist: cloudscraper
|
|
18
19
|
Requires-Dist: tqdm
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: license
|
|
26
|
+
Dynamic: requires-dist
|
|
27
|
+
Dynamic: summary
|
|
19
28
|
|
|
20
29
|
|
|
21
30
|
# [Goldhand](https://github.com/misrori/goldhand)
|
|
@@ -4,8 +4,8 @@ goldhand/helpers.py,sha256=l9yn0kVTiwfUR8sI5nH1QFx6dYikaUQgRA227Ox7hs0,6130
|
|
|
4
4
|
goldhand/stocks.py,sha256=3RWj1LI276o4VLIzwQUooXfZ2BcsZCfWJnQEcPMzzqU,14017
|
|
5
5
|
goldhand/strategy_goldhand_line.py,sha256=VopjGsufi1Dg367ys_8xWgYSSF1cw96lHgxJx2bPUNA,11656
|
|
6
6
|
goldhand/strategy_rsi.py,sha256=TWZyT2uzQ1zCfevM2sMZAD6p_vSY_rTZ0qnJiMDN02Y,9831
|
|
7
|
-
goldhand/tw.py,sha256=
|
|
8
|
-
goldhand-
|
|
9
|
-
goldhand-
|
|
10
|
-
goldhand-
|
|
11
|
-
goldhand-
|
|
7
|
+
goldhand/tw.py,sha256=jT6DL2PyJxoPojNHL39pkk0PsuZajTQBbRStipnbq9w,12840
|
|
8
|
+
goldhand-17.3.dist-info/METADATA,sha256=odRU0AQdvOPOIT8TMbzRPyJxGKX8HAPtH9Dlt2zoqBE,5615
|
|
9
|
+
goldhand-17.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
goldhand-17.3.dist-info/top_level.txt,sha256=siEJ2_a_Fx_7hqRI4Ms6SzCelbXrK_1H_eOF8KAaMdA,9
|
|
11
|
+
goldhand-17.3.dist-info/RECORD,,
|
|
File without changes
|