crypticorn 2.16.0__py3-none-any.whl → 2.17.0rc2__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 +2 -2
- crypticorn/auth/client/api/admin_api.py +415 -13
- crypticorn/auth/client/api/auth_api.py +2622 -113
- crypticorn/auth/client/api/service_api.py +258 -7
- crypticorn/auth/client/api/user_api.py +2485 -270
- crypticorn/auth/client/api/wallet_api.py +1518 -77
- crypticorn/auth/client/models/create_api_key_request.py +2 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +2 -1
- crypticorn/auth/client/rest.py +23 -4
- crypticorn/auth/main.py +8 -5
- crypticorn/client.py +227 -59
- crypticorn/common/__init__.py +1 -0
- crypticorn/common/metrics.py +18 -0
- crypticorn/common/middleware.py +46 -0
- crypticorn/common/pagination.py +137 -18
- crypticorn/common/router/admin_router.py +12 -2
- crypticorn/common/utils.py +2 -1
- crypticorn/common/warnings.py +7 -0
- crypticorn/hive/client/api/admin_api.py +1234 -51
- crypticorn/hive/client/api/data_api.py +517 -13
- crypticorn/hive/client/api/models_api.py +1657 -83
- crypticorn/hive/client/api/status_api.py +415 -13
- crypticorn/hive/client/models/api_error_identifier.py +1 -1
- crypticorn/hive/client/rest.py +23 -4
- crypticorn/hive/main.py +99 -25
- crypticorn/klines/client/api/admin_api.py +1234 -51
- crypticorn/klines/client/api/change_in_timeframe_api.py +278 -7
- crypticorn/klines/client/api/funding_rates_api.py +324 -7
- crypticorn/klines/client/api/ohlcv_data_api.py +399 -7
- crypticorn/klines/client/api/status_api.py +415 -13
- crypticorn/klines/client/api/symbols_api.py +225 -7
- crypticorn/klines/client/api/udf_api.py +1393 -120
- crypticorn/klines/client/models/api_error_identifier.py +3 -1
- crypticorn/klines/client/rest.py +23 -4
- crypticorn/klines/main.py +89 -12
- crypticorn/metrics/client/api/admin_api.py +1234 -51
- crypticorn/metrics/client/api/exchanges_api.py +1405 -140
- crypticorn/metrics/client/api/indicators_api.py +640 -13
- crypticorn/metrics/client/api/logs_api.py +305 -7
- crypticorn/metrics/client/api/marketcap_api.py +1240 -60
- crypticorn/metrics/client/api/markets_api.py +352 -7
- crypticorn/metrics/client/api/quote_currencies_api.py +237 -7
- crypticorn/metrics/client/api/status_api.py +415 -13
- crypticorn/metrics/client/api/tokens_api.py +400 -13
- crypticorn/metrics/client/configuration.py +4 -2
- crypticorn/metrics/client/rest.py +23 -4
- crypticorn/metrics/main.py +113 -19
- crypticorn/pay/client/api/admin_api.py +1720 -126
- crypticorn/pay/client/api/now_payments_api.py +1013 -42
- crypticorn/pay/client/api/payments_api.py +580 -13
- crypticorn/pay/client/api/products_api.py +915 -25
- crypticorn/pay/client/api/status_api.py +415 -13
- crypticorn/pay/client/configuration.py +2 -2
- crypticorn/pay/client/models/api_error_identifier.py +7 -7
- crypticorn/pay/client/models/scope.py +1 -0
- crypticorn/pay/client/rest.py +23 -4
- crypticorn/pay/main.py +10 -6
- crypticorn/trade/client/__init__.py +2 -1
- crypticorn/trade/client/api/__init__.py +0 -1
- crypticorn/trade/client/api/admin_api.py +1718 -123
- crypticorn/trade/client/api/api_keys_api.py +1596 -103
- crypticorn/trade/client/api/bots_api.py +1106 -47
- crypticorn/trade/client/api/exchanges_api.py +592 -19
- crypticorn/trade/client/api/notifications_api.py +1340 -112
- crypticorn/trade/client/api/orders_api.py +240 -7
- crypticorn/trade/client/api/status_api.py +415 -13
- crypticorn/trade/client/api/strategies_api.py +1170 -69
- crypticorn/trade/client/api/trading_actions_api.py +650 -19
- crypticorn/trade/client/models/__init__.py +2 -0
- crypticorn/trade/client/models/exchange.py +6 -1
- crypticorn/trade/client/models/exchange_key_balance.py +111 -0
- crypticorn/trade/client/models/futures_balance.py +27 -25
- crypticorn/trade/client/models/spot_balance.py +110 -0
- crypticorn/trade/client/models/strategy.py +5 -3
- crypticorn/trade/client/models/strategy_create.py +6 -4
- crypticorn/trade/client/models/strategy_exchange_info.py +16 -4
- crypticorn/trade/client/models/strategy_update.py +2 -2
- crypticorn/trade/client/rest.py +23 -4
- crypticorn/trade/main.py +15 -12
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/METADATA +65 -20
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/RECORD +85 -83
- crypticorn/trade/client/api/futures_trading_panel_api.py +0 -1285
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/WHEEL +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.16.0.dist-info → crypticorn-2.17.0rc2.dist-info}/top_level.txt +0 -0
@@ -29,6 +29,24 @@ from crypticorn.klines.client.api_client import ApiClient, RequestSerialized
|
|
29
29
|
from crypticorn.klines.client.api_response import ApiResponse
|
30
30
|
from crypticorn.klines.client.rest import RESTResponseType
|
31
31
|
|
32
|
+
# Import async_to_sync for sync methods
|
33
|
+
try:
|
34
|
+
from asgiref.sync import async_to_sync
|
35
|
+
|
36
|
+
_HAS_ASGIREF = True
|
37
|
+
except ImportError:
|
38
|
+
_HAS_ASGIREF = False
|
39
|
+
|
40
|
+
def async_to_sync(async_func):
|
41
|
+
"""Fallback decorator that raises an error if asgiref is not available."""
|
42
|
+
|
43
|
+
def wrapper(*args, **kwargs):
|
44
|
+
raise ImportError(
|
45
|
+
"asgiref is required for sync methods. Install with: pip install asgiref"
|
46
|
+
)
|
47
|
+
|
48
|
+
return wrapper
|
49
|
+
|
32
50
|
|
33
51
|
class UDFApi:
|
34
52
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
@@ -37,13 +55,135 @@ class UDFApi:
|
|
37
55
|
Do not edit the class manually.
|
38
56
|
"""
|
39
57
|
|
40
|
-
def __init__(self, api_client=None) -> None:
|
58
|
+
def __init__(self, api_client=None, is_sync: bool = False) -> None:
|
41
59
|
if api_client is None:
|
42
60
|
api_client = ApiClient.get_default()
|
43
61
|
self.api_client = api_client
|
62
|
+
self.is_sync = is_sync
|
63
|
+
|
64
|
+
@validate_call
|
65
|
+
def get_symbol(
|
66
|
+
self,
|
67
|
+
symbol: StrictStr,
|
68
|
+
_request_timeout: Union[
|
69
|
+
None,
|
70
|
+
Annotated[StrictFloat, Field(gt=0)],
|
71
|
+
Tuple[
|
72
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
73
|
+
],
|
74
|
+
] = None,
|
75
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
76
|
+
_content_type: Optional[StrictStr] = None,
|
77
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
78
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
79
|
+
) -> SymbolInfo:
|
80
|
+
"""Get Symbol
|
81
|
+
|
82
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
83
|
+
"""
|
84
|
+
if self.is_sync:
|
85
|
+
return self._get_symbol_sync(
|
86
|
+
symbol=symbol,
|
87
|
+
_request_timeout=_request_timeout,
|
88
|
+
_request_auth=_request_auth,
|
89
|
+
_content_type=_content_type,
|
90
|
+
_headers=_headers,
|
91
|
+
_host_index=_host_index,
|
92
|
+
)
|
93
|
+
|
94
|
+
else:
|
95
|
+
return self._get_symbol_async(
|
96
|
+
symbol=symbol,
|
97
|
+
_request_timeout=_request_timeout,
|
98
|
+
_request_auth=_request_auth,
|
99
|
+
_content_type=_content_type,
|
100
|
+
_headers=_headers,
|
101
|
+
_host_index=_host_index,
|
102
|
+
)
|
103
|
+
|
104
|
+
@validate_call
|
105
|
+
def get_symbol_with_http_info(
|
106
|
+
self,
|
107
|
+
symbol: StrictStr,
|
108
|
+
_request_timeout: Union[
|
109
|
+
None,
|
110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
111
|
+
Tuple[
|
112
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
113
|
+
],
|
114
|
+
] = None,
|
115
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
116
|
+
_content_type: Optional[StrictStr] = None,
|
117
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
118
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
119
|
+
) -> ApiResponse[SymbolInfo]:
|
120
|
+
"""Get Symbol with HTTP info
|
121
|
+
|
122
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
123
|
+
"""
|
124
|
+
if self.is_sync:
|
125
|
+
return self._get_symbol_sync_with_http_info(
|
126
|
+
symbol=symbol,
|
127
|
+
_request_timeout=_request_timeout,
|
128
|
+
_request_auth=_request_auth,
|
129
|
+
_content_type=_content_type,
|
130
|
+
_headers=_headers,
|
131
|
+
_host_index=_host_index,
|
132
|
+
)
|
133
|
+
|
134
|
+
else:
|
135
|
+
return self._get_symbol_async_with_http_info(
|
136
|
+
symbol=symbol,
|
137
|
+
_request_timeout=_request_timeout,
|
138
|
+
_request_auth=_request_auth,
|
139
|
+
_content_type=_content_type,
|
140
|
+
_headers=_headers,
|
141
|
+
_host_index=_host_index,
|
142
|
+
)
|
143
|
+
|
144
|
+
@validate_call
|
145
|
+
def get_symbol_without_preload_content(
|
146
|
+
self,
|
147
|
+
symbol: StrictStr,
|
148
|
+
_request_timeout: Union[
|
149
|
+
None,
|
150
|
+
Annotated[StrictFloat, Field(gt=0)],
|
151
|
+
Tuple[
|
152
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
153
|
+
],
|
154
|
+
] = None,
|
155
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
156
|
+
_content_type: Optional[StrictStr] = None,
|
157
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
158
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
159
|
+
) -> RESTResponseType:
|
160
|
+
"""Get Symbol without preloading content
|
161
|
+
|
162
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
163
|
+
"""
|
164
|
+
if self.is_sync:
|
165
|
+
return self._get_symbol_sync_without_preload_content(
|
166
|
+
symbol=symbol,
|
167
|
+
_request_timeout=_request_timeout,
|
168
|
+
_request_auth=_request_auth,
|
169
|
+
_content_type=_content_type,
|
170
|
+
_headers=_headers,
|
171
|
+
_host_index=_host_index,
|
172
|
+
)
|
173
|
+
|
174
|
+
else:
|
175
|
+
return self._get_symbol_async_without_preload_content(
|
176
|
+
symbol=symbol,
|
177
|
+
_request_timeout=_request_timeout,
|
178
|
+
_request_auth=_request_auth,
|
179
|
+
_content_type=_content_type,
|
180
|
+
_headers=_headers,
|
181
|
+
_host_index=_host_index,
|
182
|
+
)
|
44
183
|
|
184
|
+
# Private async implementation methods
|
45
185
|
@validate_call
|
46
|
-
async def
|
186
|
+
async def _get_symbol_async(
|
47
187
|
self,
|
48
188
|
symbol: StrictStr,
|
49
189
|
_request_timeout: Union[
|
@@ -106,7 +246,7 @@ class UDFApi:
|
|
106
246
|
).data
|
107
247
|
|
108
248
|
@validate_call
|
109
|
-
async def
|
249
|
+
async def _get_symbol_async_with_http_info(
|
110
250
|
self,
|
111
251
|
symbol: StrictStr,
|
112
252
|
_request_timeout: Union[
|
@@ -164,12 +304,11 @@ class UDFApi:
|
|
164
304
|
)
|
165
305
|
await response_data.read()
|
166
306
|
return self.api_client.response_deserialize(
|
167
|
-
response_data=response_data,
|
168
|
-
response_types_map=_response_types_map,
|
307
|
+
response_data=response_data, response_types_map=_response_types_map
|
169
308
|
)
|
170
309
|
|
171
310
|
@validate_call
|
172
|
-
async def
|
311
|
+
async def _get_symbol_async_without_preload_content(
|
173
312
|
self,
|
174
313
|
symbol: StrictStr,
|
175
314
|
_request_timeout: Union[
|
@@ -225,7 +364,86 @@ class UDFApi:
|
|
225
364
|
response_data = await self.api_client.call_api(
|
226
365
|
*_param, _request_timeout=_request_timeout
|
227
366
|
)
|
228
|
-
return response_data
|
367
|
+
return response_data
|
368
|
+
|
369
|
+
# Private sync implementation methods
|
370
|
+
@validate_call
|
371
|
+
def _get_symbol_sync(
|
372
|
+
self,
|
373
|
+
symbol: StrictStr,
|
374
|
+
_request_timeout: Union[
|
375
|
+
None,
|
376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
377
|
+
Tuple[
|
378
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
379
|
+
],
|
380
|
+
] = None,
|
381
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
382
|
+
_content_type: Optional[StrictStr] = None,
|
383
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
384
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
385
|
+
) -> SymbolInfo:
|
386
|
+
"""Synchronous version of get_symbol"""
|
387
|
+
return async_to_sync(self._get_symbol_async)(
|
388
|
+
symbol=symbol,
|
389
|
+
_request_timeout=_request_timeout,
|
390
|
+
_request_auth=_request_auth,
|
391
|
+
_content_type=_content_type,
|
392
|
+
_headers=_headers,
|
393
|
+
_host_index=_host_index,
|
394
|
+
)
|
395
|
+
|
396
|
+
@validate_call
|
397
|
+
def _get_symbol_sync_with_http_info(
|
398
|
+
self,
|
399
|
+
symbol: StrictStr,
|
400
|
+
_request_timeout: Union[
|
401
|
+
None,
|
402
|
+
Annotated[StrictFloat, Field(gt=0)],
|
403
|
+
Tuple[
|
404
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
405
|
+
],
|
406
|
+
] = None,
|
407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
408
|
+
_content_type: Optional[StrictStr] = None,
|
409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
411
|
+
) -> ApiResponse[SymbolInfo]:
|
412
|
+
"""Synchronous version of get_symbol_with_http_info"""
|
413
|
+
return async_to_sync(self._get_symbol_async_with_http_info)(
|
414
|
+
symbol=symbol,
|
415
|
+
_request_timeout=_request_timeout,
|
416
|
+
_request_auth=_request_auth,
|
417
|
+
_content_type=_content_type,
|
418
|
+
_headers=_headers,
|
419
|
+
_host_index=_host_index,
|
420
|
+
)
|
421
|
+
|
422
|
+
@validate_call
|
423
|
+
def _get_symbol_sync_without_preload_content(
|
424
|
+
self,
|
425
|
+
symbol: StrictStr,
|
426
|
+
_request_timeout: Union[
|
427
|
+
None,
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
429
|
+
Tuple[
|
430
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
431
|
+
],
|
432
|
+
] = None,
|
433
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
434
|
+
_content_type: Optional[StrictStr] = None,
|
435
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
436
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
437
|
+
) -> RESTResponseType:
|
438
|
+
"""Synchronous version of get_symbol_without_preload_content"""
|
439
|
+
return async_to_sync(self._get_symbol_async_without_preload_content)(
|
440
|
+
symbol=symbol,
|
441
|
+
_request_timeout=_request_timeout,
|
442
|
+
_request_auth=_request_auth,
|
443
|
+
_content_type=_content_type,
|
444
|
+
_headers=_headers,
|
445
|
+
_host_index=_host_index,
|
446
|
+
)
|
229
447
|
|
230
448
|
def _get_symbol_serialize(
|
231
449
|
self,
|
@@ -284,7 +502,128 @@ class UDFApi:
|
|
284
502
|
)
|
285
503
|
|
286
504
|
@validate_call
|
287
|
-
|
505
|
+
def get_symbol_info(
|
506
|
+
self,
|
507
|
+
group: StrictStr,
|
508
|
+
_request_timeout: Union[
|
509
|
+
None,
|
510
|
+
Annotated[StrictFloat, Field(gt=0)],
|
511
|
+
Tuple[
|
512
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
513
|
+
],
|
514
|
+
] = None,
|
515
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
516
|
+
_content_type: Optional[StrictStr] = None,
|
517
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
518
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
519
|
+
) -> SymbolGroup:
|
520
|
+
"""Get Symbol Info
|
521
|
+
|
522
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
523
|
+
"""
|
524
|
+
if self.is_sync:
|
525
|
+
return self._get_symbol_info_sync(
|
526
|
+
group=group,
|
527
|
+
_request_timeout=_request_timeout,
|
528
|
+
_request_auth=_request_auth,
|
529
|
+
_content_type=_content_type,
|
530
|
+
_headers=_headers,
|
531
|
+
_host_index=_host_index,
|
532
|
+
)
|
533
|
+
|
534
|
+
else:
|
535
|
+
return self._get_symbol_info_async(
|
536
|
+
group=group,
|
537
|
+
_request_timeout=_request_timeout,
|
538
|
+
_request_auth=_request_auth,
|
539
|
+
_content_type=_content_type,
|
540
|
+
_headers=_headers,
|
541
|
+
_host_index=_host_index,
|
542
|
+
)
|
543
|
+
|
544
|
+
@validate_call
|
545
|
+
def get_symbol_info_with_http_info(
|
546
|
+
self,
|
547
|
+
group: StrictStr,
|
548
|
+
_request_timeout: Union[
|
549
|
+
None,
|
550
|
+
Annotated[StrictFloat, Field(gt=0)],
|
551
|
+
Tuple[
|
552
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
553
|
+
],
|
554
|
+
] = None,
|
555
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
556
|
+
_content_type: Optional[StrictStr] = None,
|
557
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
558
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
559
|
+
) -> ApiResponse[SymbolGroup]:
|
560
|
+
"""Get Symbol Info with HTTP info
|
561
|
+
|
562
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
563
|
+
"""
|
564
|
+
if self.is_sync:
|
565
|
+
return self._get_symbol_info_sync_with_http_info(
|
566
|
+
group=group,
|
567
|
+
_request_timeout=_request_timeout,
|
568
|
+
_request_auth=_request_auth,
|
569
|
+
_content_type=_content_type,
|
570
|
+
_headers=_headers,
|
571
|
+
_host_index=_host_index,
|
572
|
+
)
|
573
|
+
|
574
|
+
else:
|
575
|
+
return self._get_symbol_info_async_with_http_info(
|
576
|
+
group=group,
|
577
|
+
_request_timeout=_request_timeout,
|
578
|
+
_request_auth=_request_auth,
|
579
|
+
_content_type=_content_type,
|
580
|
+
_headers=_headers,
|
581
|
+
_host_index=_host_index,
|
582
|
+
)
|
583
|
+
|
584
|
+
@validate_call
|
585
|
+
def get_symbol_info_without_preload_content(
|
586
|
+
self,
|
587
|
+
group: StrictStr,
|
588
|
+
_request_timeout: Union[
|
589
|
+
None,
|
590
|
+
Annotated[StrictFloat, Field(gt=0)],
|
591
|
+
Tuple[
|
592
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
593
|
+
],
|
594
|
+
] = None,
|
595
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
596
|
+
_content_type: Optional[StrictStr] = None,
|
597
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
598
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
599
|
+
) -> RESTResponseType:
|
600
|
+
"""Get Symbol Info without preloading content
|
601
|
+
|
602
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
603
|
+
"""
|
604
|
+
if self.is_sync:
|
605
|
+
return self._get_symbol_info_sync_without_preload_content(
|
606
|
+
group=group,
|
607
|
+
_request_timeout=_request_timeout,
|
608
|
+
_request_auth=_request_auth,
|
609
|
+
_content_type=_content_type,
|
610
|
+
_headers=_headers,
|
611
|
+
_host_index=_host_index,
|
612
|
+
)
|
613
|
+
|
614
|
+
else:
|
615
|
+
return self._get_symbol_info_async_without_preload_content(
|
616
|
+
group=group,
|
617
|
+
_request_timeout=_request_timeout,
|
618
|
+
_request_auth=_request_auth,
|
619
|
+
_content_type=_content_type,
|
620
|
+
_headers=_headers,
|
621
|
+
_host_index=_host_index,
|
622
|
+
)
|
623
|
+
|
624
|
+
# Private async implementation methods
|
625
|
+
@validate_call
|
626
|
+
async def _get_symbol_info_async(
|
288
627
|
self,
|
289
628
|
group: StrictStr,
|
290
629
|
_request_timeout: Union[
|
@@ -349,7 +688,7 @@ class UDFApi:
|
|
349
688
|
).data
|
350
689
|
|
351
690
|
@validate_call
|
352
|
-
async def
|
691
|
+
async def _get_symbol_info_async_with_http_info(
|
353
692
|
self,
|
354
693
|
group: StrictStr,
|
355
694
|
_request_timeout: Union[
|
@@ -409,12 +748,11 @@ class UDFApi:
|
|
409
748
|
)
|
410
749
|
await response_data.read()
|
411
750
|
return self.api_client.response_deserialize(
|
412
|
-
response_data=response_data,
|
413
|
-
response_types_map=_response_types_map,
|
751
|
+
response_data=response_data, response_types_map=_response_types_map
|
414
752
|
)
|
415
753
|
|
416
754
|
@validate_call
|
417
|
-
async def
|
755
|
+
async def _get_symbol_info_async_without_preload_content(
|
418
756
|
self,
|
419
757
|
group: StrictStr,
|
420
758
|
_request_timeout: Union[
|
@@ -472,67 +810,13 @@ class UDFApi:
|
|
472
810
|
response_data = await self.api_client.call_api(
|
473
811
|
*_param, _request_timeout=_request_timeout
|
474
812
|
)
|
475
|
-
return response_data
|
476
|
-
|
477
|
-
def _get_symbol_info_serialize(
|
478
|
-
self,
|
479
|
-
group,
|
480
|
-
_request_auth,
|
481
|
-
_content_type,
|
482
|
-
_headers,
|
483
|
-
_host_index,
|
484
|
-
) -> RequestSerialized:
|
485
|
-
|
486
|
-
_host = None
|
487
|
-
|
488
|
-
_collection_formats: Dict[str, str] = {}
|
489
|
-
|
490
|
-
_path_params: Dict[str, str] = {}
|
491
|
-
_query_params: List[Tuple[str, str]] = []
|
492
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
493
|
-
_form_params: List[Tuple[str, str]] = []
|
494
|
-
_files: Dict[
|
495
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
496
|
-
] = {}
|
497
|
-
_body_params: Optional[bytes] = None
|
498
|
-
|
499
|
-
# process the path parameters
|
500
|
-
# process the query parameters
|
501
|
-
if group is not None:
|
502
|
-
|
503
|
-
_query_params.append(("group", group))
|
504
|
-
|
505
|
-
# process the header parameters
|
506
|
-
# process the form parameters
|
507
|
-
# process the body parameter
|
508
|
-
|
509
|
-
# set the HTTP header `Accept`
|
510
|
-
if "Accept" not in _header_params:
|
511
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
512
|
-
["application/json"]
|
513
|
-
)
|
514
|
-
|
515
|
-
# authentication setting
|
516
|
-
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
517
|
-
|
518
|
-
return self.api_client.param_serialize(
|
519
|
-
method="GET",
|
520
|
-
resource_path="/udf/symbol_info",
|
521
|
-
path_params=_path_params,
|
522
|
-
query_params=_query_params,
|
523
|
-
header_params=_header_params,
|
524
|
-
body=_body_params,
|
525
|
-
post_params=_form_params,
|
526
|
-
files=_files,
|
527
|
-
auth_settings=_auth_settings,
|
528
|
-
collection_formats=_collection_formats,
|
529
|
-
_host=_host,
|
530
|
-
_request_auth=_request_auth,
|
531
|
-
)
|
813
|
+
return response_data
|
532
814
|
|
815
|
+
# Private sync implementation methods
|
533
816
|
@validate_call
|
534
|
-
|
817
|
+
def _get_symbol_info_sync(
|
535
818
|
self,
|
819
|
+
group: StrictStr,
|
536
820
|
_request_timeout: Union[
|
537
821
|
None,
|
538
822
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -544,13 +828,258 @@ class UDFApi:
|
|
544
828
|
_content_type: Optional[StrictStr] = None,
|
545
829
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
546
830
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
547
|
-
) ->
|
548
|
-
"""
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
831
|
+
) -> SymbolGroup:
|
832
|
+
"""Synchronous version of get_symbol_info"""
|
833
|
+
return async_to_sync(self._get_symbol_info_async)(
|
834
|
+
group=group,
|
835
|
+
_request_timeout=_request_timeout,
|
836
|
+
_request_auth=_request_auth,
|
837
|
+
_content_type=_content_type,
|
838
|
+
_headers=_headers,
|
839
|
+
_host_index=_host_index,
|
840
|
+
)
|
841
|
+
|
842
|
+
@validate_call
|
843
|
+
def _get_symbol_info_sync_with_http_info(
|
844
|
+
self,
|
845
|
+
group: StrictStr,
|
846
|
+
_request_timeout: Union[
|
847
|
+
None,
|
848
|
+
Annotated[StrictFloat, Field(gt=0)],
|
849
|
+
Tuple[
|
850
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
851
|
+
],
|
852
|
+
] = None,
|
853
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
854
|
+
_content_type: Optional[StrictStr] = None,
|
855
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
856
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
857
|
+
) -> ApiResponse[SymbolGroup]:
|
858
|
+
"""Synchronous version of get_symbol_info_with_http_info"""
|
859
|
+
return async_to_sync(self._get_symbol_info_async_with_http_info)(
|
860
|
+
group=group,
|
861
|
+
_request_timeout=_request_timeout,
|
862
|
+
_request_auth=_request_auth,
|
863
|
+
_content_type=_content_type,
|
864
|
+
_headers=_headers,
|
865
|
+
_host_index=_host_index,
|
866
|
+
)
|
867
|
+
|
868
|
+
@validate_call
|
869
|
+
def _get_symbol_info_sync_without_preload_content(
|
870
|
+
self,
|
871
|
+
group: StrictStr,
|
872
|
+
_request_timeout: Union[
|
873
|
+
None,
|
874
|
+
Annotated[StrictFloat, Field(gt=0)],
|
875
|
+
Tuple[
|
876
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
877
|
+
],
|
878
|
+
] = None,
|
879
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
880
|
+
_content_type: Optional[StrictStr] = None,
|
881
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
882
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
883
|
+
) -> RESTResponseType:
|
884
|
+
"""Synchronous version of get_symbol_info_without_preload_content"""
|
885
|
+
return async_to_sync(self._get_symbol_info_async_without_preload_content)(
|
886
|
+
group=group,
|
887
|
+
_request_timeout=_request_timeout,
|
888
|
+
_request_auth=_request_auth,
|
889
|
+
_content_type=_content_type,
|
890
|
+
_headers=_headers,
|
891
|
+
_host_index=_host_index,
|
892
|
+
)
|
893
|
+
|
894
|
+
def _get_symbol_info_serialize(
|
895
|
+
self,
|
896
|
+
group,
|
897
|
+
_request_auth,
|
898
|
+
_content_type,
|
899
|
+
_headers,
|
900
|
+
_host_index,
|
901
|
+
) -> RequestSerialized:
|
902
|
+
|
903
|
+
_host = None
|
904
|
+
|
905
|
+
_collection_formats: Dict[str, str] = {}
|
906
|
+
|
907
|
+
_path_params: Dict[str, str] = {}
|
908
|
+
_query_params: List[Tuple[str, str]] = []
|
909
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
910
|
+
_form_params: List[Tuple[str, str]] = []
|
911
|
+
_files: Dict[
|
912
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
913
|
+
] = {}
|
914
|
+
_body_params: Optional[bytes] = None
|
915
|
+
|
916
|
+
# process the path parameters
|
917
|
+
# process the query parameters
|
918
|
+
if group is not None:
|
919
|
+
|
920
|
+
_query_params.append(("group", group))
|
921
|
+
|
922
|
+
# process the header parameters
|
923
|
+
# process the form parameters
|
924
|
+
# process the body parameter
|
925
|
+
|
926
|
+
# set the HTTP header `Accept`
|
927
|
+
if "Accept" not in _header_params:
|
928
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
929
|
+
["application/json"]
|
930
|
+
)
|
931
|
+
|
932
|
+
# authentication setting
|
933
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
934
|
+
|
935
|
+
return self.api_client.param_serialize(
|
936
|
+
method="GET",
|
937
|
+
resource_path="/udf/symbol_info",
|
938
|
+
path_params=_path_params,
|
939
|
+
query_params=_query_params,
|
940
|
+
header_params=_header_params,
|
941
|
+
body=_body_params,
|
942
|
+
post_params=_form_params,
|
943
|
+
files=_files,
|
944
|
+
auth_settings=_auth_settings,
|
945
|
+
collection_formats=_collection_formats,
|
946
|
+
_host=_host,
|
947
|
+
_request_auth=_request_auth,
|
948
|
+
)
|
949
|
+
|
950
|
+
@validate_call
|
951
|
+
def get_udf_config(
|
952
|
+
self,
|
953
|
+
_request_timeout: Union[
|
954
|
+
None,
|
955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
956
|
+
Tuple[
|
957
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
958
|
+
],
|
959
|
+
] = None,
|
960
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
961
|
+
_content_type: Optional[StrictStr] = None,
|
962
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
963
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
964
|
+
) -> UDFConfig:
|
965
|
+
"""Get Config
|
966
|
+
|
967
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
968
|
+
"""
|
969
|
+
if self.is_sync:
|
970
|
+
return self._get_udf_config_sync(
|
971
|
+
_request_timeout=_request_timeout,
|
972
|
+
_request_auth=_request_auth,
|
973
|
+
_content_type=_content_type,
|
974
|
+
_headers=_headers,
|
975
|
+
_host_index=_host_index,
|
976
|
+
)
|
977
|
+
|
978
|
+
else:
|
979
|
+
return self._get_udf_config_async(
|
980
|
+
_request_timeout=_request_timeout,
|
981
|
+
_request_auth=_request_auth,
|
982
|
+
_content_type=_content_type,
|
983
|
+
_headers=_headers,
|
984
|
+
_host_index=_host_index,
|
985
|
+
)
|
986
|
+
|
987
|
+
@validate_call
|
988
|
+
def get_udf_config_with_http_info(
|
989
|
+
self,
|
990
|
+
_request_timeout: Union[
|
991
|
+
None,
|
992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
993
|
+
Tuple[
|
994
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
995
|
+
],
|
996
|
+
] = None,
|
997
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
998
|
+
_content_type: Optional[StrictStr] = None,
|
999
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1000
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1001
|
+
) -> ApiResponse[UDFConfig]:
|
1002
|
+
"""Get Config with HTTP info
|
1003
|
+
|
1004
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1005
|
+
"""
|
1006
|
+
if self.is_sync:
|
1007
|
+
return self._get_udf_config_sync_with_http_info(
|
1008
|
+
_request_timeout=_request_timeout,
|
1009
|
+
_request_auth=_request_auth,
|
1010
|
+
_content_type=_content_type,
|
1011
|
+
_headers=_headers,
|
1012
|
+
_host_index=_host_index,
|
1013
|
+
)
|
1014
|
+
|
1015
|
+
else:
|
1016
|
+
return self._get_udf_config_async_with_http_info(
|
1017
|
+
_request_timeout=_request_timeout,
|
1018
|
+
_request_auth=_request_auth,
|
1019
|
+
_content_type=_content_type,
|
1020
|
+
_headers=_headers,
|
1021
|
+
_host_index=_host_index,
|
1022
|
+
)
|
1023
|
+
|
1024
|
+
@validate_call
|
1025
|
+
def get_udf_config_without_preload_content(
|
1026
|
+
self,
|
1027
|
+
_request_timeout: Union[
|
1028
|
+
None,
|
1029
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1030
|
+
Tuple[
|
1031
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1032
|
+
],
|
1033
|
+
] = None,
|
1034
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1035
|
+
_content_type: Optional[StrictStr] = None,
|
1036
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1037
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1038
|
+
) -> RESTResponseType:
|
1039
|
+
"""Get Config without preloading content
|
1040
|
+
|
1041
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1042
|
+
"""
|
1043
|
+
if self.is_sync:
|
1044
|
+
return self._get_udf_config_sync_without_preload_content(
|
1045
|
+
_request_timeout=_request_timeout,
|
1046
|
+
_request_auth=_request_auth,
|
1047
|
+
_content_type=_content_type,
|
1048
|
+
_headers=_headers,
|
1049
|
+
_host_index=_host_index,
|
1050
|
+
)
|
1051
|
+
|
1052
|
+
else:
|
1053
|
+
return self._get_udf_config_async_without_preload_content(
|
1054
|
+
_request_timeout=_request_timeout,
|
1055
|
+
_request_auth=_request_auth,
|
1056
|
+
_content_type=_content_type,
|
1057
|
+
_headers=_headers,
|
1058
|
+
_host_index=_host_index,
|
1059
|
+
)
|
1060
|
+
|
1061
|
+
# Private async implementation methods
|
1062
|
+
@validate_call
|
1063
|
+
async def _get_udf_config_async(
|
1064
|
+
self,
|
1065
|
+
_request_timeout: Union[
|
1066
|
+
None,
|
1067
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1068
|
+
Tuple[
|
1069
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1070
|
+
],
|
1071
|
+
] = None,
|
1072
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1073
|
+
_content_type: Optional[StrictStr] = None,
|
1074
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1075
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1076
|
+
) -> UDFConfig:
|
1077
|
+
"""Get Config
|
1078
|
+
|
1079
|
+
|
1080
|
+
:param _request_timeout: timeout setting for this request. If one
|
1081
|
+
number provided, it will be total request
|
1082
|
+
timeout. It can also be a pair (tuple) of
|
554
1083
|
(connection, read) timeouts.
|
555
1084
|
:type _request_timeout: int, tuple(int, int), optional
|
556
1085
|
:param _request_auth: set to override the auth_settings for an a single
|
@@ -590,7 +1119,7 @@ class UDFApi:
|
|
590
1119
|
).data
|
591
1120
|
|
592
1121
|
@validate_call
|
593
|
-
async def
|
1122
|
+
async def _get_udf_config_async_with_http_info(
|
594
1123
|
self,
|
595
1124
|
_request_timeout: Union[
|
596
1125
|
None,
|
@@ -644,12 +1173,11 @@ class UDFApi:
|
|
644
1173
|
)
|
645
1174
|
await response_data.read()
|
646
1175
|
return self.api_client.response_deserialize(
|
647
|
-
response_data=response_data,
|
648
|
-
response_types_map=_response_types_map,
|
1176
|
+
response_data=response_data, response_types_map=_response_types_map
|
649
1177
|
)
|
650
1178
|
|
651
1179
|
@validate_call
|
652
|
-
async def
|
1180
|
+
async def _get_udf_config_async_without_preload_content(
|
653
1181
|
self,
|
654
1182
|
_request_timeout: Union[
|
655
1183
|
None,
|
@@ -701,7 +1229,80 @@ class UDFApi:
|
|
701
1229
|
response_data = await self.api_client.call_api(
|
702
1230
|
*_param, _request_timeout=_request_timeout
|
703
1231
|
)
|
704
|
-
return response_data
|
1232
|
+
return response_data
|
1233
|
+
|
1234
|
+
# Private sync implementation methods
|
1235
|
+
@validate_call
|
1236
|
+
def _get_udf_config_sync(
|
1237
|
+
self,
|
1238
|
+
_request_timeout: Union[
|
1239
|
+
None,
|
1240
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1241
|
+
Tuple[
|
1242
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1243
|
+
],
|
1244
|
+
] = None,
|
1245
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1246
|
+
_content_type: Optional[StrictStr] = None,
|
1247
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1248
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1249
|
+
) -> UDFConfig:
|
1250
|
+
"""Synchronous version of get_udf_config"""
|
1251
|
+
return async_to_sync(self._get_udf_config_async)(
|
1252
|
+
_request_timeout=_request_timeout,
|
1253
|
+
_request_auth=_request_auth,
|
1254
|
+
_content_type=_content_type,
|
1255
|
+
_headers=_headers,
|
1256
|
+
_host_index=_host_index,
|
1257
|
+
)
|
1258
|
+
|
1259
|
+
@validate_call
|
1260
|
+
def _get_udf_config_sync_with_http_info(
|
1261
|
+
self,
|
1262
|
+
_request_timeout: Union[
|
1263
|
+
None,
|
1264
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1265
|
+
Tuple[
|
1266
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1267
|
+
],
|
1268
|
+
] = None,
|
1269
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1270
|
+
_content_type: Optional[StrictStr] = None,
|
1271
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1272
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1273
|
+
) -> ApiResponse[UDFConfig]:
|
1274
|
+
"""Synchronous version of get_udf_config_with_http_info"""
|
1275
|
+
return async_to_sync(self._get_udf_config_async_with_http_info)(
|
1276
|
+
_request_timeout=_request_timeout,
|
1277
|
+
_request_auth=_request_auth,
|
1278
|
+
_content_type=_content_type,
|
1279
|
+
_headers=_headers,
|
1280
|
+
_host_index=_host_index,
|
1281
|
+
)
|
1282
|
+
|
1283
|
+
@validate_call
|
1284
|
+
def _get_udf_config_sync_without_preload_content(
|
1285
|
+
self,
|
1286
|
+
_request_timeout: Union[
|
1287
|
+
None,
|
1288
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1289
|
+
Tuple[
|
1290
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1291
|
+
],
|
1292
|
+
] = None,
|
1293
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1294
|
+
_content_type: Optional[StrictStr] = None,
|
1295
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1296
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1297
|
+
) -> RESTResponseType:
|
1298
|
+
"""Synchronous version of get_udf_config_without_preload_content"""
|
1299
|
+
return async_to_sync(self._get_udf_config_async_without_preload_content)(
|
1300
|
+
_request_timeout=_request_timeout,
|
1301
|
+
_request_auth=_request_auth,
|
1302
|
+
_content_type=_content_type,
|
1303
|
+
_headers=_headers,
|
1304
|
+
_host_index=_host_index,
|
1305
|
+
)
|
705
1306
|
|
706
1307
|
def _get_udf_config_serialize(
|
707
1308
|
self,
|
@@ -755,7 +1356,164 @@ class UDFApi:
|
|
755
1356
|
)
|
756
1357
|
|
757
1358
|
@validate_call
|
758
|
-
|
1359
|
+
def get_udf_history(
|
1360
|
+
self,
|
1361
|
+
symbol: StrictStr,
|
1362
|
+
resolution: Resolution,
|
1363
|
+
var_from: StrictInt,
|
1364
|
+
to: StrictInt,
|
1365
|
+
countback: Optional[StrictInt] = None,
|
1366
|
+
_request_timeout: Union[
|
1367
|
+
None,
|
1368
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1369
|
+
Tuple[
|
1370
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1371
|
+
],
|
1372
|
+
] = None,
|
1373
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1374
|
+
_content_type: Optional[StrictStr] = None,
|
1375
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1376
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1377
|
+
) -> OHLCV:
|
1378
|
+
"""Get History
|
1379
|
+
|
1380
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1381
|
+
"""
|
1382
|
+
if self.is_sync:
|
1383
|
+
return self._get_udf_history_sync(
|
1384
|
+
symbol=symbol,
|
1385
|
+
resolution=resolution,
|
1386
|
+
var_from=var_from,
|
1387
|
+
to=to,
|
1388
|
+
countback=countback,
|
1389
|
+
_request_timeout=_request_timeout,
|
1390
|
+
_request_auth=_request_auth,
|
1391
|
+
_content_type=_content_type,
|
1392
|
+
_headers=_headers,
|
1393
|
+
_host_index=_host_index,
|
1394
|
+
)
|
1395
|
+
|
1396
|
+
else:
|
1397
|
+
return self._get_udf_history_async(
|
1398
|
+
symbol=symbol,
|
1399
|
+
resolution=resolution,
|
1400
|
+
var_from=var_from,
|
1401
|
+
to=to,
|
1402
|
+
countback=countback,
|
1403
|
+
_request_timeout=_request_timeout,
|
1404
|
+
_request_auth=_request_auth,
|
1405
|
+
_content_type=_content_type,
|
1406
|
+
_headers=_headers,
|
1407
|
+
_host_index=_host_index,
|
1408
|
+
)
|
1409
|
+
|
1410
|
+
@validate_call
|
1411
|
+
def get_udf_history_with_http_info(
|
1412
|
+
self,
|
1413
|
+
symbol: StrictStr,
|
1414
|
+
resolution: Resolution,
|
1415
|
+
var_from: StrictInt,
|
1416
|
+
to: StrictInt,
|
1417
|
+
countback: Optional[StrictInt] = None,
|
1418
|
+
_request_timeout: Union[
|
1419
|
+
None,
|
1420
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1421
|
+
Tuple[
|
1422
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1423
|
+
],
|
1424
|
+
] = None,
|
1425
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1426
|
+
_content_type: Optional[StrictStr] = None,
|
1427
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1428
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1429
|
+
) -> ApiResponse[OHLCV]:
|
1430
|
+
"""Get History with HTTP info
|
1431
|
+
|
1432
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1433
|
+
"""
|
1434
|
+
if self.is_sync:
|
1435
|
+
return self._get_udf_history_sync_with_http_info(
|
1436
|
+
symbol=symbol,
|
1437
|
+
resolution=resolution,
|
1438
|
+
var_from=var_from,
|
1439
|
+
to=to,
|
1440
|
+
countback=countback,
|
1441
|
+
_request_timeout=_request_timeout,
|
1442
|
+
_request_auth=_request_auth,
|
1443
|
+
_content_type=_content_type,
|
1444
|
+
_headers=_headers,
|
1445
|
+
_host_index=_host_index,
|
1446
|
+
)
|
1447
|
+
|
1448
|
+
else:
|
1449
|
+
return self._get_udf_history_async_with_http_info(
|
1450
|
+
symbol=symbol,
|
1451
|
+
resolution=resolution,
|
1452
|
+
var_from=var_from,
|
1453
|
+
to=to,
|
1454
|
+
countback=countback,
|
1455
|
+
_request_timeout=_request_timeout,
|
1456
|
+
_request_auth=_request_auth,
|
1457
|
+
_content_type=_content_type,
|
1458
|
+
_headers=_headers,
|
1459
|
+
_host_index=_host_index,
|
1460
|
+
)
|
1461
|
+
|
1462
|
+
@validate_call
|
1463
|
+
def get_udf_history_without_preload_content(
|
1464
|
+
self,
|
1465
|
+
symbol: StrictStr,
|
1466
|
+
resolution: Resolution,
|
1467
|
+
var_from: StrictInt,
|
1468
|
+
to: StrictInt,
|
1469
|
+
countback: Optional[StrictInt] = None,
|
1470
|
+
_request_timeout: Union[
|
1471
|
+
None,
|
1472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1473
|
+
Tuple[
|
1474
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1475
|
+
],
|
1476
|
+
] = None,
|
1477
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1478
|
+
_content_type: Optional[StrictStr] = None,
|
1479
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1480
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1481
|
+
) -> RESTResponseType:
|
1482
|
+
"""Get History without preloading content
|
1483
|
+
|
1484
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1485
|
+
"""
|
1486
|
+
if self.is_sync:
|
1487
|
+
return self._get_udf_history_sync_without_preload_content(
|
1488
|
+
symbol=symbol,
|
1489
|
+
resolution=resolution,
|
1490
|
+
var_from=var_from,
|
1491
|
+
to=to,
|
1492
|
+
countback=countback,
|
1493
|
+
_request_timeout=_request_timeout,
|
1494
|
+
_request_auth=_request_auth,
|
1495
|
+
_content_type=_content_type,
|
1496
|
+
_headers=_headers,
|
1497
|
+
_host_index=_host_index,
|
1498
|
+
)
|
1499
|
+
|
1500
|
+
else:
|
1501
|
+
return self._get_udf_history_async_without_preload_content(
|
1502
|
+
symbol=symbol,
|
1503
|
+
resolution=resolution,
|
1504
|
+
var_from=var_from,
|
1505
|
+
to=to,
|
1506
|
+
countback=countback,
|
1507
|
+
_request_timeout=_request_timeout,
|
1508
|
+
_request_auth=_request_auth,
|
1509
|
+
_content_type=_content_type,
|
1510
|
+
_headers=_headers,
|
1511
|
+
_host_index=_host_index,
|
1512
|
+
)
|
1513
|
+
|
1514
|
+
# Private async implementation methods
|
1515
|
+
@validate_call
|
1516
|
+
async def _get_udf_history_async(
|
759
1517
|
self,
|
760
1518
|
symbol: StrictStr,
|
761
1519
|
resolution: Resolution,
|
@@ -834,7 +1592,7 @@ class UDFApi:
|
|
834
1592
|
).data
|
835
1593
|
|
836
1594
|
@validate_call
|
837
|
-
async def
|
1595
|
+
async def _get_udf_history_async_with_http_info(
|
838
1596
|
self,
|
839
1597
|
symbol: StrictStr,
|
840
1598
|
resolution: Resolution,
|
@@ -908,12 +1666,11 @@ class UDFApi:
|
|
908
1666
|
)
|
909
1667
|
await response_data.read()
|
910
1668
|
return self.api_client.response_deserialize(
|
911
|
-
response_data=response_data,
|
912
|
-
response_types_map=_response_types_map,
|
1669
|
+
response_data=response_data, response_types_map=_response_types_map
|
913
1670
|
)
|
914
1671
|
|
915
1672
|
@validate_call
|
916
|
-
async def
|
1673
|
+
async def _get_udf_history_async_without_preload_content(
|
917
1674
|
self,
|
918
1675
|
symbol: StrictStr,
|
919
1676
|
resolution: Resolution,
|
@@ -985,7 +1742,110 @@ class UDFApi:
|
|
985
1742
|
response_data = await self.api_client.call_api(
|
986
1743
|
*_param, _request_timeout=_request_timeout
|
987
1744
|
)
|
988
|
-
return response_data
|
1745
|
+
return response_data
|
1746
|
+
|
1747
|
+
# Private sync implementation methods
|
1748
|
+
@validate_call
|
1749
|
+
def _get_udf_history_sync(
|
1750
|
+
self,
|
1751
|
+
symbol: StrictStr,
|
1752
|
+
resolution: Resolution,
|
1753
|
+
var_from: StrictInt,
|
1754
|
+
to: StrictInt,
|
1755
|
+
countback: Optional[StrictInt] = None,
|
1756
|
+
_request_timeout: Union[
|
1757
|
+
None,
|
1758
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1759
|
+
Tuple[
|
1760
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1761
|
+
],
|
1762
|
+
] = None,
|
1763
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1764
|
+
_content_type: Optional[StrictStr] = None,
|
1765
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1766
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1767
|
+
) -> OHLCV:
|
1768
|
+
"""Synchronous version of get_udf_history"""
|
1769
|
+
return async_to_sync(self._get_udf_history_async)(
|
1770
|
+
symbol=symbol,
|
1771
|
+
resolution=resolution,
|
1772
|
+
var_from=var_from,
|
1773
|
+
to=to,
|
1774
|
+
countback=countback,
|
1775
|
+
_request_timeout=_request_timeout,
|
1776
|
+
_request_auth=_request_auth,
|
1777
|
+
_content_type=_content_type,
|
1778
|
+
_headers=_headers,
|
1779
|
+
_host_index=_host_index,
|
1780
|
+
)
|
1781
|
+
|
1782
|
+
@validate_call
|
1783
|
+
def _get_udf_history_sync_with_http_info(
|
1784
|
+
self,
|
1785
|
+
symbol: StrictStr,
|
1786
|
+
resolution: Resolution,
|
1787
|
+
var_from: StrictInt,
|
1788
|
+
to: StrictInt,
|
1789
|
+
countback: Optional[StrictInt] = None,
|
1790
|
+
_request_timeout: Union[
|
1791
|
+
None,
|
1792
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1793
|
+
Tuple[
|
1794
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1795
|
+
],
|
1796
|
+
] = None,
|
1797
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1798
|
+
_content_type: Optional[StrictStr] = None,
|
1799
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1800
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1801
|
+
) -> ApiResponse[OHLCV]:
|
1802
|
+
"""Synchronous version of get_udf_history_with_http_info"""
|
1803
|
+
return async_to_sync(self._get_udf_history_async_with_http_info)(
|
1804
|
+
symbol=symbol,
|
1805
|
+
resolution=resolution,
|
1806
|
+
var_from=var_from,
|
1807
|
+
to=to,
|
1808
|
+
countback=countback,
|
1809
|
+
_request_timeout=_request_timeout,
|
1810
|
+
_request_auth=_request_auth,
|
1811
|
+
_content_type=_content_type,
|
1812
|
+
_headers=_headers,
|
1813
|
+
_host_index=_host_index,
|
1814
|
+
)
|
1815
|
+
|
1816
|
+
@validate_call
|
1817
|
+
def _get_udf_history_sync_without_preload_content(
|
1818
|
+
self,
|
1819
|
+
symbol: StrictStr,
|
1820
|
+
resolution: Resolution,
|
1821
|
+
var_from: StrictInt,
|
1822
|
+
to: StrictInt,
|
1823
|
+
countback: Optional[StrictInt] = None,
|
1824
|
+
_request_timeout: Union[
|
1825
|
+
None,
|
1826
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1827
|
+
Tuple[
|
1828
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1829
|
+
],
|
1830
|
+
] = None,
|
1831
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1832
|
+
_content_type: Optional[StrictStr] = None,
|
1833
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1834
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1835
|
+
) -> RESTResponseType:
|
1836
|
+
"""Synchronous version of get_udf_history_without_preload_content"""
|
1837
|
+
return async_to_sync(self._get_udf_history_async_without_preload_content)(
|
1838
|
+
symbol=symbol,
|
1839
|
+
resolution=resolution,
|
1840
|
+
var_from=var_from,
|
1841
|
+
to=to,
|
1842
|
+
countback=countback,
|
1843
|
+
_request_timeout=_request_timeout,
|
1844
|
+
_request_auth=_request_auth,
|
1845
|
+
_content_type=_content_type,
|
1846
|
+
_headers=_headers,
|
1847
|
+
_host_index=_host_index,
|
1848
|
+
)
|
989
1849
|
|
990
1850
|
def _get_udf_history_serialize(
|
991
1851
|
self,
|
@@ -1039,32 +1899,153 @@ class UDFApi:
|
|
1039
1899
|
# process the form parameters
|
1040
1900
|
# process the body parameter
|
1041
1901
|
|
1042
|
-
# set the HTTP header `Accept`
|
1043
|
-
if "Accept" not in _header_params:
|
1044
|
-
_header_params["Accept"] = self.api_client.select_header_accept(
|
1045
|
-
["application/json"]
|
1902
|
+
# set the HTTP header `Accept`
|
1903
|
+
if "Accept" not in _header_params:
|
1904
|
+
_header_params["Accept"] = self.api_client.select_header_accept(
|
1905
|
+
["application/json"]
|
1906
|
+
)
|
1907
|
+
|
1908
|
+
# authentication setting
|
1909
|
+
_auth_settings: List[str] = ["APIKeyHeader", "HTTPBearer"]
|
1910
|
+
|
1911
|
+
return self.api_client.param_serialize(
|
1912
|
+
method="GET",
|
1913
|
+
resource_path="/udf/history",
|
1914
|
+
path_params=_path_params,
|
1915
|
+
query_params=_query_params,
|
1916
|
+
header_params=_header_params,
|
1917
|
+
body=_body_params,
|
1918
|
+
post_params=_form_params,
|
1919
|
+
files=_files,
|
1920
|
+
auth_settings=_auth_settings,
|
1921
|
+
collection_formats=_collection_formats,
|
1922
|
+
_host=_host,
|
1923
|
+
_request_auth=_request_auth,
|
1924
|
+
)
|
1925
|
+
|
1926
|
+
@validate_call
|
1927
|
+
def options_handler(
|
1928
|
+
self,
|
1929
|
+
path: StrictStr,
|
1930
|
+
_request_timeout: Union[
|
1931
|
+
None,
|
1932
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1933
|
+
Tuple[
|
1934
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1935
|
+
],
|
1936
|
+
] = None,
|
1937
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1938
|
+
_content_type: Optional[StrictStr] = None,
|
1939
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1940
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1941
|
+
) -> object:
|
1942
|
+
"""Options Handler
|
1943
|
+
|
1944
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1945
|
+
"""
|
1946
|
+
if self.is_sync:
|
1947
|
+
return self._options_handler_sync(
|
1948
|
+
path=path,
|
1949
|
+
_request_timeout=_request_timeout,
|
1950
|
+
_request_auth=_request_auth,
|
1951
|
+
_content_type=_content_type,
|
1952
|
+
_headers=_headers,
|
1953
|
+
_host_index=_host_index,
|
1954
|
+
)
|
1955
|
+
|
1956
|
+
else:
|
1957
|
+
return self._options_handler_async(
|
1958
|
+
path=path,
|
1959
|
+
_request_timeout=_request_timeout,
|
1960
|
+
_request_auth=_request_auth,
|
1961
|
+
_content_type=_content_type,
|
1962
|
+
_headers=_headers,
|
1963
|
+
_host_index=_host_index,
|
1964
|
+
)
|
1965
|
+
|
1966
|
+
@validate_call
|
1967
|
+
def options_handler_with_http_info(
|
1968
|
+
self,
|
1969
|
+
path: StrictStr,
|
1970
|
+
_request_timeout: Union[
|
1971
|
+
None,
|
1972
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1973
|
+
Tuple[
|
1974
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
1975
|
+
],
|
1976
|
+
] = None,
|
1977
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1978
|
+
_content_type: Optional[StrictStr] = None,
|
1979
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1980
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1981
|
+
) -> ApiResponse[object]:
|
1982
|
+
"""Options Handler with HTTP info
|
1983
|
+
|
1984
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
1985
|
+
"""
|
1986
|
+
if self.is_sync:
|
1987
|
+
return self._options_handler_sync_with_http_info(
|
1988
|
+
path=path,
|
1989
|
+
_request_timeout=_request_timeout,
|
1990
|
+
_request_auth=_request_auth,
|
1991
|
+
_content_type=_content_type,
|
1992
|
+
_headers=_headers,
|
1993
|
+
_host_index=_host_index,
|
1994
|
+
)
|
1995
|
+
|
1996
|
+
else:
|
1997
|
+
return self._options_handler_async_with_http_info(
|
1998
|
+
path=path,
|
1999
|
+
_request_timeout=_request_timeout,
|
2000
|
+
_request_auth=_request_auth,
|
2001
|
+
_content_type=_content_type,
|
2002
|
+
_headers=_headers,
|
2003
|
+
_host_index=_host_index,
|
1046
2004
|
)
|
1047
2005
|
|
1048
|
-
|
1049
|
-
|
2006
|
+
@validate_call
|
2007
|
+
def options_handler_without_preload_content(
|
2008
|
+
self,
|
2009
|
+
path: StrictStr,
|
2010
|
+
_request_timeout: Union[
|
2011
|
+
None,
|
2012
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2013
|
+
Tuple[
|
2014
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2015
|
+
],
|
2016
|
+
] = None,
|
2017
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2018
|
+
_content_type: Optional[StrictStr] = None,
|
2019
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2020
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2021
|
+
) -> RESTResponseType:
|
2022
|
+
"""Options Handler without preloading content
|
2023
|
+
|
2024
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2025
|
+
"""
|
2026
|
+
if self.is_sync:
|
2027
|
+
return self._options_handler_sync_without_preload_content(
|
2028
|
+
path=path,
|
2029
|
+
_request_timeout=_request_timeout,
|
2030
|
+
_request_auth=_request_auth,
|
2031
|
+
_content_type=_content_type,
|
2032
|
+
_headers=_headers,
|
2033
|
+
_host_index=_host_index,
|
2034
|
+
)
|
1050
2035
|
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
auth_settings=_auth_settings,
|
1061
|
-
collection_formats=_collection_formats,
|
1062
|
-
_host=_host,
|
1063
|
-
_request_auth=_request_auth,
|
1064
|
-
)
|
2036
|
+
else:
|
2037
|
+
return self._options_handler_async_without_preload_content(
|
2038
|
+
path=path,
|
2039
|
+
_request_timeout=_request_timeout,
|
2040
|
+
_request_auth=_request_auth,
|
2041
|
+
_content_type=_content_type,
|
2042
|
+
_headers=_headers,
|
2043
|
+
_host_index=_host_index,
|
2044
|
+
)
|
1065
2045
|
|
2046
|
+
# Private async implementation methods
|
1066
2047
|
@validate_call
|
1067
|
-
async def
|
2048
|
+
async def _options_handler_async(
|
1068
2049
|
self,
|
1069
2050
|
path: StrictStr,
|
1070
2051
|
_request_timeout: Union[
|
@@ -1128,7 +2109,7 @@ class UDFApi:
|
|
1128
2109
|
).data
|
1129
2110
|
|
1130
2111
|
@validate_call
|
1131
|
-
async def
|
2112
|
+
async def _options_handler_async_with_http_info(
|
1132
2113
|
self,
|
1133
2114
|
path: StrictStr,
|
1134
2115
|
_request_timeout: Union[
|
@@ -1187,12 +2168,11 @@ class UDFApi:
|
|
1187
2168
|
)
|
1188
2169
|
await response_data.read()
|
1189
2170
|
return self.api_client.response_deserialize(
|
1190
|
-
response_data=response_data,
|
1191
|
-
response_types_map=_response_types_map,
|
2171
|
+
response_data=response_data, response_types_map=_response_types_map
|
1192
2172
|
)
|
1193
2173
|
|
1194
2174
|
@validate_call
|
1195
|
-
async def
|
2175
|
+
async def _options_handler_async_without_preload_content(
|
1196
2176
|
self,
|
1197
2177
|
path: StrictStr,
|
1198
2178
|
_request_timeout: Union[
|
@@ -1249,7 +2229,86 @@ class UDFApi:
|
|
1249
2229
|
response_data = await self.api_client.call_api(
|
1250
2230
|
*_param, _request_timeout=_request_timeout
|
1251
2231
|
)
|
1252
|
-
return response_data
|
2232
|
+
return response_data
|
2233
|
+
|
2234
|
+
# Private sync implementation methods
|
2235
|
+
@validate_call
|
2236
|
+
def _options_handler_sync(
|
2237
|
+
self,
|
2238
|
+
path: StrictStr,
|
2239
|
+
_request_timeout: Union[
|
2240
|
+
None,
|
2241
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2242
|
+
Tuple[
|
2243
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2244
|
+
],
|
2245
|
+
] = None,
|
2246
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2247
|
+
_content_type: Optional[StrictStr] = None,
|
2248
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2249
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2250
|
+
) -> object:
|
2251
|
+
"""Synchronous version of options_handler"""
|
2252
|
+
return async_to_sync(self._options_handler_async)(
|
2253
|
+
path=path,
|
2254
|
+
_request_timeout=_request_timeout,
|
2255
|
+
_request_auth=_request_auth,
|
2256
|
+
_content_type=_content_type,
|
2257
|
+
_headers=_headers,
|
2258
|
+
_host_index=_host_index,
|
2259
|
+
)
|
2260
|
+
|
2261
|
+
@validate_call
|
2262
|
+
def _options_handler_sync_with_http_info(
|
2263
|
+
self,
|
2264
|
+
path: StrictStr,
|
2265
|
+
_request_timeout: Union[
|
2266
|
+
None,
|
2267
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2268
|
+
Tuple[
|
2269
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2270
|
+
],
|
2271
|
+
] = None,
|
2272
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2273
|
+
_content_type: Optional[StrictStr] = None,
|
2274
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2275
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2276
|
+
) -> ApiResponse[object]:
|
2277
|
+
"""Synchronous version of options_handler_with_http_info"""
|
2278
|
+
return async_to_sync(self._options_handler_async_with_http_info)(
|
2279
|
+
path=path,
|
2280
|
+
_request_timeout=_request_timeout,
|
2281
|
+
_request_auth=_request_auth,
|
2282
|
+
_content_type=_content_type,
|
2283
|
+
_headers=_headers,
|
2284
|
+
_host_index=_host_index,
|
2285
|
+
)
|
2286
|
+
|
2287
|
+
@validate_call
|
2288
|
+
def _options_handler_sync_without_preload_content(
|
2289
|
+
self,
|
2290
|
+
path: StrictStr,
|
2291
|
+
_request_timeout: Union[
|
2292
|
+
None,
|
2293
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2294
|
+
Tuple[
|
2295
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2296
|
+
],
|
2297
|
+
] = None,
|
2298
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2299
|
+
_content_type: Optional[StrictStr] = None,
|
2300
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2301
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2302
|
+
) -> RESTResponseType:
|
2303
|
+
"""Synchronous version of options_handler_without_preload_content"""
|
2304
|
+
return async_to_sync(self._options_handler_async_without_preload_content)(
|
2305
|
+
path=path,
|
2306
|
+
_request_timeout=_request_timeout,
|
2307
|
+
_request_auth=_request_auth,
|
2308
|
+
_content_type=_content_type,
|
2309
|
+
_headers=_headers,
|
2310
|
+
_host_index=_host_index,
|
2311
|
+
)
|
1253
2312
|
|
1254
2313
|
def _options_handler_serialize(
|
1255
2314
|
self,
|
@@ -1306,7 +2365,137 @@ class UDFApi:
|
|
1306
2365
|
)
|
1307
2366
|
|
1308
2367
|
@validate_call
|
1309
|
-
|
2368
|
+
def search_symbols(
|
2369
|
+
self,
|
2370
|
+
query: StrictStr,
|
2371
|
+
limit: Optional[StrictInt] = None,
|
2372
|
+
_request_timeout: Union[
|
2373
|
+
None,
|
2374
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2375
|
+
Tuple[
|
2376
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2377
|
+
],
|
2378
|
+
] = None,
|
2379
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2380
|
+
_content_type: Optional[StrictStr] = None,
|
2381
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2382
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2383
|
+
) -> List[SearchSymbol]:
|
2384
|
+
"""Search Symbols
|
2385
|
+
|
2386
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2387
|
+
"""
|
2388
|
+
if self.is_sync:
|
2389
|
+
return self._search_symbols_sync(
|
2390
|
+
query=query,
|
2391
|
+
limit=limit,
|
2392
|
+
_request_timeout=_request_timeout,
|
2393
|
+
_request_auth=_request_auth,
|
2394
|
+
_content_type=_content_type,
|
2395
|
+
_headers=_headers,
|
2396
|
+
_host_index=_host_index,
|
2397
|
+
)
|
2398
|
+
|
2399
|
+
else:
|
2400
|
+
return self._search_symbols_async(
|
2401
|
+
query=query,
|
2402
|
+
limit=limit,
|
2403
|
+
_request_timeout=_request_timeout,
|
2404
|
+
_request_auth=_request_auth,
|
2405
|
+
_content_type=_content_type,
|
2406
|
+
_headers=_headers,
|
2407
|
+
_host_index=_host_index,
|
2408
|
+
)
|
2409
|
+
|
2410
|
+
@validate_call
|
2411
|
+
def search_symbols_with_http_info(
|
2412
|
+
self,
|
2413
|
+
query: StrictStr,
|
2414
|
+
limit: Optional[StrictInt] = None,
|
2415
|
+
_request_timeout: Union[
|
2416
|
+
None,
|
2417
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2418
|
+
Tuple[
|
2419
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2420
|
+
],
|
2421
|
+
] = None,
|
2422
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2423
|
+
_content_type: Optional[StrictStr] = None,
|
2424
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2425
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2426
|
+
) -> ApiResponse[List[SearchSymbol]]:
|
2427
|
+
"""Search Symbols with HTTP info
|
2428
|
+
|
2429
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2430
|
+
"""
|
2431
|
+
if self.is_sync:
|
2432
|
+
return self._search_symbols_sync_with_http_info(
|
2433
|
+
query=query,
|
2434
|
+
limit=limit,
|
2435
|
+
_request_timeout=_request_timeout,
|
2436
|
+
_request_auth=_request_auth,
|
2437
|
+
_content_type=_content_type,
|
2438
|
+
_headers=_headers,
|
2439
|
+
_host_index=_host_index,
|
2440
|
+
)
|
2441
|
+
|
2442
|
+
else:
|
2443
|
+
return self._search_symbols_async_with_http_info(
|
2444
|
+
query=query,
|
2445
|
+
limit=limit,
|
2446
|
+
_request_timeout=_request_timeout,
|
2447
|
+
_request_auth=_request_auth,
|
2448
|
+
_content_type=_content_type,
|
2449
|
+
_headers=_headers,
|
2450
|
+
_host_index=_host_index,
|
2451
|
+
)
|
2452
|
+
|
2453
|
+
@validate_call
|
2454
|
+
def search_symbols_without_preload_content(
|
2455
|
+
self,
|
2456
|
+
query: StrictStr,
|
2457
|
+
limit: Optional[StrictInt] = None,
|
2458
|
+
_request_timeout: Union[
|
2459
|
+
None,
|
2460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2461
|
+
Tuple[
|
2462
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2463
|
+
],
|
2464
|
+
] = None,
|
2465
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2466
|
+
_content_type: Optional[StrictStr] = None,
|
2467
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2468
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2469
|
+
) -> RESTResponseType:
|
2470
|
+
"""Search Symbols without preloading content
|
2471
|
+
|
2472
|
+
This method can work in both sync and async modes based on the is_sync flag.
|
2473
|
+
"""
|
2474
|
+
if self.is_sync:
|
2475
|
+
return self._search_symbols_sync_without_preload_content(
|
2476
|
+
query=query,
|
2477
|
+
limit=limit,
|
2478
|
+
_request_timeout=_request_timeout,
|
2479
|
+
_request_auth=_request_auth,
|
2480
|
+
_content_type=_content_type,
|
2481
|
+
_headers=_headers,
|
2482
|
+
_host_index=_host_index,
|
2483
|
+
)
|
2484
|
+
|
2485
|
+
else:
|
2486
|
+
return self._search_symbols_async_without_preload_content(
|
2487
|
+
query=query,
|
2488
|
+
limit=limit,
|
2489
|
+
_request_timeout=_request_timeout,
|
2490
|
+
_request_auth=_request_auth,
|
2491
|
+
_content_type=_content_type,
|
2492
|
+
_headers=_headers,
|
2493
|
+
_host_index=_host_index,
|
2494
|
+
)
|
2495
|
+
|
2496
|
+
# Private async implementation methods
|
2497
|
+
@validate_call
|
2498
|
+
async def _search_symbols_async(
|
1310
2499
|
self,
|
1311
2500
|
query: StrictStr,
|
1312
2501
|
limit: Optional[StrictInt] = None,
|
@@ -1374,7 +2563,7 @@ class UDFApi:
|
|
1374
2563
|
).data
|
1375
2564
|
|
1376
2565
|
@validate_call
|
1377
|
-
async def
|
2566
|
+
async def _search_symbols_async_with_http_info(
|
1378
2567
|
self,
|
1379
2568
|
query: StrictStr,
|
1380
2569
|
limit: Optional[StrictInt] = None,
|
@@ -1437,12 +2626,11 @@ class UDFApi:
|
|
1437
2626
|
)
|
1438
2627
|
await response_data.read()
|
1439
2628
|
return self.api_client.response_deserialize(
|
1440
|
-
response_data=response_data,
|
1441
|
-
response_types_map=_response_types_map,
|
2629
|
+
response_data=response_data, response_types_map=_response_types_map
|
1442
2630
|
)
|
1443
2631
|
|
1444
2632
|
@validate_call
|
1445
|
-
async def
|
2633
|
+
async def _search_symbols_async_without_preload_content(
|
1446
2634
|
self,
|
1447
2635
|
query: StrictStr,
|
1448
2636
|
limit: Optional[StrictInt] = None,
|
@@ -1503,7 +2691,92 @@ class UDFApi:
|
|
1503
2691
|
response_data = await self.api_client.call_api(
|
1504
2692
|
*_param, _request_timeout=_request_timeout
|
1505
2693
|
)
|
1506
|
-
return response_data
|
2694
|
+
return response_data
|
2695
|
+
|
2696
|
+
# Private sync implementation methods
|
2697
|
+
@validate_call
|
2698
|
+
def _search_symbols_sync(
|
2699
|
+
self,
|
2700
|
+
query: StrictStr,
|
2701
|
+
limit: Optional[StrictInt] = None,
|
2702
|
+
_request_timeout: Union[
|
2703
|
+
None,
|
2704
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2705
|
+
Tuple[
|
2706
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2707
|
+
],
|
2708
|
+
] = None,
|
2709
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2710
|
+
_content_type: Optional[StrictStr] = None,
|
2711
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2712
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2713
|
+
) -> List[SearchSymbol]:
|
2714
|
+
"""Synchronous version of search_symbols"""
|
2715
|
+
return async_to_sync(self._search_symbols_async)(
|
2716
|
+
query=query,
|
2717
|
+
limit=limit,
|
2718
|
+
_request_timeout=_request_timeout,
|
2719
|
+
_request_auth=_request_auth,
|
2720
|
+
_content_type=_content_type,
|
2721
|
+
_headers=_headers,
|
2722
|
+
_host_index=_host_index,
|
2723
|
+
)
|
2724
|
+
|
2725
|
+
@validate_call
|
2726
|
+
def _search_symbols_sync_with_http_info(
|
2727
|
+
self,
|
2728
|
+
query: StrictStr,
|
2729
|
+
limit: Optional[StrictInt] = None,
|
2730
|
+
_request_timeout: Union[
|
2731
|
+
None,
|
2732
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2733
|
+
Tuple[
|
2734
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2735
|
+
],
|
2736
|
+
] = None,
|
2737
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2738
|
+
_content_type: Optional[StrictStr] = None,
|
2739
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2740
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2741
|
+
) -> ApiResponse[List[SearchSymbol]]:
|
2742
|
+
"""Synchronous version of search_symbols_with_http_info"""
|
2743
|
+
return async_to_sync(self._search_symbols_async_with_http_info)(
|
2744
|
+
query=query,
|
2745
|
+
limit=limit,
|
2746
|
+
_request_timeout=_request_timeout,
|
2747
|
+
_request_auth=_request_auth,
|
2748
|
+
_content_type=_content_type,
|
2749
|
+
_headers=_headers,
|
2750
|
+
_host_index=_host_index,
|
2751
|
+
)
|
2752
|
+
|
2753
|
+
@validate_call
|
2754
|
+
def _search_symbols_sync_without_preload_content(
|
2755
|
+
self,
|
2756
|
+
query: StrictStr,
|
2757
|
+
limit: Optional[StrictInt] = None,
|
2758
|
+
_request_timeout: Union[
|
2759
|
+
None,
|
2760
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2761
|
+
Tuple[
|
2762
|
+
Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
|
2763
|
+
],
|
2764
|
+
] = None,
|
2765
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2766
|
+
_content_type: Optional[StrictStr] = None,
|
2767
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2768
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2769
|
+
) -> RESTResponseType:
|
2770
|
+
"""Synchronous version of search_symbols_without_preload_content"""
|
2771
|
+
return async_to_sync(self._search_symbols_async_without_preload_content)(
|
2772
|
+
query=query,
|
2773
|
+
limit=limit,
|
2774
|
+
_request_timeout=_request_timeout,
|
2775
|
+
_request_auth=_request_auth,
|
2776
|
+
_content_type=_content_type,
|
2777
|
+
_headers=_headers,
|
2778
|
+
_host_index=_host_index,
|
2779
|
+
)
|
1507
2780
|
|
1508
2781
|
def _search_symbols_serialize(
|
1509
2782
|
self,
|