crypticorn 2.11.5__py3-none-any.whl → 2.11.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.
- crypticorn/common/enums.py +1 -0
- crypticorn/common/errors.py +14 -1
- {crypticorn-2.11.5.dist-info → crypticorn-2.11.6.dist-info}/METADATA +1 -1
- {crypticorn-2.11.5.dist-info → crypticorn-2.11.6.dist-info}/RECORD +8 -8
- {crypticorn-2.11.5.dist-info → crypticorn-2.11.6.dist-info}/WHEEL +0 -0
- {crypticorn-2.11.5.dist-info → crypticorn-2.11.6.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.11.5.dist-info → crypticorn-2.11.6.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.11.5.dist-info → crypticorn-2.11.6.dist-info}/top_level.txt +0 -0
crypticorn/common/enums.py
CHANGED
crypticorn/common/errors.py
CHANGED
@@ -67,6 +67,7 @@ class ApiErrorIdentifier(StrEnum):
|
|
67
67
|
INVALID_PARAMETER = "invalid_parameter_provided"
|
68
68
|
LEVERAGE_EXCEEDED = "leverage_limit_exceeded"
|
69
69
|
LIQUIDATION_PRICE_VIOLATION = "order_violates_liquidation_price_constraints"
|
70
|
+
MARGIN_MODE_CLASH = "margin_mode_clash"
|
70
71
|
MODEL_NAME_NOT_UNIQUE = "model_name_not_unique"
|
71
72
|
NO_CREDENTIALS = "no_credentials"
|
72
73
|
NOW_API_DOWN = "now_api_down"
|
@@ -326,6 +327,11 @@ class ApiError(Enum, metaclass=ApiErrorFallback):
|
|
326
327
|
ApiErrorType.SERVER_ERROR,
|
327
328
|
ApiErrorLevel.ERROR,
|
328
329
|
)
|
330
|
+
MARGIN_MODE_CLASH = (
|
331
|
+
ApiErrorIdentifier.MARGIN_MODE_CLASH,
|
332
|
+
ApiErrorType.USER_ERROR,
|
333
|
+
ApiErrorLevel.ERROR,
|
334
|
+
)
|
329
335
|
MODEL_NAME_NOT_UNIQUE = (
|
330
336
|
ApiErrorIdentifier.MODEL_NAME_NOT_UNIQUE,
|
331
337
|
ApiErrorType.USER_ERROR,
|
@@ -680,6 +686,10 @@ class StatusCodeMapper:
|
|
680
686
|
status.WS_1011_INTERNAL_ERROR,
|
681
687
|
),
|
682
688
|
# Bad Requests (400) - Invalid parameters or states
|
689
|
+
ApiError.MARGIN_MODE_CLASH: (
|
690
|
+
status.HTTP_400_BAD_REQUEST,
|
691
|
+
status.WS_1008_POLICY_VIOLATION,
|
692
|
+
),
|
683
693
|
ApiError.INVALID_MODEL_NAME: (
|
684
694
|
status.HTTP_400_BAD_REQUEST,
|
685
695
|
status.WS_1008_POLICY_VIOLATION,
|
@@ -753,7 +763,10 @@ class StatusCodeMapper:
|
|
753
763
|
status.HTTP_400_BAD_REQUEST,
|
754
764
|
status.WS_1008_POLICY_VIOLATION,
|
755
765
|
),
|
756
|
-
ApiError.LIQUIDATION_PRICE_VIOLATION:
|
766
|
+
ApiError.LIQUIDATION_PRICE_VIOLATION: (
|
767
|
+
status.HTTP_400_BAD_REQUEST,
|
768
|
+
status.WS_1008_POLICY_VIOLATION,
|
769
|
+
),
|
757
770
|
ApiError.ORDER_ALREADY_FILLED: (
|
758
771
|
status.HTTP_400_BAD_REQUEST,
|
759
772
|
status.WS_1008_POLICY_VIOLATION,
|
@@ -69,8 +69,8 @@ crypticorn/common/__init__.py,sha256=DXEuUU_kaLBSBcvpiFie_ROuK5XEZuTMIfsg-BZE0iE
|
|
69
69
|
crypticorn/common/ansi_colors.py,sha256=-tMlUTE8NI7TPv7uj0kGRe-SI2hGaUNPKBFI_dfiZy0,1392
|
70
70
|
crypticorn/common/auth.py,sha256=HxiAEej315qQGbX0p8WmQI50blUTOWsMWpCtguMx-A4,8786
|
71
71
|
crypticorn/common/decorators.py,sha256=t5Y3vSJ-gt0n2vOYYjYN0dtzNXvZxrJs2SEItpzG8oo,1127
|
72
|
-
crypticorn/common/enums.py,sha256=
|
73
|
-
crypticorn/common/errors.py,sha256=
|
72
|
+
crypticorn/common/enums.py,sha256=YE7ObydyWAKO8MOSQBwk9M1PzzaPvlnxc6Dbpu78QMk,787
|
73
|
+
crypticorn/common/errors.py,sha256=jmQwGak91K48su6n9V2AcJ05oAGUcuZHd15vR4F1BHU,28412
|
74
74
|
crypticorn/common/exceptions.py,sha256=31WcS1OEcGBAMc3FnPrtb6jFbh6Ni1v9Kciz7Av4y84,6098
|
75
75
|
crypticorn/common/logging.py,sha256=3ZTFB9j8Mqy_AlNYABUFQ_134OH0YtophJkP4_GDJ9w,4408
|
76
76
|
crypticorn/common/middleware.py,sha256=O7XiXPimNYUhF9QTv6yFUTVlb91-SK-3CfTrWMNP6Ck,1011
|
@@ -261,9 +261,9 @@ crypticorn/trade/client/models/strategy_model_input.py,sha256=ala19jARyfA5ysys5D
|
|
261
261
|
crypticorn/trade/client/models/strategy_model_output.py,sha256=2o2lhbgUSTznowpMLEHF1Ex9TG9oRmzlCIb-gXqo7_s,5643
|
262
262
|
crypticorn/trade/client/models/tpsl.py,sha256=C2KgTIZs-a8W4msdaXgBKJcwtA-o5wR4rBauRP-iQxU,4317
|
263
263
|
crypticorn/trade/client/models/trading_action_type.py,sha256=pGq_TFLMPfYFizYP-xKgEC1ZF4U3lGdJYoGa_ZH2x-Q,769
|
264
|
-
crypticorn-2.11.
|
265
|
-
crypticorn-2.11.
|
266
|
-
crypticorn-2.11.
|
267
|
-
crypticorn-2.11.
|
268
|
-
crypticorn-2.11.
|
269
|
-
crypticorn-2.11.
|
264
|
+
crypticorn-2.11.6.dist-info/licenses/LICENSE,sha256=HonAVvzFXkP2C1d7D3ByIKPwjGH8NcHTAQvKH7uvOHQ,1856
|
265
|
+
crypticorn-2.11.6.dist-info/METADATA,sha256=AeTyyu2Hcp5u55AY21qiwChn4tqew8QLJFk9bF5rM70,8640
|
266
|
+
crypticorn-2.11.6.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
267
|
+
crypticorn-2.11.6.dist-info/entry_points.txt,sha256=d_xHsGvUTebPveVUK0SrpDFQ5ZRSjlI7lNCc11sn2PM,59
|
268
|
+
crypticorn-2.11.6.dist-info/top_level.txt,sha256=EP3NY216qIBYfmvGl0L2Zc9ItP0DjGSkiYqd9xJwGcM,11
|
269
|
+
crypticorn-2.11.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|