crypticorn 2.17.0rc4__py3-none-any.whl → 2.17.0rc6__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.
Files changed (151) hide show
  1. crypticorn/auth/client/api/admin_api.py +6 -26
  2. crypticorn/auth/client/api/auth_api.py +36 -148
  3. crypticorn/auth/client/api/service_api.py +3 -16
  4. crypticorn/auth/client/api/user_api.py +33 -136
  5. crypticorn/auth/client/api/wallet_api.py +18 -76
  6. crypticorn/auth/client/api_client.py +0 -5
  7. crypticorn/auth/client/models/add_wallet_request.py +1 -1
  8. crypticorn/auth/client/models/authorize_user_request.py +1 -1
  9. crypticorn/auth/client/models/create_api_key_request.py +1 -1
  10. crypticorn/auth/client/models/create_user_request.py +1 -1
  11. crypticorn/auth/client/models/get_api_keys200_response_inner.py +1 -1
  12. crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +1 -1
  13. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +1 -1
  14. crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +1 -1
  15. crypticorn/auth/client/models/list_wallets200_response_data_inner.py +1 -1
  16. crypticorn/auth/client/models/logout_default_response.py +1 -1
  17. crypticorn/auth/client/models/oauth_callback200_response_user.py +1 -1
  18. crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +1 -1
  19. crypticorn/auth/client/models/rotate_tokens200_response.py +1 -1
  20. crypticorn/auth/client/models/token_info200_response.py +1 -1
  21. crypticorn/auth/client/models/update_user_request.py +1 -1
  22. crypticorn/auth/client/models/user_by_username200_response.py +1 -1
  23. crypticorn/auth/client/models/verify200_response.py +1 -1
  24. crypticorn/auth/client/models/verify_email200_response_auth.py +1 -1
  25. crypticorn/auth/client/models/verify_email200_response_auth_auth.py +1 -1
  26. crypticorn/auth/client/models/whoami200_response.py +1 -1
  27. crypticorn/cli/init.py +1 -1
  28. crypticorn/cli/templates/.env.docker.temp +3 -0
  29. crypticorn/cli/templates/.env.example.temp +4 -0
  30. crypticorn/cli/templates/Dockerfile +5 -2
  31. crypticorn/client.py +0 -1
  32. crypticorn/common/auth.py +31 -4
  33. crypticorn/common/decorators.py +1 -2
  34. crypticorn/common/enums.py +0 -2
  35. crypticorn/common/errors.py +10 -0
  36. crypticorn/common/metrics.py +1 -1
  37. crypticorn/common/middleware.py +0 -1
  38. crypticorn/common/pagination.py +116 -24
  39. crypticorn/common/router/admin_router.py +1 -11
  40. crypticorn/common/router/status_router.py +33 -2
  41. crypticorn/common/scopes.py +2 -2
  42. crypticorn/common/utils.py +1 -2
  43. crypticorn/dex/__init__.py +6 -0
  44. crypticorn/dex/client/__init__.py +49 -0
  45. crypticorn/dex/client/api/__init__.py +6 -0
  46. crypticorn/dex/client/api/admin_api.py +2983 -0
  47. crypticorn/dex/client/api/signals_api.py +1794 -0
  48. crypticorn/dex/client/api/status_api.py +889 -0
  49. crypticorn/dex/client/api_client.py +753 -0
  50. crypticorn/dex/client/api_response.py +20 -0
  51. crypticorn/dex/client/configuration.py +620 -0
  52. crypticorn/dex/client/exceptions.py +220 -0
  53. crypticorn/dex/client/models/__init__.py +30 -0
  54. crypticorn/dex/client/models/api_error_identifier.py +121 -0
  55. crypticorn/dex/client/models/api_error_level.py +37 -0
  56. crypticorn/dex/client/models/api_error_type.py +37 -0
  57. crypticorn/dex/client/models/exception_detail.py +117 -0
  58. crypticorn/dex/client/models/log_level.py +38 -0
  59. crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
  60. crypticorn/dex/client/models/risk.py +86 -0
  61. crypticorn/dex/client/models/signal_overview_stats.py +156 -0
  62. crypticorn/dex/client/models/signal_volume.py +84 -0
  63. crypticorn/dex/client/models/signal_with_token.py +163 -0
  64. crypticorn/dex/client/models/token_data.py +127 -0
  65. crypticorn/dex/client/models/token_detail.py +116 -0
  66. crypticorn/dex/client/py.typed +0 -0
  67. crypticorn/dex/client/rest.py +217 -0
  68. crypticorn/dex/main.py +1 -0
  69. crypticorn/hive/client/api/admin_api.py +18 -75
  70. crypticorn/hive/client/api/data_api.py +6 -28
  71. crypticorn/hive/client/api/models_api.py +22 -88
  72. crypticorn/hive/client/api/status_api.py +6 -27
  73. crypticorn/hive/client/api_client.py +0 -5
  74. crypticorn/hive/client/models/coin_info.py +1 -1
  75. crypticorn/hive/client/models/exception_detail.py +1 -1
  76. crypticorn/hive/client/models/target_info.py +1 -1
  77. crypticorn/hive/utils.py +2 -2
  78. crypticorn/klines/client/api/admin_api.py +18 -75
  79. crypticorn/klines/client/api/change_in_timeframe_api.py +3 -16
  80. crypticorn/klines/client/api/funding_rates_api.py +3 -16
  81. crypticorn/klines/client/api/ohlcv_data_api.py +3 -16
  82. crypticorn/klines/client/api/status_api.py +6 -27
  83. crypticorn/klines/client/api/symbols_api.py +3 -16
  84. crypticorn/klines/client/api/udf_api.py +18 -74
  85. crypticorn/klines/client/api_client.py +0 -5
  86. crypticorn/klines/client/models/exception_detail.py +1 -1
  87. crypticorn/klines/client/models/ohlcv.py +1 -1
  88. crypticorn/klines/client/models/symbol_group.py +1 -1
  89. crypticorn/klines/client/models/udf_config.py +1 -1
  90. crypticorn/metrics/client/api/admin_api.py +18 -75
  91. crypticorn/metrics/client/api/exchanges_api.py +12 -52
  92. crypticorn/metrics/client/api/indicators_api.py +6 -28
  93. crypticorn/metrics/client/api/logs_api.py +3 -16
  94. crypticorn/metrics/client/api/marketcap_api.py +12 -52
  95. crypticorn/metrics/client/api/markets_api.py +3 -16
  96. crypticorn/metrics/client/api/quote_currencies_api.py +3 -16
  97. crypticorn/metrics/client/api/status_api.py +6 -27
  98. crypticorn/metrics/client/api/tokens_api.py +6 -26
  99. crypticorn/metrics/client/api_client.py +0 -5
  100. crypticorn/metrics/client/models/exception_detail.py +1 -1
  101. crypticorn/metrics/client/models/exchange_mapping.py +1 -1
  102. crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
  103. crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
  104. crypticorn/metrics/client/models/ohlcv.py +1 -1
  105. crypticorn/pay/client/api/admin_api.py +21 -87
  106. crypticorn/pay/client/api/now_payments_api.py +15 -64
  107. crypticorn/pay/client/api/payments_api.py +6 -28
  108. crypticorn/pay/client/api/products_api.py +12 -52
  109. crypticorn/pay/client/api/status_api.py +6 -27
  110. crypticorn/pay/client/api_client.py +0 -5
  111. crypticorn/pay/client/models/exception_detail.py +1 -1
  112. crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
  113. crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
  114. crypticorn/pay/client/models/product.py +1 -1
  115. crypticorn/pay/client/models/product_create.py +1 -1
  116. crypticorn/pay/client/models/product_update.py +1 -1
  117. crypticorn/trade/client/__init__.py +15 -0
  118. crypticorn/trade/client/api/admin_api.py +43 -107
  119. crypticorn/trade/client/api/api_keys_api.py +207 -184
  120. crypticorn/trade/client/api/bots_api.py +6557 -240
  121. crypticorn/trade/client/api/exchanges_api.py +9 -36
  122. crypticorn/trade/client/api/notifications_api.py +18 -72
  123. crypticorn/trade/client/api/orders_api.py +220 -115
  124. crypticorn/trade/client/api/status_api.py +6 -24
  125. crypticorn/trade/client/api/strategies_api.py +15 -60
  126. crypticorn/trade/client/api/trading_actions_api.py +431 -112
  127. crypticorn/trade/client/models/__init__.py +15 -0
  128. crypticorn/trade/client/models/bot.py +7 -18
  129. crypticorn/trade/client/models/bot_create.py +17 -1
  130. crypticorn/trade/client/models/bot_update.py +17 -1
  131. crypticorn/trade/client/models/exchange_key_create.py +17 -1
  132. crypticorn/trade/client/models/exchange_key_update.py +17 -1
  133. crypticorn/trade/client/models/notification.py +17 -1
  134. crypticorn/trade/client/models/notification_create.py +17 -1
  135. crypticorn/trade/client/models/notification_update.py +17 -1
  136. crypticorn/trade/client/models/orders_count.py +88 -0
  137. crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
  138. crypticorn/trade/client/models/paginated_response_order.py +134 -0
  139. crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action.py +141 -0
  140. crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action_data_inner.py +165 -0
  141. crypticorn/trade/client/models/pn_l.py +95 -0
  142. crypticorn/trade/client/models/spot_trading_action.py +207 -0
  143. crypticorn/trade/client/models/strategy.py +17 -1
  144. crypticorn/trade/client/models/strategy_create.py +17 -1
  145. crypticorn/trade/client/models/strategy_update.py +17 -1
  146. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/METADATA +3 -3
  147. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/RECORD +151 -116
  148. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/WHEEL +0 -0
  149. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/entry_points.txt +0 -0
  150. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/licenses/LICENSE +0 -0
  151. {crypticorn-2.17.0rc4.dist-info → crypticorn-2.17.0rc6.dist-info}/top_level.txt +0 -0
