crypticorn 2.5.2__py3-none-any.whl → 2.6.0__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 (102) hide show
  1. crypticorn/auth/client/__init__.py +9 -0
  2. crypticorn/auth/client/api/auth_api.py +8 -5
  3. crypticorn/auth/client/api/user_api.py +247 -0
  4. crypticorn/auth/client/models/__init__.py +9 -0
  5. crypticorn/auth/client/models/create_api_key_request.py +2 -1
  6. crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
  7. crypticorn/{hive/client/models/http_validation_error.py → auth/client/models/user_by_username200_response.py} +14 -22
  8. crypticorn/auth/client/models/verify200_response.py +14 -1
  9. crypticorn/auth/client/models/verify_email200_response_auth_auth.py +14 -1
  10. crypticorn/auth/client/models/whoami200_response.py +6 -1
  11. crypticorn/cli/init.py +3 -0
  12. crypticorn/common/__init__.py +2 -1
  13. crypticorn/common/auth.py +13 -9
  14. crypticorn/common/errors.py +312 -105
  15. crypticorn/common/exceptions.py +38 -4
  16. crypticorn/common/mixins.py +19 -0
  17. crypticorn/common/pagination.py +49 -0
  18. crypticorn/common/scopes.py +27 -24
  19. crypticorn/common/status_router.py +9 -7
  20. crypticorn/common/utils.py +12 -6
  21. crypticorn/hive/client/__init__.py +3 -5
  22. crypticorn/hive/client/api/data_api.py +1 -33
  23. crypticorn/hive/client/api/models_api.py +351 -160
  24. crypticorn/hive/client/api/status_api.py +481 -9
  25. crypticorn/hive/client/configuration.py +12 -4
  26. crypticorn/hive/client/models/__init__.py +3 -5
  27. crypticorn/hive/client/models/coins.py +0 -1
  28. crypticorn/hive/client/models/data_info.py +44 -12
  29. crypticorn/hive/client/models/data_version.py +0 -1
  30. crypticorn/{pay/client/models/now_api_status_res.py → hive/client/models/data_version_info.py} +17 -11
  31. crypticorn/hive/client/models/exception_detail.py +114 -0
  32. crypticorn/hive/client/models/model.py +2 -3
  33. crypticorn/hive/client/models/{validation_error.py → target_info.py} +14 -25
  34. crypticorn/hive/client/rest.py +4 -1
  35. crypticorn/klines/client/api/status_api.py +481 -6
  36. crypticorn/klines/client/api/udf_api.py +0 -227
  37. crypticorn/metrics/client/api/status_api.py +476 -1
  38. crypticorn/pay/client/__init__.py +3 -8
  39. crypticorn/pay/client/api/now_payments_api.py +14 -17
  40. crypticorn/pay/client/api/payments_api.py +2 -11
  41. crypticorn/pay/client/api/products_api.py +2 -11
  42. crypticorn/pay/client/api/status_api.py +483 -8
  43. crypticorn/pay/client/api_client.py +2 -2
  44. crypticorn/pay/client/configuration.py +3 -3
  45. crypticorn/pay/client/exceptions.py +2 -2
  46. crypticorn/pay/client/models/__init__.py +3 -8
  47. crypticorn/pay/client/models/{validation_error.py → exception_detail.py} +37 -28
  48. crypticorn/pay/client/models/now_create_invoice_req.py +2 -2
  49. crypticorn/pay/client/models/now_create_invoice_res.py +2 -2
  50. crypticorn/pay/client/models/payment.py +2 -2
  51. crypticorn/pay/client/models/payment_status.py +2 -2
  52. crypticorn/pay/client/models/product_create.py +2 -2
  53. crypticorn/pay/client/models/product_read.py +2 -2
  54. crypticorn/pay/client/models/product_sub_read.py +2 -2
  55. crypticorn/pay/client/models/product_update.py +2 -2
  56. crypticorn/pay/client/models/scope.py +2 -2
  57. crypticorn/pay/client/models/services.py +2 -2
  58. crypticorn/pay/client/rest.py +2 -2
  59. crypticorn/trade/client/__init__.py +3 -7
  60. crypticorn/trade/client/api/api_keys_api.py +5 -20
  61. crypticorn/trade/client/api/bots_api.py +7 -19
  62. crypticorn/trade/client/api/exchanges_api.py +2 -2
  63. crypticorn/trade/client/api/futures_trading_panel_api.py +10 -22
  64. crypticorn/trade/client/api/notifications_api.py +10 -25
  65. crypticorn/trade/client/api/orders_api.py +2 -5
  66. crypticorn/trade/client/api/status_api.py +483 -8
  67. crypticorn/trade/client/api/strategies_api.py +5 -17
  68. crypticorn/trade/client/api/trading_actions_api.py +2 -11
  69. crypticorn/trade/client/api_client.py +2 -2
  70. crypticorn/trade/client/configuration.py +3 -3
  71. crypticorn/trade/client/exceptions.py +2 -2
  72. crypticorn/trade/client/models/__init__.py +3 -7
  73. crypticorn/trade/client/models/action_model.py +2 -2
  74. crypticorn/trade/client/models/bot_model.py +2 -2
  75. crypticorn/trade/client/models/bot_status.py +2 -2
  76. crypticorn/trade/client/models/{validation_error.py → exception_detail.py} +37 -28
  77. crypticorn/trade/client/models/exchange_key_model.py +2 -2
  78. crypticorn/trade/client/models/execution_ids.py +2 -2
  79. crypticorn/trade/client/models/futures_balance.py +2 -2
  80. crypticorn/trade/client/models/futures_trading_action.py +2 -2
  81. crypticorn/trade/client/models/margin_mode.py +2 -2
  82. crypticorn/trade/client/models/notification_model.py +2 -2
  83. crypticorn/trade/client/models/order_model.py +2 -2
  84. crypticorn/trade/client/models/order_status.py +2 -2
  85. crypticorn/trade/client/models/post_futures_action.py +2 -2
  86. crypticorn/trade/client/models/spot_trading_action.py +2 -2
  87. crypticorn/trade/client/models/strategy_exchange_info.py +2 -2
  88. crypticorn/trade/client/models/strategy_model_input.py +2 -2
  89. crypticorn/trade/client/models/strategy_model_output.py +2 -2
  90. crypticorn/trade/client/models/tpsl.py +2 -2
  91. crypticorn/trade/client/models/trading_action_type.py +2 -2
  92. crypticorn/trade/client/rest.py +2 -2
  93. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/METADATA +1 -1
  94. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/RECORD +97 -100
  95. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/WHEEL +1 -1
  96. crypticorn/hive/client/models/validation_error_loc_inner.py +0 -159
  97. crypticorn/pay/client/models/http_validation_error.py +0 -99
  98. crypticorn/pay/client/models/validation_error_loc_inner.py +0 -159
  99. crypticorn/trade/client/models/http_validation_error.py +0 -99
  100. crypticorn/trade/client/models/validation_error_loc_inner.py +0 -159
  101. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/entry_points.txt +0 -0
  102. {crypticorn-2.5.2.dist-info → crypticorn-2.6.0.dist-info}/top_level.txt +0 -0
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Trading API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for automated trading and exchange interface
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -54,7 +54,7 @@ class FuturesTradingPanelApi:
54
54
  _content_type: Optional[StrictStr] = None,
