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.
@@ -13,6 +13,7 @@ class Exchange(ValidateEnumMixin, StrEnum):
13
13
 
14
14
  KUCOIN = "kucoin"
15
15
  BINGX = "bingx"
16
+ HYPERLIQUID = "hyperliquid"
16
17
 
17
18
 
18
19
  class InternalExchange(ValidateEnumMixin, StrEnum):
@@ -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: status.HTTP_400_BAD_REQUEST,
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crypticorn
3
- Version: 2.11.5
3
+ Version: 2.11.6
4
4
  Summary: Maximise Your Crypto Trading Profits with Machine Learning
5
5
  Author-email: Crypticorn <timon@crypticorn.com>
6
6
  License-Expression: MIT
@@ -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=md7C_p2gAu6BbDboLm-DYYuJWjCHgRdk68iC1H5ZqPg,755
73
- crypticorn/common/errors.py,sha256=cAxMlHLLR-StgMmSdUwhnN0eUh0aBQmW0BIXYfa1GOI,28023
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.5.dist-info/licenses/LICENSE,sha256=HonAVvzFXkP2C1d7D3ByIKPwjGH8NcHTAQvKH7uvOHQ,1856
265
- crypticorn-2.11.5.dist-info/METADATA,sha256=l6zDjJjVyxDTSB9WuqjpsCcRTc7T20C5J5H8P44edz8,8640
266
- crypticorn-2.11.5.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
267
- crypticorn-2.11.5.dist-info/entry_points.txt,sha256=d_xHsGvUTebPveVUK0SrpDFQ5ZRSjlI7lNCc11sn2PM,59
268
- crypticorn-2.11.5.dist-info/top_level.txt,sha256=EP3NY216qIBYfmvGl0L2Zc9ItP0DjGSkiYqd9xJwGcM,11
269
- crypticorn-2.11.5.dist-info/RECORD,,
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,,