crypticorn 1.0.2rc3__py3-none-any.whl → 2.0.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.
- crypticorn/__init__.py +3 -3
- crypticorn/auth/__init__.py +2 -0
- crypticorn/auth/client/__init__.py +112 -0
- crypticorn/auth/client/api/__init__.py +8 -0
- crypticorn/auth/client/api/admin_api.py +522 -0
- crypticorn/auth/client/api/auth_api.py +2089 -0
- crypticorn/auth/client/api/service_api.py +309 -0
- crypticorn/auth/client/api/user_api.py +2540 -0
- crypticorn/auth/client/api/wallet_api.py +1698 -0
- crypticorn/auth/client/api_client.py +758 -0
- crypticorn/auth/client/api_response.py +20 -0
- crypticorn/auth/client/configuration.py +584 -0
- crypticorn/auth/client/exceptions.py +220 -0
- crypticorn/auth/client/models/__init__.py +91 -0
- crypticorn/auth/client/models/add_wallet200_response.py +86 -0
- crypticorn/auth/client/models/add_wallet_request.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response.py +107 -0
- crypticorn/auth/client/models/authorize_user200_response_auth.py +101 -0
- crypticorn/auth/client/models/authorize_user_request.py +96 -0
- crypticorn/auth/client/models/create_user_request.py +114 -0
- crypticorn/auth/client/models/list_wallets200_response.py +137 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +115 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +168 -0
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +191 -0
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +102 -0
- crypticorn/auth/client/models/list_wallets200_response_user_value.py +118 -0
- crypticorn/auth/client/models/logout_default_response.py +108 -0
- crypticorn/auth/client/models/logout_default_response_issues_inner.py +83 -0
- crypticorn/auth/client/models/refresh_token_info200_response.py +97 -0
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +105 -0
- crypticorn/auth/client/models/resend_verification_email_request.py +84 -0
- crypticorn/auth/client/models/revoke_user_tokens_request.py +83 -0
- crypticorn/auth/client/models/rotate_tokens200_response.py +110 -0
- crypticorn/auth/client/models/token_info200_response.py +97 -0
- crypticorn/auth/client/models/unlink_wallet_request.py +83 -0
- crypticorn/auth/client/models/update_user_request.py +93 -0
- crypticorn/auth/client/models/user_reset_password_request.py +87 -0
- crypticorn/auth/client/models/user_set_password_request.py +89 -0
- crypticorn/auth/client/models/verify200_response.py +110 -0
- crypticorn/auth/client/models/verify_email200_response.py +107 -0
- crypticorn/auth/client/models/verify_email200_response_auth.py +101 -0
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +110 -0
- crypticorn/auth/client/models/verify_email_request.py +83 -0
- crypticorn/auth/client/models/verify_wallet_request.py +91 -0
- crypticorn/auth/client/models/wallet_verified200_response.py +83 -0
- crypticorn/auth/client/models/whoami200_response.py +104 -0
- crypticorn/auth/client/rest.py +195 -0
- crypticorn/auth/main.py +45 -0
- crypticorn/client.py +46 -8
- crypticorn/common/__init__.py +5 -0
- crypticorn/common/auth.py +43 -0
- crypticorn/common/auth_client.py +163 -0
- crypticorn/common/errors.py +432 -0
- crypticorn/common/scopes.py +29 -0
- crypticorn/common/urls.py +25 -0
- crypticorn/hive/__init__.py +2 -1
- crypticorn/hive/client/__init__.py +57 -0
- crypticorn/hive/client/api/__init__.py +6 -0
- crypticorn/hive/client/api/data_api.py +594 -0
- crypticorn/hive/client/api/models_api.py +1680 -0
- crypticorn/hive/client/api/status_api.py +263 -0
- crypticorn/hive/client/api_client.py +758 -0
- crypticorn/hive/client/api_response.py +20 -0
- crypticorn/hive/client/configuration.py +612 -0
- crypticorn/hive/client/exceptions.py +220 -0
- crypticorn/hive/client/models/__init__.py +38 -0
- crypticorn/hive/client/models/coins.py +44 -0
- crypticorn/hive/client/models/data_download_response.py +113 -0
- crypticorn/hive/client/models/data_info.py +115 -0
- crypticorn/hive/client/models/data_value_value_value_inner.py +154 -0
- crypticorn/hive/client/models/data_version.py +35 -0
- crypticorn/hive/client/models/download_links.py +91 -0
- crypticorn/hive/client/models/evaluation.py +86 -0
- crypticorn/hive/client/models/evaluation_response.py +85 -0
- crypticorn/hive/client/models/feature_size.py +36 -0
- crypticorn/hive/client/models/http_validation_error.py +99 -0
- crypticorn/hive/client/models/model.py +133 -0
- crypticorn/hive/client/models/model_create.py +93 -0
- crypticorn/hive/client/models/model_status.py +35 -0
- crypticorn/hive/client/models/model_update.py +83 -0
- crypticorn/hive/client/models/target.py +36 -0
- crypticorn/hive/client/models/target_type.py +35 -0
- crypticorn/hive/client/models/validation_error.py +105 -0
- crypticorn/hive/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/hive/client/py.typed +0 -0
- crypticorn/hive/client/rest.py +195 -0
- crypticorn/hive/main.py +27 -100
- crypticorn/klines/client/__init__.py +21 -7
- crypticorn/klines/client/api/__init__.py +0 -1
- crypticorn/klines/client/api/funding_rates_api.py +90 -79
- crypticorn/klines/client/api/health_check_api.py +29 -45
- crypticorn/klines/client/api/ohlcv_data_api.py +104 -87
- crypticorn/klines/client/api/symbols_api.py +36 -54
- crypticorn/klines/client/api/udf_api.py +228 -352
- crypticorn/klines/client/api_client.py +106 -148
- crypticorn/klines/client/api_response.py +2 -3
- crypticorn/klines/client/configuration.py +64 -50
- crypticorn/klines/client/exceptions.py +20 -16
- crypticorn/klines/client/models/__init__.py +21 -7
- crypticorn/klines/client/models/base_response_health_check_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_funding_rate_response.py +21 -15
- crypticorn/klines/client/models/base_response_list_str.py +16 -14
- crypticorn/klines/client/models/base_response_ohlcv_response.py +21 -15
- crypticorn/klines/client/models/error_response.py +23 -15
- crypticorn/klines/client/models/exchange.py +11 -11
- crypticorn/klines/client/models/funding_rate_response.py +11 -11
- crypticorn/klines/client/models/health_check_response.py +14 -12
- crypticorn/klines/client/models/history_error_response.py +11 -11
- crypticorn/klines/client/models/history_no_data_response.py +16 -16
- crypticorn/klines/client/models/history_success_response.py +16 -16
- crypticorn/klines/client/models/http_validation_error.py +14 -10
- crypticorn/klines/client/models/market.py +2 -4
- crypticorn/klines/client/models/ohlcv_response.py +22 -15
- crypticorn/klines/client/models/resolution.py +5 -7
- crypticorn/klines/client/models/response_get_history_udf_history_get.py +71 -22
- crypticorn/klines/client/models/search_symbol_response.py +22 -15
- crypticorn/klines/client/models/sort_direction.py +2 -4
- crypticorn/klines/client/models/symbol_group_response.py +5 -9
- crypticorn/klines/client/models/symbol_info_response.py +40 -24
- crypticorn/klines/client/models/symbol_type.py +5 -10
- crypticorn/klines/client/models/timeframe.py +5 -7
- crypticorn/klines/client/models/udf_config_response.py +60 -21
- crypticorn/klines/client/models/validation_error.py +19 -13
- crypticorn/klines/client/models/validation_error_loc_inner.py +32 -11
- crypticorn/klines/client/rest.py +30 -41
- crypticorn/klines/main.py +52 -15
- crypticorn/pay/__init__.py +2 -0
- crypticorn/pay/client/__init__.py +52 -0
- crypticorn/pay/client/api/__init__.py +7 -0
- crypticorn/pay/client/api/now_payments_api.py +813 -0
- crypticorn/pay/client/api/payments_api.py +799 -0
- crypticorn/pay/client/api/products_api.py +891 -0
- crypticorn/pay/client/api/status_api.py +260 -0
- crypticorn/pay/client/api_client.py +758 -0
- crypticorn/pay/client/api_response.py +20 -0
- crypticorn/pay/client/configuration.py +612 -0
- crypticorn/pay/client/exceptions.py +220 -0
- crypticorn/pay/client/models/__init__.py +32 -0
- crypticorn/pay/client/models/api_status_res.py +83 -0
- crypticorn/pay/client/models/combined_payment_history.py +101 -0
- crypticorn/pay/client/models/create_invoice_req.py +188 -0
- crypticorn/pay/client/models/create_invoice_res.py +188 -0
- crypticorn/pay/client/models/currency.py +165 -0
- crypticorn/pay/client/models/estimate_price_req.py +91 -0
- crypticorn/pay/client/models/estimate_price_res.py +102 -0
- crypticorn/pay/client/models/get_currencies_res.py +99 -0
- crypticorn/pay/client/models/get_payment_status_res.py +222 -0
- crypticorn/pay/client/models/get_payments_list_res.py +109 -0
- crypticorn/pay/client/models/http_validation_error.py +99 -0
- crypticorn/pay/client/models/min_amount_req.py +124 -0
- crypticorn/pay/client/models/min_amount_res.py +105 -0
- crypticorn/pay/client/models/now_api_status_res.py +83 -0
- crypticorn/pay/client/models/now_create_invoice_req.py +188 -0
- crypticorn/pay/client/models/now_create_invoice_res.py +188 -0
- crypticorn/pay/client/models/now_fee_structure.py +104 -0
- crypticorn/pay/client/models/now_payment_model.py +124 -0
- crypticorn/pay/client/models/now_payment_status.py +42 -0
- crypticorn/pay/client/models/now_webhook_payload.py +181 -0
- crypticorn/pay/client/models/payment.py +231 -0
- crypticorn/pay/client/models/payment_status.py +40 -0
- crypticorn/pay/client/models/product.py +87 -0
- crypticorn/pay/client/models/product_model.py +119 -0
- crypticorn/pay/client/models/product_subs_model.py +108 -0
- crypticorn/pay/client/models/services.py +34 -0
- crypticorn/pay/client/models/unified_payment_model.py +112 -0
- crypticorn/pay/client/models/validation_error.py +105 -0
- crypticorn/pay/client/models/validation_error_loc_inner.py +159 -0
- crypticorn/pay/client/py.typed +0 -0
- crypticorn/pay/client/rest.py +195 -0
- crypticorn/pay/main.py +35 -0
- crypticorn/trade/client/__init__.py +9 -4
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/api_keys_api.py +203 -304
- crypticorn/trade/client/api/bots_api.py +177 -250
- crypticorn/trade/client/api/exchanges_api.py +38 -57
- crypticorn/trade/client/api/futures_trading_panel_api.py +223 -321
- crypticorn/trade/client/api/notifications_api.py +247 -364
- crypticorn/trade/client/api/orders_api.py +44 -63
- crypticorn/trade/client/api/status_api.py +35 -53
- crypticorn/trade/client/api/strategies_api.py +852 -64
- crypticorn/trade/client/api/trading_actions_api.py +126 -203
- crypticorn/trade/client/api_client.py +115 -154
- crypticorn/trade/client/api_response.py +2 -3
- crypticorn/trade/client/configuration.py +128 -90
- crypticorn/trade/client/exceptions.py +21 -17
- crypticorn/trade/client/models/__init__.py +9 -4
- crypticorn/trade/client/models/action_model.py +114 -50
- crypticorn/trade/client/models/api_error_identifier.py +60 -51
- crypticorn/trade/client/models/api_error_level.py +37 -0
- crypticorn/trade/client/models/api_error_type.py +37 -0
- crypticorn/trade/client/models/api_key_model.py +49 -28
- crypticorn/trade/client/models/bot_model.py +76 -31
- crypticorn/trade/client/models/bot_status.py +37 -0
- crypticorn/trade/client/models/exchange.py +3 -5
- crypticorn/trade/client/models/execution_ids.py +14 -14
- crypticorn/trade/client/models/futures_balance.py +39 -23
- crypticorn/trade/client/models/futures_trading_action.py +98 -46
- crypticorn/trade/client/models/http_validation_error.py +15 -11
- crypticorn/trade/client/models/margin_mode.py +3 -5
- crypticorn/trade/client/models/market_type.py +3 -5
- crypticorn/trade/client/models/notification_model.py +60 -27
- crypticorn/trade/client/models/notification_type.py +4 -6
- crypticorn/trade/client/models/order_model.py +125 -65
- crypticorn/trade/client/models/order_status.py +6 -8
- crypticorn/trade/client/models/post_futures_action.py +16 -12
- crypticorn/trade/client/models/strategy_exchange_info.py +11 -12
- crypticorn/trade/client/models/strategy_model.py +66 -27
- crypticorn/trade/client/models/strategy_model_input.py +160 -0
- crypticorn/trade/client/models/strategy_model_output.py +160 -0
- crypticorn/trade/client/models/tpsl.py +35 -21
- crypticorn/trade/client/models/trading_action_type.py +5 -7
- crypticorn/trade/client/models/update_notification.py +17 -13
- crypticorn/trade/client/models/validation_error.py +20 -14
- crypticorn/trade/client/models/validation_error_loc_inner.py +33 -12
- crypticorn/trade/client/rest.py +108 -170
- crypticorn/trade/main.py +26 -19
- crypticorn-2.0.0.dist-info/METADATA +74 -0
- crypticorn-2.0.0.dist-info/RECORD +226 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/WHEEL +1 -1
- crypticorn/hive/requirements.txt +0 -4
- crypticorn/hive/utils.py +0 -109
- crypticorn/klines/requirements.txt +0 -4
- crypticorn/klines/test/test_base_response_health_check_response.py +0 -56
- crypticorn/klines/test/test_base_response_list_funding_rate_response.py +0 -59
- crypticorn/klines/test/test_base_response_list_str.py +0 -56
- crypticorn/klines/test/test_base_response_ohlcv_response.py +0 -72
- crypticorn/klines/test/test_error_response.py +0 -57
- crypticorn/klines/test/test_exchange.py +0 -56
- crypticorn/klines/test/test_funding_rate_response.py +0 -56
- crypticorn/klines/test/test_funding_rates_api.py +0 -38
- crypticorn/klines/test/test_health_check_api.py +0 -38
- crypticorn/klines/test/test_health_check_response.py +0 -52
- crypticorn/klines/test/test_history_error_response.py +0 -53
- crypticorn/klines/test/test_history_no_data_response.py +0 -69
- crypticorn/klines/test/test_history_success_response.py +0 -87
- crypticorn/klines/test/test_http_validation_error.py +0 -58
- crypticorn/klines/test/test_market.py +0 -33
- crypticorn/klines/test/test_ohlcv_data_api.py +0 -38
- crypticorn/klines/test/test_ohlcv_response.py +0 -86
- crypticorn/klines/test/test_resolution.py +0 -33
- crypticorn/klines/test/test_response_get_history_udf_history_get.py +0 -89
- crypticorn/klines/test/test_search_symbol_response.py +0 -62
- crypticorn/klines/test/test_sort_direction.py +0 -33
- crypticorn/klines/test/test_symbol_group_response.py +0 -53
- crypticorn/klines/test/test_symbol_info_response.py +0 -84
- crypticorn/klines/test/test_symbol_type.py +0 -54
- crypticorn/klines/test/test_symbols_api.py +0 -38
- crypticorn/klines/test/test_timeframe.py +0 -33
- crypticorn/klines/test/test_udf_api.py +0 -80
- crypticorn/klines/test/test_udf_config_response.py +0 -95
- crypticorn/klines/test/test_validation_error.py +0 -60
- crypticorn/klines/test/test_validation_error_loc_inner.py +0 -50
- crypticorn/trade/requirements.txt +0 -4
- crypticorn-1.0.2rc3.dist-info/LICENSE.md +0 -19
- crypticorn-1.0.2rc3.dist-info/METADATA +0 -47
- crypticorn-1.0.2rc3.dist-info/RECORD +0 -128
- /crypticorn/{klines/test/__init__.py → auth/client/py.typed} +0 -0
- {crypticorn-1.0.2rc3.dist-info → crypticorn-2.0.0.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
|
4
|
+
Trading API
|
5
5
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
7
|
|
@@ -37,9 +37,8 @@ class OrdersApi:
|
|
37
37
|
api_client = ApiClient.get_default()
|
38
38
|
self.api_client = api_client
|
39
39
|
|
40
|
-
|
41
40
|
@validate_call
|
42
|
-
def get_orders(
|
41
|
+
async def get_orders(
|
43
42
|
self,
|
44
43
|
limit: Optional[StrictInt] = None,
|
45
44
|
offset: Optional[StrictInt] = None,
|
@@ -48,9 +47,8 @@ class OrdersApi:
|
|
48
47
|
None,
|
49
48
|
Annotated[StrictFloat, Field(gt=0)],
|
50
49
|
Tuple[
|
51
|
-
Annotated[StrictFloat, Field(gt=0)],
|
52
|
-
|
53
|
-
]
|
50
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
51
|
+
],
|
54
52
|
] = None,
|
55
53
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
56
54
|
_content_type: Optional[StrictStr] = None,
|
@@ -86,7 +84,7 @@ class OrdersApi:
|
|
86
84
|
in the spec for a single request.
|
87
85
|
:type _host_index: int, optional
|
88
86
|
:return: Returns the result object.
|
89
|
-
"""
|
87
|
+
""" # noqa: E501
|
90
88
|
|
91
89
|
_param = self._get_orders_serialize(
|
92
90
|
limit=limit,
|
@@ -95,26 +93,24 @@ class OrdersApi:
|
|
95
93
|
_request_auth=_request_auth,
|
96
94
|
_content_type=_content_type,
|
97
95
|
_headers=_headers,
|
98
|
-
_host_index=_host_index
|
96
|
+
_host_index=_host_index,
|
99
97
|
)
|
100
98
|
|
101
99
|
_response_types_map: Dict[str, Optional[str]] = {
|
102
|
-
|
103
|
-
|
100
|
+
"200": "List[OrderModel]",
|
101
|
+
"422": "HTTPValidationError",
|
104
102
|
}
|
105
|
-
response_data = self.api_client.call_api(
|
106
|
-
*_param,
|
107
|
-
_request_timeout=_request_timeout
|
103
|
+
response_data = await self.api_client.call_api(
|
104
|
+
*_param, _request_timeout=_request_timeout
|
108
105
|
)
|
109
|
-
response_data.read()
|
106
|
+
await response_data.read()
|
110
107
|
return self.api_client.response_deserialize(
|
111
108
|
response_data=response_data,
|
112
109
|
response_types_map=_response_types_map,
|
113
110
|
).data
|
114
111
|
|
115
|
-
|
116
112
|
@validate_call
|
117
|
-
def get_orders_with_http_info(
|
113
|
+
async def get_orders_with_http_info(
|
118
114
|
self,
|
119
115
|
limit: Optional[StrictInt] = None,
|
120
116
|
offset: Optional[StrictInt] = None,
|
@@ -123,9 +119,8 @@ class OrdersApi:
|
|
123
119
|
None,
|
124
120
|
Annotated[StrictFloat, Field(gt=0)],
|
125
121
|
Tuple[
|
126
|
-
Annotated[StrictFloat, Field(gt=0)],
|
127
|
-
|
128
|
-
]
|
122
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
123
|
+
],
|
129
124
|
] = None,
|
130
125
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
131
126
|
_content_type: Optional[StrictStr] = None,
|
@@ -161,7 +156,7 @@ class OrdersApi:
|
|
161
156
|
in the spec for a single request.
|
162
157
|
:type _host_index: int, optional
|
163
158
|
:return: Returns the result object.
|
164
|
-
"""
|
159
|
+
""" # noqa: E501
|
165
160
|
|
166
161
|
_param = self._get_orders_serialize(
|
167
162
|
limit=limit,
|
@@ -170,26 +165,24 @@ class OrdersApi:
|
|
170
165
|
_request_auth=_request_auth,
|
171
166
|
_content_type=_content_type,
|
172
167
|
_headers=_headers,
|
173
|
-
_host_index=_host_index
|
168
|
+
_host_index=_host_index,
|
174
169
|
)
|
175
170
|
|
176
171
|
_response_types_map: Dict[str, Optional[str]] = {
|
177
|
-
|
178
|
-
|
172
|
+
"200": "List[OrderModel]",
|
173
|
+
"422": "HTTPValidationError",
|
179
174
|
}
|
180
|
-
response_data = self.api_client.call_api(
|
181
|
-
*_param,
|
182
|
-
_request_timeout=_request_timeout
|
175
|
+
response_data = await self.api_client.call_api(
|
176
|
+
*_param, _request_timeout=_request_timeout
|
183
177
|
)
|
184
|
-
response_data.read()
|
178
|
+
await response_data.read()
|
185
179
|
return self.api_client.response_deserialize(
|
186
180
|
response_data=response_data,
|
187
181
|
response_types_map=_response_types_map,
|
188
182
|
)
|
189
183
|
|
190
|
-
|
191
184
|
@validate_call
|
192
|
-
def get_orders_without_preload_content(
|
185
|
+
async def get_orders_without_preload_content(
|
193
186
|
self,
|
194
187
|
limit: Optional[StrictInt] = None,
|
195
188
|
offset: Optional[StrictInt] = None,
|
@@ -198,9 +191,8 @@ class OrdersApi:
|
|
198
191
|
None,
|
199
192
|
Annotated[StrictFloat, Field(gt=0)],
|
200
193
|
Tuple[
|
201
|
-
Annotated[StrictFloat, Field(gt=0)],
|
202
|
-
|
203
|
-
]
|
194
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
195
|
+
],
|
204
196
|
] = None,
|
205
197
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
206
198
|
_content_type: Optional[StrictStr] = None,
|
@@ -236,7 +228,7 @@ class OrdersApi:
|
|
236
228
|
in the spec for a single request.
|
237
229
|
:type _host_index: int, optional
|
238
230
|
:return: Returns the result object.
|
239
|
-
"""
|
231
|
+
""" # noqa: E501
|
240
232
|
|
241
233
|
_param = self._get_orders_serialize(
|
242
234
|
limit=limit,
|
@@ -245,20 +237,18 @@ class OrdersApi:
|
|
245
237
|
_request_auth=_request_auth,
|
246
238
|
_content_type=_content_type,
|
247
239
|
_headers=_headers,
|
248
|
-
_host_index=_host_index
|
240
|
+
_host_index=_host_index,
|
249
241
|
)
|
250
242
|
|
251
243
|
_response_types_map: Dict[str, Optional[str]] = {
|
252
|
-
|
253
|
-
|
244
|
+
"200": "List[OrderModel]",
|
245
|
+
"422": "HTTPValidationError",
|
254
246
|
}
|
255
|
-
response_data = self.api_client.call_api(
|
256
|
-
*_param,
|
257
|
-
_request_timeout=_request_timeout
|
247
|
+
response_data = await self.api_client.call_api(
|
248
|
+
*_param, _request_timeout=_request_timeout
|
258
249
|
)
|
259
250
|
return response_data.response
|
260
251
|
|
261
|
-
|
262
252
|
def _get_orders_serialize(
|
263
253
|
self,
|
264
254
|
limit,
|
@@ -272,8 +262,7 @@ class OrdersApi:
|
|
272
262
|
|
273
263
|
_host = None
|
274
264
|
|
275
|
-
_collection_formats: Dict[str, str] = {
|
276
|
-
}
|
265
|
+
_collection_formats: Dict[str, str] = {}
|
277
266
|
|
278
267
|
_path_params: Dict[str, str] = {}
|
279
268
|
_query_params: List[Tuple[str, str]] = []
|
@@ -287,35 +276,29 @@ class OrdersApi:
|
|
287
276
|
# process the path parameters
|
288
277
|
# process the query parameters
|
289
278
|
if limit is not None:
|
290
|
-
|
291
|
-
_query_params.append((
|
292
|
-
|
279
|
+
|
280
|
+
_query_params.append(("limit", limit))
|
281
|
+
|
293
282
|
if offset is not None:
|
294
|
-
|
295
|
-
_query_params.append((
|
296
|
-
|
283
|
+
|
284
|
+
_query_params.append(("offset", offset))
|
285
|
+
|
297
286
|
# process the header parameters
|
298
287
|
# process the form parameters
|
299
288
|
# process the body parameter
|
300
289
|
|
301
|
-
|
302
290
|
# set the HTTP header `Accept`
|
303
|
-
if
|
304
|
-
_header_params[
|
305
|
-
[
|
306
|
-
'application/json'
|
307
|
-
]
|
291
|
+
if "Accept" not in _header_params:
|
292
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
293
|
+
["application/json"]
|
308
294
|
)
|
309
295
|
|
310
|
-
|
311
296
|
# authentication setting
|
312
|
-
_auth_settings: List[str] = [
|
313
|
-
'OAuth2PasswordBearer'
|
314
|
-
]
|
297
|
+
_auth_settings: List[str] = ["HTTPBearer"]
|
315
298
|
|
316
299
|
return self.api_client.param_serialize(
|
317
|
-
method=
|
318
|
-
resource_path=
|
300
|
+
method="GET",
|
301
|
+
resource_path="/orders",
|
319
302
|
path_params=_path_params,
|
320
303
|
query_params=_query_params,
|
321
304
|
header_params=_header_params,
|
@@ -325,7 +308,5 @@ class OrdersApi:
|
|
325
308
|
auth_settings=_auth_settings,
|
326
309
|
collection_formats=_collection_formats,
|
327
310
|
_host=_host,
|
328
|
-
_request_auth=_request_auth
|
311
|
+
_request_auth=_request_auth,
|
329
312
|
)
|
330
|
-
|
331
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
"""
|
4
|
-
|
4
|
+
Trading API
|
5
5
|
|
6
6
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
7
|
|
@@ -35,17 +35,15 @@ class StatusApi:
|
|
35
35
|
api_client = ApiClient.get_default()
|
36
36
|
self.api_client = api_client
|
37
37
|
|
38
|
-
|
39
38
|
@validate_call
|
40
|
-
def ping(
|
39
|
+
async def ping(
|
41
40
|
self,
|
42
41
|
_request_timeout: Union[
|
43
42
|
None,
|
44
43
|
Annotated[StrictFloat, Field(gt=0)],
|
45
44
|
Tuple[
|
46
|
-
Annotated[StrictFloat, Field(gt=0)],
|
47
|
-
|
48
|
-
]
|
45
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
46
|
+
],
|
49
47
|
] = None,
|
50
48
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
51
49
|
_content_type: Optional[StrictStr] = None,
|
@@ -75,39 +73,36 @@ class StatusApi:
|
|
75
73
|
in the spec for a single request.
|
76
74
|
:type _host_index: int, optional
|
77
75
|
:return: Returns the result object.
|
78
|
-
"""
|
76
|
+
""" # noqa: E501
|
79
77
|
|
80
78
|
_param = self._ping_serialize(
|
81
79
|
_request_auth=_request_auth,
|
82
80
|
_content_type=_content_type,
|
83
81
|
_headers=_headers,
|
84
|
-
_host_index=_host_index
|
82
|
+
_host_index=_host_index,
|
85
83
|
)
|
86
84
|
|
87
85
|
_response_types_map: Dict[str, Optional[str]] = {
|
88
|
-
|
86
|
+
"200": "object",
|
89
87
|
}
|
90
|
-
response_data = self.api_client.call_api(
|
91
|
-
*_param,
|
92
|
-
_request_timeout=_request_timeout
|
88
|
+
response_data = await self.api_client.call_api(
|
89
|
+
*_param, _request_timeout=_request_timeout
|
93
90
|
)
|
94
|
-
response_data.read()
|
91
|
+
await response_data.read()
|
95
92
|
return self.api_client.response_deserialize(
|
96
93
|
response_data=response_data,
|
97
94
|
response_types_map=_response_types_map,
|
98
95
|
).data
|
99
96
|
|
100
|
-
|
101
97
|
@validate_call
|
102
|
-
def ping_with_http_info(
|
98
|
+
async def ping_with_http_info(
|
103
99
|
self,
|
104
100
|
_request_timeout: Union[
|
105
101
|
None,
|
106
102
|
Annotated[StrictFloat, Field(gt=0)],
|
107
103
|
Tuple[
|
108
|
-
Annotated[StrictFloat, Field(gt=0)],
|
109
|
-
|
110
|
-
]
|
104
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
105
|
+
],
|
111
106
|
] = None,
|
112
107
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
113
108
|
_content_type: Optional[StrictStr] = None,
|
@@ -137,39 +132,36 @@ class StatusApi:
|
|
137
132
|
in the spec for a single request.
|
138
133
|
:type _host_index: int, optional
|
139
134
|
:return: Returns the result object.
|
140
|
-
"""
|
135
|
+
""" # noqa: E501
|
141
136
|
|
142
137
|
_param = self._ping_serialize(
|
143
138
|
_request_auth=_request_auth,
|
144
139
|
_content_type=_content_type,
|
145
140
|
_headers=_headers,
|
146
|
-
_host_index=_host_index
|
141
|
+
_host_index=_host_index,
|
147
142
|
)
|
148
143
|
|
149
144
|
_response_types_map: Dict[str, Optional[str]] = {
|
150
|
-
|
145
|
+
"200": "object",
|
151
146
|
}
|
152
|
-
response_data = self.api_client.call_api(
|
153
|
-
*_param,
|
154
|
-
_request_timeout=_request_timeout
|
147
|
+
response_data = await self.api_client.call_api(
|
148
|
+
*_param, _request_timeout=_request_timeout
|
155
149
|
)
|
156
|
-
response_data.read()
|
150
|
+
await response_data.read()
|
157
151
|
return self.api_client.response_deserialize(
|
158
152
|
response_data=response_data,
|
159
153
|
response_types_map=_response_types_map,
|
160
154
|
)
|
161
155
|
|
162
|
-
|
163
156
|
@validate_call
|
164
|
-
def ping_without_preload_content(
|
157
|
+
async def ping_without_preload_content(
|
165
158
|
self,
|
166
159
|
_request_timeout: Union[
|
167
160
|
None,
|
168
161
|
Annotated[StrictFloat, Field(gt=0)],
|
169
162
|
Tuple[
|
170
|
-
Annotated[StrictFloat, Field(gt=0)],
|
171
|
-
|
172
|
-
]
|
163
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
164
|
+
],
|
173
165
|
] = None,
|
174
166
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
175
167
|
_content_type: Optional[StrictStr] = None,
|
@@ -199,25 +191,23 @@ class StatusApi:
|
|
199
191
|
in the spec for a single request.
|
200
192
|
:type _host_index: int, optional
|
201
193
|
:return: Returns the result object.
|
202
|
-
"""
|
194
|
+
""" # noqa: E501
|
203
195
|
|
204
196
|
_param = self._ping_serialize(
|
205
197
|
_request_auth=_request_auth,
|
206
198
|
_content_type=_content_type,
|
207
199
|
_headers=_headers,
|
208
|
-
_host_index=_host_index
|
200
|
+
_host_index=_host_index,
|
209
201
|
)
|
210
202
|
|
211
203
|
_response_types_map: Dict[str, Optional[str]] = {
|
212
|
-
|
204
|
+
"200": "object",
|
213
205
|
}
|
214
|
-
response_data = self.api_client.call_api(
|
215
|
-
*_param,
|
216
|
-
_request_timeout=_request_timeout
|
206
|
+
response_data = await self.api_client.call_api(
|
207
|
+
*_param, _request_timeout=_request_timeout
|
217
208
|
)
|
218
209
|
return response_data.response
|
219
210
|
|
220
|
-
|
221
211
|
def _ping_serialize(
|
222
212
|
self,
|
223
213
|
_request_auth,
|
@@ -228,8 +218,7 @@ class StatusApi:
|
|
228
218
|
|
229
219
|
_host = None
|
230
220
|
|
231
|
-
_collection_formats: Dict[str, str] = {
|
232
|
-
}
|
221
|
+
_collection_formats: Dict[str, str] = {}
|
233
222
|
|
234
223
|
_path_params: Dict[str, str] = {}
|
235
224
|
_query_params: List[Tuple[str, str]] = []
|
@@ -246,23 +235,18 @@ class StatusApi:
|
|
246
235
|
# process the form parameters
|
247
236
|
# process the body parameter
|
248
237
|
|
249
|
-
|
250
238
|
# set the HTTP header `Accept`
|
251
|
-
if
|
252
|
-
_header_params[
|
253
|
-
[
|
254
|
-
'application/json'
|
255
|
-
]
|
239
|
+
if "Accept" not in _header_params:
|
240
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
241
|
+
["application/json"]
|
256
242
|
)
|
257
243
|
|
258
|
-
|
259
244
|
# authentication setting
|
260
|
-
_auth_settings: List[str] = [
|
261
|
-
]
|
245
|
+
_auth_settings: List[str] = []
|
262
246
|
|
263
247
|
return self.api_client.param_serialize(
|
264
|
-
method=
|
265
|
-
resource_path=
|
248
|
+
method="GET",
|
249
|
+
resource_path="/",
|
266
250
|
path_params=_path_params,
|
267
251
|
query_params=_query_params,
|
268
252
|
header_params=_header_params,
|
@@ -272,7 +256,5 @@ class StatusApi:
|
|
272
256
|
auth_settings=_auth_settings,
|
273
257
|
collection_formats=_collection_formats,
|
274
258
|
_host=_host,
|
275
|
-
_request_auth=_request_auth
|
259
|
+
_request_auth=_request_auth,
|
276
260
|
)
|
277
|
-
|
278
|
-
|