55
55
  _headers: Optional[Dict[StrictStr, Any]] = None,
56
56
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
- ) -> object:
57
+ ) -> None:
58
58
  """Cancel Order
59
59
 
60
60
 
@@ -97,8 +97,7 @@ class FuturesTradingPanelApi:
97
97
  )
98
98
 
99
99
  _response_types_map: Dict[str, Optional[str]] = {
100
- "200": "object",
101
- "422": "HTTPValidationError",
100
+ "204": None,
102
101
  }
103
102
  response_data = await self.api_client.call_api(
104
103
  *_param, _request_timeout=_request_timeout
@@ -126,7 +125,7 @@ class FuturesTradingPanelApi:
126
125
  _content_type: Optional[StrictStr] = None,
127
126
  _headers: Optional[Dict[StrictStr, Any]] = None,
128
127
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
129
- ) -> ApiResponse[object]:
128
+ ) -> ApiResponse[None]:
130
129
  """Cancel Order
131
130
 
132
131
 
@@ -169,8 +168,7 @@ class FuturesTradingPanelApi:
169
168
  )
170
169
 
171
170
  _response_types_map: Dict[str, Optional[str]] = {
172
- "200": "object",
173
- "422": "HTTPValidationError",
171
+ "204": None,
174
172
  }
175
173
  response_data = await self.api_client.call_api(
176
174
  *_param, _request_timeout=_request_timeout
@@ -241,8 +239,7 @@ class FuturesTradingPanelApi:
241
239
  )
