siglab-py 0.5.7__tar.gz → 0.5.9__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 siglab-py might be problematic. Click here for more details.
- {siglab_py-0.5.7 → siglab_py-0.5.9}/PKG-INFO +1 -1
- {siglab_py-0.5.7 → siglab_py-0.5.9}/pyproject.toml +1 -1
- {siglab_py-0.5.7 → siglab_py-0.5.9}/setup.cfg +1 -1
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/tg_monitor.py +3 -3
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/trading_util.py +3 -1
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py.egg-info/PKG-INFO +1 -1
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/constants.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/exchanges/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/exchanges/any_exchange.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/exchanges/futubull.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/aggregated_orderbook_provider.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/candles_provider.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/candles_ta_provider.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/ccxt_candles_ta_to_csv.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/deribit_options_expiry_provider.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/futu_candles_ta_to_csv.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/orderbooks_provider.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/test_provider.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/ordergateway/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/ordergateway/client.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/ordergateway/encrypt_keys_util.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/ordergateway/gateway.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/ordergateway/test_ordergateway.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/tests/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/tests/integration/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/tests/integration/market_data_util_tests.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/tests/unit/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/tests/unit/analytic_util_tests.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/tests/unit/market_data_util_tests.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/tests/unit/trading_util_tests.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/__init__.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/analytic_util.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/aws_util.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/market_data_util.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/notification_util.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/retry_util.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/util/slack_notification_util.py +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py.egg-info/SOURCES.txt +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py.egg-info/dependency_links.txt +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py.egg-info/requires.txt +0 -0
- {siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "siglab_py"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.9"
|
|
8
8
|
description = "Market data fetches, TA calculations and generic order gateway."
|
|
9
9
|
authors = [{name = "r0bbarh00d", email = "r0bbarh00d@gmail.com"}]
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -113,7 +113,7 @@ param: Dict[str, Any] = {
|
|
|
113
113
|
'message_keywords_filter': [],
|
|
114
114
|
'start_date': None,
|
|
115
115
|
'alert_wav_path' : r"d:\sounds\terrible.wav",
|
|
116
|
-
"num_shouts" :
|
|
116
|
+
"num_shouts" : 5, # How many times 'alert_wav_path' is played
|
|
117
117
|
"loop_freq_ms" : 1000,
|
|
118
118
|
'current_filename' : current_filename,
|
|
119
119
|
|
|
@@ -410,10 +410,10 @@ async def main() -> None:
|
|
|
410
410
|
log(f"No messages processed in this iteration. last_message_date: {last_message_date}", LogLevel.INFO)
|
|
411
411
|
last_message_date = last_message_date + timedelta(days=1)
|
|
412
412
|
|
|
413
|
+
await asyncio.sleep(int(param['loop_freq_ms'] / 1000))
|
|
414
|
+
|
|
413
415
|
except Exception as e:
|
|
414
416
|
log(f"Oops {str(e)} {str(sys.exc_info()[0])} {str(sys.exc_info()[1])} {traceback.format_exc()}", LogLevel.ERROR)
|
|
415
|
-
finally:
|
|
416
|
-
await asyncio.sleep(int(param['loop_freq_ms'] / 1000))
|
|
417
417
|
|
|
418
418
|
if __name__ == '__main__':
|
|
419
419
|
try:
|
|
@@ -64,7 +64,9 @@ def calc_eff_trailing_sl(
|
|
|
64
64
|
pow : float = 5 # This is for non-linear trailing stops
|
|
65
65
|
) -> float:
|
|
66
66
|
if pnl_percent_notional>tp_max_percent:
|
|
67
|
-
|
|
67
|
+
return 0
|
|
68
|
+
if pnl_percent_notional<tp_min_percent:
|
|
69
|
+
return default_effective_tp_trailing_percent
|
|
68
70
|
|
|
69
71
|
if linear:
|
|
70
72
|
slope = (0 - sl_percent_trailing) / (tp_max_percent - tp_min_percent)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/aggregated_orderbook_provider.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/ccxt_candles_ta_to_csv.py
RENAMED
|
File without changes
|
|
File without changes
|
{siglab_py-0.5.7 → siglab_py-0.5.9}/siglab_py/market_data_providers/futu_candles_ta_to_csv.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|