siglab-py 0.2.3__py3-none-any.whl → 0.2.6__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.
- siglab_py/ordergateway/gateway.py +7 -8
- siglab_py/util/slack_notification_util.py +3 -0
- {siglab_py-0.2.3.dist-info → siglab_py-0.2.6.dist-info}/METADATA +1 -1
- {siglab_py-0.2.3.dist-info → siglab_py-0.2.6.dist-info}/RECORD +6 -6
- {siglab_py-0.2.3.dist-info → siglab_py-0.2.6.dist-info}/WHEEL +0 -0
- {siglab_py-0.2.3.dist-info → siglab_py-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -26,7 +26,7 @@ import ccxt.pro as ccxtpro
|
|
|
26
26
|
from siglab_py.exchanges.any_exchange import AnyExchange
|
|
27
27
|
from siglab_py.ordergateway.client import Order, DivisiblePosition
|
|
28
28
|
from siglab_py.util import notification_util
|
|
29
|
-
from siglab_py.constants import LogLevel
|
|
29
|
+
from siglab_py.constants import LogLevel # type: ignore
|
|
30
30
|
|
|
31
31
|
'''
|
|
32
32
|
Usage:
|
|
@@ -321,9 +321,9 @@ def parse_args():
|
|
|
321
321
|
param['secret'] = args.secret
|
|
322
322
|
param['passphrase'] = args.passphrase
|
|
323
323
|
|
|
324
|
-
param['notification']['slack']['info'] = args.slack_info_url
|
|
325
|
-
param['notification']['slack']['critical'] = args.slack_critial_url
|
|
326
|
-
param['notification']['slack']['alert'] = args.slack_alert_url
|
|
324
|
+
param['notification']['slack']['info']['webhook_url'] = args.slack_info_url
|
|
325
|
+
param['notification']['slack']['critical']['webhook_url'] = args.slack_critial_url
|
|
326
|
+
param['notification']['slack']['alert']['webhook_url'] = args.slack_alert_url
|
|
327
327
|
param['notification']['footer'] = f"From gateway {param['gateway_id']}"
|
|
328
328
|
|
|
329
329
|
def init_redis_client() -> StrictRedis:
|
|
@@ -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,8 +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}")
|
|
879
|
-
notification_util.dispatch_notification(title=f"{param['gateway_id']} started", message=balances, footer=param['notification']['footer'])
|
|
878
|
+
notification_util.dispatch_notification(title=f"{param['gateway_id']} started", message=balances, footer=param['notification']['footer'], params=notification_params)
|
|
880
879
|
|
|
881
|
-
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, log_level=LogLevel.INFO)
|
|
882
881
|
|
|
883
882
|
asyncio.run(main())
|
|
@@ -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=
|
|
18
|
+
siglab_py/ordergateway/gateway.py,sha256=s4PfsP9xBaWYA_rALdkscTGAAfRNaPxXYPwD5eYxf4M,41112
|
|
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
|
|
@@ -29,8 +29,8 @@ siglab_py/util/aws_util.py,sha256=KGmjHrr1rpnnxr33nXHNzTul4tvyyxl9p6gpwNv0Ygc,25
|
|
|
29
29
|
siglab_py/util/market_data_util.py,sha256=9Uze8DE5z90H4Qm15R55ZllAi5trUkwCAW-BWYbfaW8,19420
|
|
30
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
|
-
siglab_py/util/slack_notification_util.py,sha256=
|
|
33
|
-
siglab_py-0.2.
|
|
34
|
-
siglab_py-0.2.
|
|
35
|
-
siglab_py-0.2.
|
|
36
|
-
siglab_py-0.2.
|
|
32
|
+
siglab_py/util/slack_notification_util.py,sha256=b_onBrJE58-4cTBc--X9igYj8hvVOHqrAbSuTD9c2So,1969
|
|
33
|
+
siglab_py-0.2.6.dist-info/METADATA,sha256=QSG-6-58UHM2Dok2A5DMoDrvqIfzT7YBxREdEQQ0v1o,979
|
|
34
|
+
siglab_py-0.2.6.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
35
|
+
siglab_py-0.2.6.dist-info/top_level.txt,sha256=AbD4VR9OqmMOGlMJLkAVPGQMtUPIQv0t1BF5xmcLJSk,10
|
|
36
|
+
siglab_py-0.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|