virgo-modules 0.0.41__tar.gz → 0.0.43__tar.gz
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-0.0.41 → virgo_modules-0.0.43}/PKG-INFO +20 -4
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/setup.py +1 -1
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules/src/re_utils.py +1 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules/src/ticketer_source.py +10 -6
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules.egg-info/PKG-INFO +20 -4
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/LICENSE +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/README.md +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/setup.cfg +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules/__init__.py +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules/src/__init__.py +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules/src/aws_utils.py +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules/src/pull_artifacts.py +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules.egg-info/SOURCES.txt +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules.egg-info/dependency_links.txt +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules.egg-info/requires.txt +0 -0
- {virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules.egg-info/top_level.txt +0 -0
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: virgo_modules
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.43
|
|
4
4
|
Summary: data processing and statistical modeling using stock market data
|
|
5
5
|
Home-page: https://github.com/miguelmayhem92/virgo_module
|
|
6
6
|
Author: Miguel Mayhuire
|
|
7
7
|
Author-email: miguelmayhem92@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.9
|
|
12
11
|
Classifier: Operating System :: OS Independent
|
|
13
12
|
Requires-Python: >=3.9, <3.10
|
|
14
13
|
Description-Content-Type: text/markdown
|
|
15
|
-
Provides-Extra: dev
|
|
16
14
|
License-File: LICENSE
|
|
15
|
+
Requires-Dist: feature-engine==1.6.1
|
|
16
|
+
Requires-Dist: matplotlib==3.6.3
|
|
17
|
+
Requires-Dist: mlflow==2.1.1
|
|
18
|
+
Requires-Dist: numpy==1.23.5
|
|
19
|
+
Requires-Dist: optuna==3.1.0
|
|
20
|
+
Requires-Dist: pandas==1.5.3
|
|
21
|
+
Requires-Dist: plotly==5.15.0
|
|
22
|
+
Requires-Dist: rsa==4.9
|
|
23
|
+
Requires-Dist: scikit-learn==1.2.1
|
|
24
|
+
Requires-Dist: scipy==1.10.0
|
|
25
|
+
Requires-Dist: seaborn==0.12.2
|
|
26
|
+
Requires-Dist: starlette==0.22.0
|
|
27
|
+
Requires-Dist: statsmodels==0.13.5
|
|
28
|
+
Requires-Dist: ta==0.10.2
|
|
29
|
+
Requires-Dist: yfinance==0.2.9
|
|
30
|
+
Requires-Dist: hmmlearn==0.3.0
|
|
31
|
+
Requires-Dist: boto3
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
17
34
|
|
|
18
35
|
# Virgo Package
|
|
19
36
|
|
|
@@ -34,4 +51,3 @@ obj = stock_eda_panel(stock_code = 'PEP', n_days = 20)
|
|
|
34
51
|
obj.get_data()
|
|
35
52
|
print(obj.df.shape)
|
|
36
53
|
```
|
|
37
|
-
|
|
@@ -5,7 +5,7 @@ with open("virgo_app/README.md", "r") as f:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="virgo_modules",
|
|
8
|
-
version="0.0.
|
|
8
|
+
version="0.0.43",
|
|
9
9
|
description="data processing and statistical modeling using stock market data",
|
|
10
10
|
package_dir={"": "virgo_app"},
|
|
11
11
|
packages=find_packages(where="virgo_app"),
|
|
@@ -578,6 +578,7 @@ def call_ml_objects(stock_code, client, call_models = False):
|
|
|
578
578
|
ticker_name= stock_code,
|
|
579
579
|
ticket_settings = ticket_settings,
|
|
580
580
|
n_days = ticket_settings['settings']['general']['n_days'],
|
|
581
|
+
data_window = ticket_settings['settings']['general'].get('data_window','5y'),
|
|
581
582
|
hmm_available = hmm_model
|
|
582
583
|
)
|
|
583
584
|
### applying kalman
|
{virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules/src/ticketer_source.py
RENAMED
|
@@ -177,7 +177,12 @@ class stock_eda_panel(object):
|
|
|
177
177
|
df['Date'] = pd.to_datetime(df['Date'])
|
|
178
178
|
|
|
179
179
|
df = df[df.Date >= begin_date_str ]
|
|
180
|
-
self.settings_general = {
|
|
180
|
+
self.settings_general = {
|
|
181
|
+
'n_days':self.n_days,
|
|
182
|
+
'begin_date':begin_date_str,
|
|
183
|
+
'data_window': self.data_window,
|
|
184
|
+
'execution_date': self.today.strftime('%Y-%m-%d')
|
|
185
|
+
}
|
|
181
186
|
self.df = df
|
|
182
187
|
|
|
183
188
|
### cleaning volume
|
|
@@ -226,8 +231,6 @@ class stock_eda_panel(object):
|
|
|
226
231
|
df["lower"] = df['Close_roll_mean'] - df["Close_roll_std"]*2
|
|
227
232
|
|
|
228
233
|
df = df[df.Date >= begin_date_str ]
|
|
229
|
-
self.settings_general = {'n_days':self.n_days, 'begin_date':begin_date_str}
|
|
230
|
-
self.df = df
|
|
231
234
|
|
|
232
235
|
fig = make_subplots(rows=1, cols=1,vertical_spacing = 0.1,shared_xaxes=True,
|
|
233
236
|
subplot_titles=(
|
|
@@ -1852,10 +1855,11 @@ def iterate_signal_analyser(test_data_size,feature_name, days_list, arguments_to
|
|
|
1852
1855
|
return best_result
|
|
1853
1856
|
|
|
1854
1857
|
class analyse_index(stock_eda_panel):
|
|
1855
|
-
def __init__(self, index, asset, n_obs, lag, show_plot = True, save_path = False, save_aws = False):
|
|
1858
|
+
def __init__(self, index, asset, n_obs, lag, data_window = '5y', show_plot = True, save_path = False, save_aws = False):
|
|
1856
1859
|
self.index = index
|
|
1857
1860
|
self.asset = asset
|
|
1858
1861
|
self.n_obs = n_obs
|
|
1862
|
+
self.data_window = data_window
|
|
1859
1863
|
self.lag = lag
|
|
1860
1864
|
|
|
1861
1865
|
self.show_plot = show_plot
|
|
@@ -1864,12 +1868,12 @@ class analyse_index(stock_eda_panel):
|
|
|
1864
1868
|
|
|
1865
1869
|
def process_data(self):
|
|
1866
1870
|
|
|
1867
|
-
index = stock_eda_panel(self.index, self.n_obs)
|
|
1871
|
+
index = stock_eda_panel(self.index, self.n_obs, self.data_window)
|
|
1868
1872
|
index.get_data()
|
|
1869
1873
|
index.df['shift'] = index.df.Close.shift(self.lag)
|
|
1870
1874
|
index.df['index_return'] = index.df.Close/index.df['shift'] - 1
|
|
1871
1875
|
|
|
1872
|
-
asset = stock_eda_panel(self.asset, self.n_obs)
|
|
1876
|
+
asset = stock_eda_panel(self.asset, self.n_obs, self.data_window)
|
|
1873
1877
|
asset.get_data()
|
|
1874
1878
|
asset.df['shift'] = asset.df.Close.shift(self.lag)
|
|
1875
1879
|
asset.df['asset_return'] = asset.df.Close/asset.df['shift'] - 1
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: virgo-modules
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.43
|
|
4
4
|
Summary: data processing and statistical modeling using stock market data
|
|
5
5
|
Home-page: https://github.com/miguelmayhem92/virgo_module
|
|
6
6
|
Author: Miguel Mayhuire
|
|
7
7
|
Author-email: miguelmayhem92@gmail.com
|
|
8
8
|
License: MIT
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.9
|
|
12
11
|
Classifier: Operating System :: OS Independent
|
|
13
12
|
Requires-Python: >=3.9, <3.10
|
|
14
13
|
Description-Content-Type: text/markdown
|
|
15
|
-
Provides-Extra: dev
|
|
16
14
|
License-File: LICENSE
|
|
15
|
+
Requires-Dist: feature-engine==1.6.1
|
|
16
|
+
Requires-Dist: matplotlib==3.6.3
|
|
17
|
+
Requires-Dist: mlflow==2.1.1
|
|
18
|
+
Requires-Dist: numpy==1.23.5
|
|
19
|
+
Requires-Dist: optuna==3.1.0
|
|
20
|
+
Requires-Dist: pandas==1.5.3
|
|
21
|
+
Requires-Dist: plotly==5.15.0
|
|
22
|
+
Requires-Dist: rsa==4.9
|
|
23
|
+
Requires-Dist: scikit-learn==1.2.1
|
|
24
|
+
Requires-Dist: scipy==1.10.0
|
|
25
|
+
Requires-Dist: seaborn==0.12.2
|
|
26
|
+
Requires-Dist: starlette==0.22.0
|
|
27
|
+
Requires-Dist: statsmodels==0.13.5
|
|
28
|
+
Requires-Dist: ta==0.10.2
|
|
29
|
+
Requires-Dist: yfinance==0.2.9
|
|
30
|
+
Requires-Dist: hmmlearn==0.3.0
|
|
31
|
+
Requires-Dist: boto3
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
17
34
|
|
|
18
35
|
# Virgo Package
|
|
19
36
|
|
|
@@ -34,4 +51,3 @@ obj = stock_eda_panel(stock_code = 'PEP', n_days = 20)
|
|
|
34
51
|
obj.get_data()
|
|
35
52
|
print(obj.df.shape)
|
|
36
53
|
```
|
|
37
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{virgo_modules-0.0.41 → virgo_modules-0.0.43}/virgo_app/virgo_modules.egg-info/top_level.txt
RENAMED
|
File without changes
|