@@ -75,10 +75,7 @@ class StrategiesApi:
75
75
  _headers: Optional[Dict[StrictStr, Any]] = None,
76
76
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
77
77
  ) -> Strategy:
78
- """Create Strategy
79
-
80
- This method can work in both sync and async modes based on the is_sync flag.
81
- """
78
+ """Create Strategy"""
82
79
  if self.is_sync:
83
80
  return self._create_strategy_sync(
84
81
  strategy_create=strategy_create,
@@ -115,10 +112,7 @@ class StrategiesApi:
115
112
  _headers: Optional[Dict[StrictStr, Any]] = None,
116
113
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
117
114
  ) -> ApiResponse[Strategy]:
118
- """Create Strategy with HTTP info
119
-
120
- This method can work in both sync and async modes based on the is_sync flag.
121
- """
115
+ """Create Strategy with HTTP info"""
122
116
  if self.is_sync:
123
117
  return self._create_strategy_sync_with_http_info(
124
118
  strategy_create=strategy_create,
@@ -155,10 +149,7 @@ class StrategiesApi:
155
149
  _headers: Optional[Dict[StrictStr, Any]] = None,
156
150
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
157
151
  ) -> RESTResponseType:
158
- """Create Strategy without preloading content
159
-
160
- This method can work in both sync and async modes based on the is_sync flag.
161
- """
152
+ """Create Strategy without preloading content"""
162
153
  if self.is_sync:
