siglab-py 0.2.2__py3-none-any.whl → 0.2.5__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 siglab-py might be problematic. Click here for more details.

@@ -25,8 +25,8 @@ import ccxt.pro as ccxtpro
25
25
 
26
26
  from siglab_py.exchanges.any_exchange import AnyExchange
27
27
  from siglab_py.ordergateway.client import Order, DivisiblePosition
28
- from siglab_py.util.notification_util import dispatch_notification
29
- from siglab_py.constants import LogLevel
28
+ from siglab_py.util import notification_util
29
+ from siglab_py.constants import LogLevel # type: ignore
30
30
 
31
31
  '''
32
32
  Usage:
@@ -418,8 +418,7 @@ async def instantiate_exchange(
418
418
  "walletAddress" : api_key,
419
419
  "privateKey" : secret,
420
420
  'enableRateLimit' : True,
421
- 'rateLimit' : rate_limit_ms,
422
- "verbose": True,
421
+ 'rateLimit' : rate_limit_ms
423
422
  }
424
423
  ) # type: ignore
425
424
  else:
@@ -876,7 +875,8 @@ async def main():
876
875
  # Once exchange instantiated, try fetch_balance to confirm connectivity and test credentials.
877
876
  balances = await exchange.fetch_balance() # type: ignore
878
877
  log(f"{param['gateway_id']}: account balances {balances}")
878
+ notification_util.dispatch_notification(title=f"{param['gateway_id']} started", message=balances, footer=param['notification']['footer'], params=notification_params)
879
879
 
880
- await work(param=param, exchange=exchange, redis_client=redis_client, notification_params=notification_params)
880
+ await work(param=param, exchange=exchange, redis_client=redis_client, notification_params=notification_params, params=notification_params, log_level=LogLevel.INFO)
881
881
 
882
882
  asyncio.run(main())
@@ -4,7 +4,7 @@ import pandas as pd
4
4
  import numpy as np
5
5
  from tabulate import tabulate
6
6
 
7
- from slack_notification_util import slack_dispatch_notification
7
+ from siglab_py.util import slack_notification_util
8
8
 
9
9
  from siglab_py.constants import LogLevel
10
10
 
@@ -22,7 +22,7 @@ def dispatch_notification(
22
22
  else:
23
23
  _message = message
24
24
 
25
- slack_dispatch_notification(title, _message, footer, params, log_level)
25
+ slack_notification_util.slack_dispatch_notification(title, _message, footer, params, log_level)
26
26
 
27
27
  if __name__ == '__main__':
28
28
  params : Dict[str, Any] = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: siglab-py
3
- Version: 0.2.2
3
+ Version: 0.2.5
4
4
  Summary: Market data fetches, TA calculations and generic order gateway.
5
5
  Author: r0bbarh00d
6
6
  Author-email: r0bbarh00d <r0bbarh00d@gmail.com>
@@ -15,7 +15,7 @@ siglab_py/market_data_providers/test_provider.py,sha256=wBLCgcWjs7FGZJXWsNyn30lk
15
15
  siglab_py/ordergateway/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  siglab_py/ordergateway/client.py,sha256=EwoVKxEcngIs8-b4MThPBdZfFIWJg1OFAKG9bwC5BYw,14826
17
17
  siglab_py/ordergateway/encrypt_keys_util.py,sha256=-qi87db8To8Yf1WS1Q_Cp2Ya7ZqgWlRqSHfNXCM7wE4,1339
18
- siglab_py/ordergateway/gateway.py,sha256=uhqu_TOpD8oLIWIyDPZSmheqFuCdtsQmbZRFxlZPHU4,40909
18
+ siglab_py/ordergateway/gateway.py,sha256=WnuwBl8_-MAumxSOLMivNfuOYMG8CBzpYc2ahNPViFM,41095
19
19
  siglab_py/ordergateway/test_ordergateway.py,sha256=KajC0oidfDIgboRazkteAXzx47FffVRligThzKKqgRk,4035
20
20
  siglab_py/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  siglab_py/tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -27,10 +27,10 @@ siglab_py/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  siglab_py/util/analytic_util.py,sha256=o9MNuOWUhw-r0id10Wjjd7a6rkL6-g3OmvajMSj1JJ4,43838
28
28
  siglab_py/util/aws_util.py,sha256=KGmjHrr1rpnnxr33nXHNzTul4tvyyxl9p6gpwNv0Ygc,2557
29
29
  siglab_py/util/market_data_util.py,sha256=9Uze8DE5z90H4Qm15R55ZllAi5trUkwCAW-BWYbfaW8,19420
30
- siglab_py/util/notification_util.py,sha256=FvX_1lvFOGIPN59DVD9ALBAFlRET4kuSfHgCE-U2ewE,2300
30
+ siglab_py/util/notification_util.py,sha256=6TPyStp-F6g_NTN-sVG18_o35agV6tjayNtJ0A4axyk,2311
31
31
  siglab_py/util/retry_util.py,sha256=mxYuRFZRZoaQQjENcwPmxhxixtd1TFvbxIdPx4RwfRc,743
32
32
  siglab_py/util/slack_notification_util.py,sha256=WShr3gxktOkW0-bHN5pxXk1sF3N720WlnAZovJv5HpY,1926
33
- siglab_py-0.2.2.dist-info/METADATA,sha256=5XBQsUxK3E3IlwZhixAmoj3DjwmEFjBAOppLce-l-20,979
34
- siglab_py-0.2.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
35
- siglab_py-0.2.2.dist-info/top_level.txt,sha256=AbD4VR9OqmMOGlMJLkAVPGQMtUPIQv0t1BF5xmcLJSk,10
36
- siglab_py-0.2.2.dist-info/RECORD,,
33
+ siglab_py-0.2.5.dist-info/METADATA,sha256=3T8_3T52pPABfn7JtsOrq7uWjE_eKpI8tv88skVYIyQ,979
34
+ siglab_py-0.2.5.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
35
+ siglab_py-0.2.5.dist-info/top_level.txt,sha256=AbD4VR9OqmMOGlMJLkAVPGQMtUPIQv0t1BF5xmcLJSk,10
36
+ siglab_py-0.2.5.dist-info/RECORD,,