242
240
 
243
241
  _response_types_map: Dict[str, Optional[str]] = {
244
- "200": "object",
245
- "422": "HTTPValidationError",
242
+ "204": None,
246
243
  }
247
244
  response_data = await self.api_client.call_api(
248
245
  *_param, _request_timeout=_request_timeout
@@ -592,7 +589,6 @@ class FuturesTradingPanelApi:
592
589
 
593
590
  _response_types_map: Dict[str, Optional[str]] = {
594
591
  "200": "object",
595
- "422": "HTTPValidationError",
596
592
  }
597
593
  response_data = await self.api_client.call_api(
598
594
  *_param, _request_timeout=_request_timeout
@@ -656,7 +652,6 @@ class FuturesTradingPanelApi:
656
652
 
657
653
  _response_types_map: Dict[str, Optional[str]] = {
658
654
  "200": "object",
659
- "422": "HTTPValidationError",
660
655
  }
661
656
  response_data = await self.api_client.call_api(
662
657
  *_param, _request_timeout=_request_timeout
@@ -720,7 +715,6 @@ class FuturesTradingPanelApi:
720
715
 
721
716
  _response_types_map: Dict[str, Optional[str]] = {
722
717
  "200": "object",
723
- "422": "HTTPValidationError",
724
718
  }
725
719
  response_data = await self.api_client.call_api(
726
720
  *_param, _request_timeout=_request_timeout
@@ -836,7 +830,6 @@ class FuturesTradingPanelApi:
836
830
 
837
831
  _response_types_map: Dict[str, Optional[str]] = {
838
832
  "200": "object",
839
- "422": "HTTPValidationError",
840
833
  }
841
834
  response_data = await self.api_client.call_api(
842
835
  *_param, _request_timeout=_request_timeout
@@ -900,7 +893,6 @@ class FuturesTradingPanelApi:
900
893
 
901
894
  _response_types_map: Dict[str, Optional[str]] = {
902
895
  "200": "object",
903
- "422": "HTTPValidationError",
904
896
  }
905
897
  response_data = await self.api_client.call_api(
906
898
  *_param, _request_timeout=_request_timeout
@@ -964,7 +956,6 @@ class FuturesTradingPanelApi:
964
956
 
965
957
  _response_types_map: Dict[str, Optional[str]] = {
966
958
  "200": "object",
967
- "422": "HTTPValidationError",
968
959
  }
969
960
  response_data = await self.api_client.call_api(
970
961
  *_param, _request_timeout=_request_timeout
@@ -1083,8 +1074,7 @@ class FuturesTradingPanelApi:
1083
1074
  )
1084
1075
 
1085
1076
  _response_types_map: Dict[str, Optional[str]] = {
1086
- "200": "object",
1087
- "422": "HTTPValidationError",
1077
+ "201": "object",
1088
1078
  }
1089
1079
  response_data = await self.api_client.call_api(
1090
1080
  *_param, _request_timeout=_request_timeout
@@ -1151,8 +1141,7 @@ class FuturesTradingPanelApi:
1151
1141
  )
1152
1142
 
1153
1143
  _response_types_map: Dict[str, Optional[str]] = {
1154
- "200": "object",
1155
- "422": "HTTPValidationError",
1144
+ "201": "object",
1156
1145
  }
1157
1146
  response_data = await self.api_client.call_api(
1158
1147
  *_param, _request_timeout=_request_timeout
@@ -1219,8 +1208,7 @@ class FuturesTradingPanelApi:
1219
1208
  )
1220
1209
 
1221
1210
  _response_types_map: Dict[str, Optional[str]] = {
1222
- "200": "object",
1223
- "422": "HTTPValidationError",
1211
+ "201": "object",
1224
1212
  }
1225
1213
  response_data = await self.api_client.call_api(
1226
1214
  *_param, _request_timeout=_request_timeout
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Trading API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for automated trading and exchange interface
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -90,8 +90,7 @@ class NotificationsApi:
90
90
  )
91
91
 
92
92
  _response_types_map: Dict[str, Optional[str]] = {
93
- "200": "object",
94
- "422": "HTTPValidationError",
93
+ "201": "object",
95
94
  }
96
95
  response_data = await self.api_client.call_api(
97
96
  *_param, _request_timeout=_request_timeout
@@ -155,8 +154,7 @@ class NotificationsApi:
155
154
  )
156
155
 
157
156
  _response_types_map: Dict[str, Optional[str]] = {
158
- "200": "object",
159
- "422": "HTTPValidationError",
157
+ "201": "object",
160
158
  }
161
159
  response_data = await self.api_client.call_api(
162
160
  *_param, _request_timeout=_request_timeout
@@ -220,8 +218,7 @@ class NotificationsApi:
220
218
  )
221
219
 
222
220
  _response_types_map: Dict[str, Optional[str]] = {
223
- "200": "object",
224
- "422": "HTTPValidationError",
221
+ "201": "object",
225
222
  }
226
223
  response_data = await self.api_client.call_api(
227
224
  *_param, _request_timeout=_request_timeout
@@ -307,7 +304,7 @@ class NotificationsApi:
307
304
  _content_type: Optional[StrictStr] = None,
308
305
  _headers: Optional[Dict[StrictStr, Any]] = None,
309
306
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
310
- ) -> object:
307
+ ) -> None:
311
308
  """Delete Notification
312
309
 
313
310
 
@@ -344,8 +341,7 @@ class NotificationsApi:
344
341
  )
345
342
 
346
343
  _response_types_map: Dict[str, Optional[str]] = {
347
- "200": "object",
348
- "422": "HTTPValidationError",
344
+ "204": None,
349
345
  }
350
346
  response_data = await self.api_client.call_api(
351
347
  *_param, _request_timeout=_request_timeout
@@ -371,7 +367,7 @@ class NotificationsApi:
371
367
  _content_type: Optional[StrictStr] = None,
372
368
  _headers: Optional[Dict[StrictStr, Any]] = None,
373
369
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
374
- ) -> ApiResponse[object]:
370
+ ) -> ApiResponse[None]:
375
371
  """Delete Notification
376
372
 
377
373
 
@@ -408,8 +404,7 @@ class NotificationsApi:
408
404
  )
409
405
 
410
406
  _response_types_map: Dict[str, Optional[str]] = {
411
- "200": "object",
412
- "422": "HTTPValidationError",
407
+ "204": None,
413
408
  }
414
409
  response_data = await self.api_client.call_api(
415
410
  *_param, _request_timeout=_request_timeout
@@ -472,8 +467,7 @@ class NotificationsApi:
472
467
  )
473
468
 
474
469
  _response_types_map: Dict[str, Optional[str]] = {
475
- "200": "object",
476
- "422": "HTTPValidationError",
470
+ "204": None,
477
471
  }
478
472
  response_data = await self.api_client.call_api(
479
473
  *_param, _request_timeout=_request_timeout
@@ -819,7 +813,6 @@ class NotificationsApi:
819
813
 
820
814
  _response_types_map: Dict[str, Optional[str]] = {
821
815
  "200": "List[NotificationModel]",
822
- "422": "HTTPValidationError",
823
816
  }
824
817
  response_data = await self.api_client.call_api(
825
818
  *_param, _request_timeout=_request_timeout
@@ -888,7 +881,6 @@ class NotificationsApi:
888
881
 
889
882
  _response_types_map: Dict[str, Optional[str]] = {
890
883
  "200": "List[NotificationModel]",
891
- "422": "HTTPValidationError",
892
884
  }
893
885
  response_data = await self.api_client.call_api(
894
886
  *_param, _request_timeout=_request_timeout
@@ -957,7 +949,6 @@ class NotificationsApi:
957
949
 
958
950
  _response_types_map: Dict[str, Optional[str]] = {
959
951
  "200": "List[NotificationModel]",
960
- "422": "HTTPValidationError",
961
952
  }
962
953
  response_data = await self.api_client.call_api(
963
954
  *_param, _request_timeout=_request_timeout
@@ -1087,7 +1078,6 @@ class NotificationsApi:
1087
1078
 
1088
1079
  _response_types_map: Dict[str, Optional[str]] = {
1089
1080
  "200": "object",
1090
- "422": "HTTPValidationError",
1091
1081
  }
1092
1082
  response_data = await self.api_client.call_api(
1093
1083
  *_param, _request_timeout=_request_timeout
@@ -1160,7 +1150,6 @@ class NotificationsApi:
1160
1150
 
1161
1151
  _response_types_map: Dict[str, Optional[str]] = {
1162
1152
  "200": "object",
1163
- "422": "HTTPValidationError",
1164
1153
  }
1165
1154
  response_data = await self.api_client.call_api(
1166
1155
  *_param, _request_timeout=_request_timeout
@@ -1233,7 +1222,6 @@ class NotificationsApi:
1233
1222
 
1234
1223
  _response_types_map: Dict[str, Optional[str]] = {
1235
1224
  "200": "object",
1236
- "422": "HTTPValidationError",
1237
1225
  }
1238
1226
  response_data = await self.api_client.call_api(
1239
1227
  *_param, _request_timeout=_request_timeout
@@ -1362,7 +1350,6 @@ class NotificationsApi:
1362
1350
 
1363
1351
  _response_types_map: Dict[str, Optional[str]] = {
1364
1352
  "200": "object",
1365
- "422": "HTTPValidationError",
1366
1353
  }
1367
1354
  response_data = await self.api_client.call_api(
1368
1355
  *_param, _request_timeout=_request_timeout
@@ -1431,7 +1418,6 @@ class NotificationsApi:
1431
1418
 
1432
1419
  _response_types_map: Dict[str, Optional[str]] = {
1433
1420
  "200": "object",
1434
- "422": "HTTPValidationError",
1435
1421
  }
1436
1422
  response_data = await self.api_client.call_api(
1437
1423
  *_param, _request_timeout=_request_timeout
@@ -1500,7 +1486,6 @@ class NotificationsApi:
1500
1486
 
1501
1487
  _response_types_map: Dict[str, Optional[str]] = {
1502
1488
  "200": "object",
1503
- "422": "HTTPValidationError",
1504
1489
  }
1505
1490
  response_data = await self.api_client.call_api(
1506
1491
  *_param, _request_timeout=_request_timeout
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Trading API
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ API for automated trading and exchange interface
7
7
 
8
- The version of the OpenAPI document: 0.1.0
8
+ The version of the OpenAPI document: 1.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -94,7 +94,6 @@ class OrdersApi:
94
94
 
95
95
  _response_types_map: Dict[str, Optional[str]] = {
96
96
  "200": "List[OrderModel]",
97
- "422": "HTTPValidationError",
98
97
  }
99
98
  response_data = await self.api_client.call_api(
100
99
  *_param, _request_timeout=_request_timeout
@@ -162,7 +161,6 @@ class OrdersApi:
162
161
 
163
162
  _response_types_map: Dict[str, Optional[str]] = {
164
163
  "200": "List[OrderModel]",
165
- "422": "HTTPValidationError",
166
164
  }
167
165
  response_data = await self.api_client.call_api(
168
166
  *_param, _request_timeout=_request_timeout
@@ -230,7 +228,6 @@ class OrdersApi:
230
228
 
231
229
  _response_types_map: Dict[str, Optional[str]] = {
232
230
  "200": "List[OrderModel]",
233
- "422": "HTTPValidationError",
234
231
  }
235
232
  response_data = await self.api_client.call_api(
236
233
  *_param, _request_timeout=_request_timeout