siglab-py 0.1.51__py3-none-any.whl → 0.1.52__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/client.py +1 -0
- siglab_py/ordergateway/gateway.py +2 -3
- {siglab_py-0.1.51.dist-info → siglab_py-0.1.52.dist-info}/METADATA +1 -1
- {siglab_py-0.1.51.dist-info → siglab_py-0.1.52.dist-info}/RECORD +6 -6
- {siglab_py-0.1.51.dist-info → siglab_py-0.1.52.dist-info}/WHEEL +0 -0
- {siglab_py-0.1.51.dist-info → siglab_py-0.1.52.dist-info}/top_level.txt +0 -0
siglab_py/ordergateway/client.py
CHANGED
|
@@ -327,6 +327,7 @@ class DivisiblePosition(Order):
|
|
|
327
327
|
rv['executions'] = self.executions
|
|
328
328
|
rv['filled_amount'] = self.filled_amount
|
|
329
329
|
rv['average_cost'] = self.average_cost
|
|
330
|
+
rv['fees'] = self.fees
|
|
330
331
|
rv['pos'] = self.pos
|
|
331
332
|
rv['done'] = self.done
|
|
332
333
|
rv['execution_err'] = self.execution_err
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from ctypes import ArgumentError
|
|
2
1
|
import sys
|
|
3
2
|
import traceback
|
|
4
3
|
import os
|
|
@@ -392,7 +391,7 @@ async def instantiate_exchange(
|
|
|
392
391
|
}
|
|
393
392
|
) # type: ignore
|
|
394
393
|
else:
|
|
395
|
-
raise
|
|
394
|
+
raise ValueError(f"Unsupported exchange {exchange_name}, check gateway_id {gateway_id}.")
|
|
396
395
|
|
|
397
396
|
await exchange.load_markets() # type: ignore
|
|
398
397
|
|
|
@@ -697,7 +696,7 @@ async def execute_one_position(
|
|
|
697
696
|
|
|
698
697
|
except Exception as position_execution_err:
|
|
699
698
|
position.done = False
|
|
700
|
-
position.execution_err = position_execution_err
|
|
699
|
+
position.execution_err = f"Execution failed: {position_execution_err} {str(sys.exc_info()[0])} {str(sys.exc_info()[1])} {traceback.format_exc()}"
|
|
701
700
|
|
|
702
701
|
async def work(
|
|
703
702
|
param : Dict,
|
|
@@ -13,9 +13,9 @@ siglab_py/market_data_providers/futu_candles_ta_to_csv.py,sha256=S4GXaJ7AveEh-Cm
|
|
|
13
13
|
siglab_py/market_data_providers/orderbooks_provider.py,sha256=olt-3LIkoyzQWfNNQRhJtKibLbkTutt_q_rCCTM7i1g,16216
|
|
14
14
|
siglab_py/market_data_providers/test_provider.py,sha256=wBLCgcWjs7FGZJXWsNyn30lkOLa_cgpuvqRakMC0wbA,2221
|
|
15
15
|
siglab_py/ordergateway/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
siglab_py/ordergateway/client.py,sha256=
|
|
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=VkTTNDVWQxmhgdDNd4d0Xg0TYA-yVKNenemqLz5ZXmA,38556
|
|
19
19
|
siglab_py/ordergateway/test_ordergateway.py,sha256=_Gz2U_VqljogGWqGyNDYYls1INqUiig9veyPttfGRpg,3901
|
|
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
|
|
@@ -28,7 +28,7 @@ siglab_py/util/analytic_util.py,sha256=xo9gD1ELQt_1v84yu9d4NgxtOIXthePZGipvDrjZA
|
|
|
28
28
|
siglab_py/util/aws_util.py,sha256=KGmjHrr1rpnnxr33nXHNzTul4tvyyxl9p6gpwNv0Ygc,2557
|
|
29
29
|
siglab_py/util/market_data_util.py,sha256=QJGYIO-ixzjbOm3pY1koiDd_UV5-_QS7JrwuaCn7kug,19486
|
|
30
30
|
siglab_py/util/retry_util.py,sha256=mxYuRFZRZoaQQjENcwPmxhxixtd1TFvbxIdPx4RwfRc,743
|
|
31
|
-
siglab_py-0.1.
|
|
32
|
-
siglab_py-0.1.
|
|
33
|
-
siglab_py-0.1.
|
|
34
|
-
siglab_py-0.1.
|
|
31
|
+
siglab_py-0.1.52.dist-info/METADATA,sha256=93KeqsFYmMe8_ydvspXrxw-fhv8DUJ-OFjzvFUmTxjQ,980
|
|
32
|
+
siglab_py-0.1.52.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
33
|
+
siglab_py-0.1.52.dist-info/top_level.txt,sha256=AbD4VR9OqmMOGlMJLkAVPGQMtUPIQv0t1BF5xmcLJSk,10
|
|
34
|
+
siglab_py-0.1.52.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|