virgo-modules 0.0.65__py3-none-any.whl → 0.0.66__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 virgo-modules might be problematic. Click here for more details.
- virgo_modules/src/ticketer_source.py +14 -2
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.66.dist-info}/METADATA +1 -1
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.66.dist-info}/RECORD +6 -6
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.66.dist-info}/LICENSE +0 -0
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.66.dist-info}/WHEEL +0 -0
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.66.dist-info}/top_level.txt +0 -0
|
@@ -197,7 +197,7 @@ class stock_eda_panel(object):
|
|
|
197
197
|
|
|
198
198
|
stock = yf.Ticker(self.stock_code)
|
|
199
199
|
df = stock.history(period=self.data_window)
|
|
200
|
-
|
|
200
|
+
|
|
201
201
|
df = df.sort_values('Date')
|
|
202
202
|
df.reset_index(inplace=True)
|
|
203
203
|
df['Date'] = pd.to_datetime(df['Date'], format='mixed',utc=True).dt.date
|
|
@@ -1687,7 +1687,7 @@ class hmm_feature_selector():
|
|
|
1687
1687
|
|
|
1688
1688
|
class signal_analyser_object:
|
|
1689
1689
|
|
|
1690
|
-
def __init__(self, data,symbol_name, show_plot = True, save_path = False, save_aws = False, aws_credentials = False):
|
|
1690
|
+
def __init__(self, data,symbol_name, show_plot = True, save_path = False, save_aws = False, aws_credentials = False, return_fig = False):
|
|
1691
1691
|
"""
|
|
1692
1692
|
data: pandas df
|
|
1693
1693
|
symbol_name: str name of the asset
|
|
@@ -1695,6 +1695,7 @@ class signal_analyser_object:
|
|
|
1695
1695
|
save_path: str local path for saving e.g r'C:/path/to/the/file/'
|
|
1696
1696
|
save_aws: str remote key in s3 bucket path e.g. 'path/to/file/'
|
|
1697
1697
|
aws_credentials: dict
|
|
1698
|
+
return_fig: boolean return the image function as result
|
|
1698
1699
|
"""
|
|
1699
1700
|
self.data = data.copy()
|
|
1700
1701
|
self.ticket_name = symbol_name
|
|
@@ -1702,6 +1703,7 @@ class signal_analyser_object:
|
|
|
1702
1703
|
self.save_path = save_path
|
|
1703
1704
|
self.save_aws = save_aws
|
|
1704
1705
|
self.aws_credentials = aws_credentials
|
|
1706
|
+
self.return_fig = return_fig
|
|
1705
1707
|
|
|
1706
1708
|
def signal_analyser(self, test_size, feature_name, days_list, threshold = 0.05,verbose = False, signal_position = False):
|
|
1707
1709
|
data = self.data
|
|
@@ -1818,7 +1820,14 @@ class signal_analyser_object:
|
|
|
1818
1820
|
upload_file_to_aws(bucket = 'VIRGO_BUCKET', key = self.save_aws + result_plot_name, input_path = self.save_path + result_plot_name, aws_credentials = self.aws_credentials)
|
|
1819
1821
|
if not self.show_plot:
|
|
1820
1822
|
plt.close()
|
|
1823
|
+
|
|
1821
1824
|
del df
|
|
1825
|
+
|
|
1826
|
+
if self.return_fig:
|
|
1827
|
+
return fig
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
|
|
1822
1831
|
|
|
1823
1832
|
def create_backtest_signal(self,days_strategy, test_size, feature_name):
|
|
1824
1833
|
asset_1 = 'Close'
|
|
@@ -1918,6 +1927,9 @@ class signal_analyser_object:
|
|
|
1918
1927
|
plt.close()
|
|
1919
1928
|
|
|
1920
1929
|
del df1,df2,dft
|
|
1930
|
+
|
|
1931
|
+
if self.return_fig:
|
|
1932
|
+
return fig
|
|
1921
1933
|
|
|
1922
1934
|
def execute_signal_analyser(test_data_size, feature_name, days_list, configuration, method, object_stock, signal_analyser_object, plot = False, backtest= False):
|
|
1923
1935
|
method(**configuration)
|
|
@@ -4,9 +4,9 @@ virgo_modules/src/aws_utils.py,sha256=GWmVdXM0mIJJPn-X-bEtM4KtNPCHM1D457hnuKxaM7
|
|
|
4
4
|
virgo_modules/src/edge_utils.py,sha256=Ihdmq7dyb8gOvG6CrDal7wsa15tqsdsFk6KINwM6578,7691
|
|
5
5
|
virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
|
|
6
6
|
virgo_modules/src/re_utils.py,sha256=s6fbjOI59Clw5f1sVfqexiviYJyRVGobYe7qFsC-tQo,52211
|
|
7
|
-
virgo_modules/src/ticketer_source.py,sha256=
|
|
8
|
-
virgo_modules-0.0.
|
|
9
|
-
virgo_modules-0.0.
|
|
10
|
-
virgo_modules-0.0.
|
|
11
|
-
virgo_modules-0.0.
|
|
12
|
-
virgo_modules-0.0.
|
|
7
|
+
virgo_modules/src/ticketer_source.py,sha256=Jn0cu6pkMtUG2tIhBvdgocxIJDt2II4TP0Yc85rgiQM,101420
|
|
8
|
+
virgo_modules-0.0.66.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
|
|
9
|
+
virgo_modules-0.0.66.dist-info/METADATA,sha256=n33RkrFJXxii_Ro0tOM4tOTHkLRbnpK3FUwIaUMPc3k,1429
|
|
10
|
+
virgo_modules-0.0.66.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
11
|
+
virgo_modules-0.0.66.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
|
|
12
|
+
virgo_modules-0.0.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|