163
154
  return self._create_strategy_sync_without_preload_content(
164
155
  strategy_create=strategy_create,
@@ -537,10 +528,7 @@ class StrategiesApi:
537
528
  _headers: Optional[Dict[StrictStr, Any]] = None,
538
529
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
539
530
  ) -> List[Strategy]:
540
- """Get Strategies
541
-
542
- This method can work in both sync and async modes based on the is_sync flag.
543
- """
531
+ """Get Strategies"""
544
532
  if self.is_sync:
545
533
  return self._get_strategies_sync(
546
534
  limit=limit,
@@ -590,10 +578,7 @@ class StrategiesApi:
590
578
  _headers: Optional[Dict[StrictStr, Any]] = None,
591
579
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
592
580
  ) -> ApiResponse[List[Strategy]]:
593
- """Get Strategies with HTTP info
594
-
595
- This method can work in both sync and async modes based on the is_sync flag.
596
- """
581
+ """Get Strategies with HTTP info"""
597
582
  if self.is_sync:
598
583
  return self._get_strategies_sync_with_http_info(
599
584
  limit=limit,
@@ -643,10 +628,7 @@ class StrategiesApi:
643
628
  _headers: Optional[Dict[StrictStr, Any]] = None,
644
629
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
645
630
  ) -> RESTResponseType:
646
- """Get Strategies without preloading content
647
-
648
- This method can work in both sync and async modes based on the is_sync flag.
649
- """
631
+ """Get Strategies without preloading content"""
650
632
  if self.is_sync:
651
633
  return self._get_strategies_sync_without_preload_content(
652
634
  limit=limit,
@@ -1090,10 +1072,7 @@ class StrategiesApi:
1090
1072
  _headers: Optional[Dict[StrictStr, Any]] = None,
1091
1073
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1092
1074
  ) -> List[List[object]]:
1093
- """Get Strategy Usage
1094
-
1095
- This method can work in both sync and async modes based on the is_sync flag.
1096
- """
1075
+ """Get Strategy Usage"""
1097
1076
  if self.is_sync:
1098
1077
  return self._get_strategy_usage_sync(
1099
1078
  _request_timeout=_request_timeout,
@@ -1127,10 +1106,7 @@ class StrategiesApi:
1127
1106
  _headers: Optional[Dict[StrictStr, Any]] = None,
1128
1107
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1129
1108
  ) -> ApiResponse[List[List[object]]]:
1130
- """Get Strategy Usage with HTTP info
1131
-
1132
- This method can work in both sync and async modes based on the is_sync flag.
1133
- """
1109
+ """Get Strategy Usage with HTTP info"""
1134
1110
  if self.is_sync:
1135
1111
  return self._get_strategy_usage_sync_with_http_info(
1136
1112
  _request_timeout=_request_timeout,
@@ -1164,10 +1140,7 @@ class StrategiesApi:
1164
1140
  _headers: Optional[Dict[StrictStr, Any]] = None,
1165
1141
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1166
1142
  ) -> RESTResponseType:
1167
- """Get Strategy Usage without preloading content
1168
-
1169
- This method can work in both sync and async modes based on the is_sync flag.
1170
- """
1143
+ """Get Strategy Usage without preloading content"""
1171
1144
  if self.is_sync:
1172
1145
  return self._get_strategy_usage_sync_without_preload_content(
1173
1146
  _request_timeout=_request_timeout,
@@ -1502,10 +1475,7 @@ class StrategiesApi:
1502
1475
  _headers: Optional[Dict[StrictStr, Any]] = None,
1503
1476
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1504
1477
  ) -> None:
1505
- """Kill Strategy
1506
-
1507
- This method can work in both sync and async modes based on the is_sync flag.
1508
- """
1478
+ """Kill Strategy"""
1509
1479
  if self.is_sync:
1510
1480
  return self._kill_strategy_sync(
1511
1481
  id=id,
@@ -1542,10 +1512,7 @@ class StrategiesApi:
1542
1512
  _headers: Optional[Dict[StrictStr, Any]] = None,
1543
1513
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1544
1514
  ) -> ApiResponse[None]:
1545
- """Kill Strategy with HTTP info
1546
-
1547
- This method can work in both sync and async modes based on the is_sync flag.
1548
- """
1515
+ """Kill Strategy with HTTP info"""
1549
1516
  if self.is_sync:
1550
1517
  return self._kill_strategy_sync_with_http_info(
1551
1518
  id=id,
@@ -1582,10 +1549,7 @@ class StrategiesApi:
1582
1549
  _headers: Optional[Dict[StrictStr, Any]] = None,
1583
1550
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1584
1551
  ) -> RESTResponseType:
1585
- """Kill Strategy without preloading content
1586
-
1587
- This method can work in both sync and async modes based on the is_sync flag.
1588
- """
1552
+ """Kill Strategy without preloading content"""
1589
1553
  if self.is_sync:
1590
1554
  return self._kill_strategy_sync_without_preload_content(
1591
1555
  id=id,
@@ -1946,10 +1910,7 @@ class StrategiesApi:
1946
1910
  _headers: Optional[Dict[StrictStr, Any]] = None,
1947
1911
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1948
1912
  ) -> Strategy:
1949
- """Update Strategy
1950
-
1951
- This method can work in both sync and async modes based on the is_sync flag.
1952
- """
1913
+ """Update Strategy"""
1953
1914
  if self.is_sync:
1954
1915
  return self._update_strategy_sync(
1955
1916
  id=id,
@@ -1991,10 +1952,7 @@ class StrategiesApi:
1991
1952
  _headers: Optional[Dict[StrictStr, Any]] = None,
1992
1953
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1993
1954
  ) -> ApiResponse[Strategy]:
1994
- """Update Strategy with HTTP info
1995
-
1996
- This method can work in both sync and async modes based on the is_sync flag.
1997
- """
1955
+ """Update Strategy with HTTP info"""
1998
1956
  if self.is_sync:
1999
1957
  return self._update_strategy_sync_with_http_info(
2000
1958
  id=id,
@@ -2036,10 +1994,7 @@ class StrategiesApi:
2036
1994
  _headers: Optional[Dict[StrictStr, Any]] = None,
2037
1995
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2038
1996
  ) -> RESTResponseType:
2039
- """Update Strategy without preloading content
2040
-
2041
- This method can work in both sync and async modes based on the is_sync flag.
2042
- """
1997
+ """Update Strategy without preloading content"""
2043
1998
  if self.is_sync:
2044
1999
  return self._update_strategy_sync_without_preload_content(
2045
2000
  id=id,