crypticorn 2.17.0rc5__py3-none-any.whl → 2.17.0rc6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crypticorn/auth/client/api/admin_api.py +6 -24
- crypticorn/auth/client/api/auth_api.py +36 -144
- crypticorn/auth/client/api/service_api.py +3 -12
- crypticorn/auth/client/api/user_api.py +33 -132
- crypticorn/auth/client/api/wallet_api.py +18 -72
- crypticorn/cli/templates/Dockerfile +5 -2
- crypticorn/common/auth.py +30 -0
- crypticorn/common/errors.py +10 -0
- crypticorn/common/pagination.py +1 -1
- crypticorn/common/router/admin_router.py +1 -11
- crypticorn/common/router/status_router.py +33 -2
- crypticorn/common/scopes.py +2 -2
- crypticorn/dex/client/api/admin_api.py +21 -84
- crypticorn/dex/client/api/signals_api.py +9 -36
- crypticorn/dex/client/api/status_api.py +6 -24
- crypticorn/hive/client/api/admin_api.py +18 -72
- crypticorn/hive/client/api/data_api.py +6 -24
- crypticorn/hive/client/api/models_api.py +21 -84
- crypticorn/hive/client/api/status_api.py +6 -24
- crypticorn/klines/client/api/admin_api.py +18 -72
- crypticorn/klines/client/api/change_in_timeframe_api.py +3 -12
- crypticorn/klines/client/api/funding_rates_api.py +3 -12
- crypticorn/klines/client/api/ohlcv_data_api.py +3 -12
- crypticorn/klines/client/api/status_api.py +6 -24
- crypticorn/klines/client/api/symbols_api.py +3 -12
- crypticorn/klines/client/api/udf_api.py +18 -72
- crypticorn/metrics/client/api/admin_api.py +18 -72
- crypticorn/metrics/client/api/exchanges_api.py +12 -48
- crypticorn/metrics/client/api/indicators_api.py +6 -24
- crypticorn/metrics/client/api/logs_api.py +3 -12
- crypticorn/metrics/client/api/marketcap_api.py +12 -48
- crypticorn/metrics/client/api/markets_api.py +3 -12
- crypticorn/metrics/client/api/quote_currencies_api.py +3 -12
- crypticorn/metrics/client/api/status_api.py +6 -24
- crypticorn/metrics/client/api/tokens_api.py +6 -24
- crypticorn/pay/client/api/admin_api.py +21 -84
- crypticorn/pay/client/api/now_payments_api.py +15 -60
- crypticorn/pay/client/api/payments_api.py +6 -24
- crypticorn/pay/client/api/products_api.py +12 -48
- crypticorn/pay/client/api/status_api.py +6 -24
- crypticorn/trade/client/__init__.py +10 -0
- crypticorn/trade/client/api/admin_api.py +21 -84
- crypticorn/trade/client/api/api_keys_api.py +207 -184
- crypticorn/trade/client/api/bots_api.py +2435 -662
- crypticorn/trade/client/api/exchanges_api.py +9 -36
- crypticorn/trade/client/api/notifications_api.py +18 -72
- crypticorn/trade/client/api/orders_api.py +3 -12
- crypticorn/trade/client/api/status_api.py +6 -24
- crypticorn/trade/client/api/strategies_api.py +15 -60
- crypticorn/trade/client/api/trading_actions_api.py +431 -112
- crypticorn/trade/client/configuration.py +2 -2
- crypticorn/trade/client/models/__init__.py +10 -0
- crypticorn/trade/client/models/paginated_response_futures_trading_action.py +134 -0
- crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action.py +141 -0
- crypticorn/trade/client/models/paginated_response_union_futures_trading_action_spot_trading_action_data_inner.py +165 -0
- crypticorn/trade/client/models/spot_trading_action.py +207 -0
- {crypticorn-2.17.0rc5.dist-info → crypticorn-2.17.0rc6.dist-info}/METADATA +3 -3
- {crypticorn-2.17.0rc5.dist-info → crypticorn-2.17.0rc6.dist-info}/RECORD +62 -58
- {crypticorn-2.17.0rc5.dist-info → crypticorn-2.17.0rc6.dist-info}/WHEEL +0 -0
- {crypticorn-2.17.0rc5.dist-info → crypticorn-2.17.0rc6.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.17.0rc5.dist-info → crypticorn-2.17.0rc6.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.17.0rc5.dist-info → crypticorn-2.17.0rc6.dist-info}/top_level.txt +0 -0
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
17
|
from typing_extensions import Annotated
|
18
18
|
|
19
|
-
from pydantic import Field,
|
19
|
+
from pydantic import Field, StrictStr, field_validator
|
20
20
|
from typing import List, Optional
|
21
21
|
from typing_extensions import Annotated
|
22
22
|
from crypticorn.trade.client.models.exchange_key import ExchangeKey
|
@@ -76,10 +76,7 @@ class APIKeysApi:
|
|
76
76
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
77
77
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
78
78
|
) -> ExchangeKey:
|
79
|
-
"""Post Exchange Key
|
80
|
-
|
81
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
82
|
-
"""
|
79
|
+
"""Post Exchange Key"""
|
83
80
|
if self.is_sync:
|
84
81
|
return self._create_exchange_key_sync(
|
85
82
|
exchange_key_create=exchange_key_create,
|
@@ -116,10 +113,7 @@ class APIKeysApi:
|
|
116
113
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
117
114
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
118
115
|
) -> ApiResponse[ExchangeKey]:
|
119
|
-
"""Post Exchange Key with HTTP info
|
120
|
-
|
121
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
122
|
-
"""
|
116
|
+
"""Post Exchange Key with HTTP info"""
|
123
117
|
if self.is_sync:
|
124
118
|
return self._create_exchange_key_sync_with_http_info(
|
125
119
|
exchange_key_create=exchange_key_create,
|
@@ -156,10 +150,7 @@ class APIKeysApi:
|
|
156
150
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
157
151
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
158
152
|
) -> RESTResponseType:
|
159
|
-
"""Post Exchange Key without preloading content
|
160
|
-
|
161
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
162
|
-
"""
|
153
|
+
"""Post Exchange Key without preloading content"""
|
163
154
|
if self.is_sync:
|
164
155
|
return self._create_exchange_key_sync_without_preload_content(
|
165
156
|
exchange_key_create=exchange_key_create,
|
@@ -527,10 +518,7 @@ class APIKeysApi:
|
|
527
518
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
528
519
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
529
520
|
) -> None:
|
530
|
-
"""Delete Exchange Key
|
531
|
-
|
532
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
533
|
-
"""
|
521
|
+
"""Delete Exchange Key"""
|
534
522
|
if self.is_sync:
|
535
523
|
return self._delete_exchange_key_sync(
|
536
524
|
id=id,
|
@@ -567,10 +555,7 @@ class APIKeysApi:
|
|
567
555
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
568
556
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
569
557
|
) -> ApiResponse[None]:
|
570
|
-
"""Delete Exchange Key with HTTP info
|
571
|
-
|
572
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
573
|
-
"""
|
558
|
+
"""Delete Exchange Key with HTTP info"""
|
574
559
|
if self.is_sync:
|
575
560
|
return self._delete_exchange_key_sync_with_http_info(
|
576
561
|
id=id,
|
@@ -607,10 +592,7 @@ class APIKeysApi:
|
|
607
592
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
608
593
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
609
594
|
) -> RESTResponseType:
|
610
|
-
"""Delete Exchange Key without preloading content
|
611
|
-
|
612
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
613
|
-
"""
|
595
|
+
"""Delete Exchange Key without preloading content"""
|
614
596
|
if self.is_sync:
|
615
597
|
return self._delete_exchange_key_sync_without_preload_content(
|
616
598
|
id=id,
|
@@ -967,10 +949,7 @@ class APIKeysApi:
|
|
967
949
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
968
950
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
969
951
|
) -> List[ExchangeKeyBalance]:
|
970
|
-
"""Get Exchange Key Balances
|
971
|
-
|
972
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
973
|
-
"""
|
952
|
+
"""Get Exchange Key Balances"""
|
974
953
|
if self.is_sync:
|
975
954
|
return self._get_exchange_key_balances_sync(
|
976
955
|
_request_timeout=_request_timeout,
|
@@ -1004,10 +983,7 @@ class APIKeysApi:
|
|
1004
983
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1005
984
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1006
985
|
) -> ApiResponse[List[ExchangeKeyBalance]]:
|
1007
|
-
"""Get Exchange Key Balances with HTTP info
|
1008
|
-
|
1009
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1010
|
-
"""
|
986
|
+
"""Get Exchange Key Balances with HTTP info"""
|
1011
987
|
if self.is_sync:
|
1012
988
|
return self._get_exchange_key_balances_sync_with_http_info(
|
1013
989
|
_request_timeout=_request_timeout,
|
@@ -1041,10 +1017,7 @@ class APIKeysApi:
|
|
1041
1017
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1042
1018
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1043
1019
|
) -> RESTResponseType:
|
1044
|
-
"""Get Exchange Key Balances without preloading content
|
1045
|
-
|
1046
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1047
|
-
"""
|
1020
|
+
"""Get Exchange Key Balances without preloading content"""
|
1048
1021
|
if self.is_sync:
|
1049
1022
|
return self._get_exchange_key_balances_sync_without_preload_content(
|
1050
1023
|
_request_timeout=_request_timeout,
|
@@ -1381,10 +1354,7 @@ class APIKeysApi:
|
|
1381
1354
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1382
1355
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1383
1356
|
) -> ExchangeKey:
|
1384
|
-
"""Get Exchange Key By Id
|
1385
|
-
|
1386
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1387
|
-
"""
|
1357
|
+
"""Get Exchange Key By Id"""
|
1388
1358
|
if self.is_sync:
|
1389
1359
|
return self._get_exchange_key_by_id_sync(
|
1390
1360
|
id=id,
|
@@ -1421,10 +1391,7 @@ class APIKeysApi:
|
|
1421
1391
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1422
1392
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1423
1393
|
) -> ApiResponse[ExchangeKey]:
|
1424
|
-
"""Get Exchange Key By Id with HTTP info
|
1425
|
-
|
1426
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1427
|
-
"""
|
1394
|
+
"""Get Exchange Key By Id with HTTP info"""
|
1428
1395
|
if self.is_sync:
|
1429
1396
|
return self._get_exchange_key_by_id_sync_with_http_info(
|
1430
1397
|
id=id,
|
@@ -1461,10 +1428,7 @@ class APIKeysApi:
|
|
1461
1428
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1462
1429
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1463
1430
|
) -> RESTResponseType:
|
1464
|
-
"""Get Exchange Key By Id without preloading content
|
1465
|
-
|
1466
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1467
|
-
"""
|
1431
|
+
"""Get Exchange Key By Id without preloading content"""
|
1468
1432
|
if self.is_sync:
|
1469
1433
|
return self._get_exchange_key_by_id_sync_without_preload_content(
|
1470
1434
|
id=id,
|
@@ -1811,11 +1775,17 @@ class APIKeysApi:
|
|
1811
1775
|
@validate_call
|
1812
1776
|
def get_exchange_keys(
|
1813
1777
|
self,
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
Field(description="
|
1778
|
+
filter_by: Annotated[
|
1779
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
1780
|
+
] = None,
|
1781
|
+
filter_value: Annotated[
|
1782
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
1783
|
+
] = None,
|
1784
|
+
sort_order: Annotated[
|
1785
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
1786
|
+
] = None,
|
1787
|
+
sort_by: Annotated[
|
1788
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
1819
1789
|
] = None,
|
1820
1790
|
_request_timeout: Union[
|
1821
1791
|
None,
|
@@ -1829,15 +1799,13 @@ class APIKeysApi:
|
|
1829
1799
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1830
1800
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1831
1801
|
) -> List[ExchangeKey]:
|
1832
|
-
"""Get Exchange Keys
|
1833
|
-
|
1834
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1835
|
-
"""
|
1802
|
+
"""Get Exchange Keys"""
|
1836
1803
|
if self.is_sync:
|
1837
1804
|
return self._get_exchange_keys_sync(
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1805
|
+
filter_by=filter_by,
|
1806
|
+
filter_value=filter_value,
|
1807
|
+
sort_order=sort_order,
|
1808
|
+
sort_by=sort_by,
|
1841
1809
|
_request_timeout=_request_timeout,
|
1842
1810
|
_request_auth=_request_auth,
|
1843
1811
|
_content_type=_content_type,
|
@@ -1847,9 +1815,10 @@ class APIKeysApi:
|
|
1847
1815
|
|
1848
1816
|
else:
|
1849
1817
|
return self._get_exchange_keys_async(
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1818
|
+
filter_by=filter_by,
|
1819
|
+
filter_value=filter_value,
|
1820
|
+
sort_order=sort_order,
|
1821
|
+
sort_by=sort_by,
|
1853
1822
|
_request_timeout=_request_timeout,
|
1854
1823
|
_request_auth=_request_auth,
|
1855
1824
|
_content_type=_content_type,
|
@@ -1860,11 +1829,17 @@ class APIKeysApi:
|
|
1860
1829
|
@validate_call
|
1861
1830
|
def get_exchange_keys_with_http_info(
|
1862
1831
|
self,
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
Field(description="
|
1832
|
+
filter_by: Annotated[
|
1833
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
1834
|
+
] = None,
|
1835
|
+
filter_value: Annotated[
|
1836
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
1837
|
+
] = None,
|
1838
|
+
sort_order: Annotated[
|
1839
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
1840
|
+
] = None,
|
1841
|
+
sort_by: Annotated[
|
1842
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
1868
1843
|
] = None,
|
1869
1844
|
_request_timeout: Union[
|
1870
1845
|
None,
|
@@ -1878,15 +1853,13 @@ class APIKeysApi:
|
|
1878
1853
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1879
1854
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1880
1855
|
) -> ApiResponse[List[ExchangeKey]]:
|
1881
|
-
"""Get Exchange Keys with HTTP info
|
1882
|
-
|
1883
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1884
|
-
"""
|
1856
|
+
"""Get Exchange Keys with HTTP info"""
|
1885
1857
|
if self.is_sync:
|
1886
1858
|
return self._get_exchange_keys_sync_with_http_info(
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1859
|
+
filter_by=filter_by,
|
1860
|
+
filter_value=filter_value,
|
1861
|
+
sort_order=sort_order,
|
1862
|
+
sort_by=sort_by,
|
1890
1863
|
_request_timeout=_request_timeout,
|
1891
1864
|
_request_auth=_request_auth,
|
1892
1865
|
_content_type=_content_type,
|
@@ -1896,9 +1869,10 @@ class APIKeysApi:
|
|
1896
1869
|
|
1897
1870
|
else:
|
1898
1871
|
return self._get_exchange_keys_async_with_http_info(
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1872
|
+
filter_by=filter_by,
|
1873
|
+
filter_value=filter_value,
|
1874
|
+
sort_order=sort_order,
|
1875
|
+
sort_by=sort_by,
|
1902
1876
|
_request_timeout=_request_timeout,
|
1903
1877
|
_request_auth=_request_auth,
|
1904
1878
|
_content_type=_content_type,
|
@@ -1909,11 +1883,17 @@ class APIKeysApi:
|
|
1909
1883
|
@validate_call
|
1910
1884
|
def get_exchange_keys_without_preload_content(
|
1911
1885
|
self,
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
Field(description="
|
1886
|
+
filter_by: Annotated[
|
1887
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
1888
|
+
] = None,
|
1889
|
+
filter_value: Annotated[
|
1890
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
1891
|
+
] = None,
|
1892
|
+
sort_order: Annotated[
|
1893
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
1894
|
+
] = None,
|
1895
|
+
sort_by: Annotated[
|
1896
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
1917
1897
|
] = None,
|
1918
1898
|
_request_timeout: Union[
|
1919
1899
|
None,
|
@@ -1927,15 +1907,13 @@ class APIKeysApi:
|
|
1927
1907
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1928
1908
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1929
1909
|
) -> RESTResponseType:
|
1930
|
-
"""Get Exchange Keys without preloading content
|
1931
|
-
|
1932
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
1933
|
-
"""
|
1910
|
+
"""Get Exchange Keys without preloading content"""
|
1934
1911
|
if self.is_sync:
|
1935
1912
|
return self._get_exchange_keys_sync_without_preload_content(
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1913
|
+
filter_by=filter_by,
|
1914
|
+
filter_value=filter_value,
|
1915
|
+
sort_order=sort_order,
|
1916
|
+
sort_by=sort_by,
|
1939
1917
|
_request_timeout=_request_timeout,
|
1940
1918
|
_request_auth=_request_auth,
|
1941
1919
|
_content_type=_content_type,
|
@@ -1945,9 +1923,10 @@ class APIKeysApi:
|
|
1945
1923
|
|
1946
1924
|
else:
|
1947
1925
|
return self._get_exchange_keys_async_without_preload_content(
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1926
|
+
filter_by=filter_by,
|
1927
|
+
filter_value=filter_value,
|
1928
|
+
sort_order=sort_order,
|
1929
|
+
sort_by=sort_by,
|
1951
1930
|
_request_timeout=_request_timeout,
|
1952
1931
|
_request_auth=_request_auth,
|
1953
1932
|
_content_type=_content_type,
|
@@ -1959,11 +1938,17 @@ class APIKeysApi:
|
|
1959
1938
|
@validate_call
|
1960
1939
|
async def _get_exchange_keys_async(
|
1961
1940
|
self,
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
Field(description="
|
1941
|
+
filter_by: Annotated[
|
1942
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
1943
|
+
] = None,
|
1944
|
+
filter_value: Annotated[
|
1945
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
1946
|
+
] = None,
|
1947
|
+
sort_order: Annotated[
|
1948
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
1949
|
+
] = None,
|
1950
|
+
sort_by: Annotated[
|
1951
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
1967
1952
|
] = None,
|
1968
1953
|
_request_timeout: Union[
|
1969
1954
|
None,
|
@@ -1979,14 +1964,16 @@ class APIKeysApi:
|
|
1979
1964
|
) -> List[ExchangeKey]:
|
1980
1965
|
"""Get Exchange Keys
|
1981
1966
|
|
1982
|
-
Get all exchange keys.
|
1967
|
+
Get all exchange keys. Returns all non-deleted API keys by default.
|
1983
1968
|
|
1984
|
-
:param
|
1985
|
-
:type
|
1986
|
-
:param
|
1987
|
-
:type
|
1988
|
-
:param
|
1989
|
-
:type
|
1969
|
+
:param filter_by: The field to filter by
|
1970
|
+
:type filter_by: str
|
1971
|
+
:param filter_value: The value to filter with
|
1972
|
+
:type filter_value: str
|
1973
|
+
:param sort_order: The order to sort by
|
1974
|
+
:type sort_order: str
|
1975
|
+
:param sort_by: The field to sort by
|
1976
|
+
:type sort_by: str
|
1990
1977
|
:param _request_timeout: timeout setting for this request. If one
|
1991
1978
|
number provided, it will be total request
|
1992
1979
|
timeout. It can also be a pair (tuple) of
|
@@ -2010,9 +1997,10 @@ class APIKeysApi:
|
|
2010
1997
|
""" # noqa: E501
|
2011
1998
|
|
2012
1999
|
_param = self._get_exchange_keys_serialize(
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2000
|
+
filter_by=filter_by,
|
2001
|
+
filter_value=filter_value,
|
2002
|
+
sort_order=sort_order,
|
2003
|
+
sort_by=sort_by,
|
2016
2004
|
_request_auth=_request_auth,
|
2017
2005
|
_content_type=_content_type,
|
2018
2006
|
_headers=_headers,
|
@@ -2034,11 +2022,17 @@ class APIKeysApi:
|
|
2034
2022
|
@validate_call
|
2035
2023
|
async def _get_exchange_keys_async_with_http_info(
|
2036
2024
|
self,
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
Field(description="
|
2025
|
+
filter_by: Annotated[
|
2026
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
2027
|
+
] = None,
|
2028
|
+
filter_value: Annotated[
|
2029
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
2030
|
+
] = None,
|
2031
|
+
sort_order: Annotated[
|
2032
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
2033
|
+
] = None,
|
2034
|
+
sort_by: Annotated[
|
2035
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
2042
2036
|
] = None,
|
2043
2037
|
_request_timeout: Union[
|
2044
2038
|
None,
|
@@ -2054,14 +2048,16 @@ class APIKeysApi:
|
|
2054
2048
|
) -> ApiResponse[List[ExchangeKey]]:
|
2055
2049
|
"""Get Exchange Keys
|
2056
2050
|
|
2057
|
-
Get all exchange keys.
|
2051
|
+
Get all exchange keys. Returns all non-deleted API keys by default.
|
2058
2052
|
|
2059
|
-
:param
|
2060
|
-
:type
|
2061
|
-
:param
|
2062
|
-
:type
|
2063
|
-
:param
|
2064
|
-
:type
|
2053
|
+
:param filter_by: The field to filter by
|
2054
|
+
:type filter_by: str
|
2055
|
+
:param filter_value: The value to filter with
|
2056
|
+
:type filter_value: str
|
2057
|
+
:param sort_order: The order to sort by
|
2058
|
+
:type sort_order: str
|
2059
|
+
:param sort_by: The field to sort by
|
2060
|
+
:type sort_by: str
|
2065
2061
|
:param _request_timeout: timeout setting for this request. If one
|
2066
2062
|
number provided, it will be total request
|
2067
2063
|
timeout. It can also be a pair (tuple) of
|
@@ -2085,9 +2081,10 @@ class APIKeysApi:
|
|
2085
2081
|
""" # noqa: E501
|
2086
2082
|
|
2087
2083
|
_param = self._get_exchange_keys_serialize(
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2084
|
+
filter_by=filter_by,
|
2085
|
+
filter_value=filter_value,
|
2086
|
+
sort_order=sort_order,
|
2087
|
+
sort_by=sort_by,
|
2091
2088
|
_request_auth=_request_auth,
|
2092
2089
|
_content_type=_content_type,
|
2093
2090
|
_headers=_headers,
|
@@ -2108,11 +2105,17 @@ class APIKeysApi:
|
|
2108
2105
|
@validate_call
|
2109
2106
|
async def _get_exchange_keys_async_without_preload_content(
|
2110
2107
|
self,
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
Field(description="
|
2108
|
+
filter_by: Annotated[
|
2109
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
2110
|
+
] = None,
|
2111
|
+
filter_value: Annotated[
|
2112
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
2113
|
+
] = None,
|
2114
|
+
sort_order: Annotated[
|
2115
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
2116
|
+
] = None,
|
2117
|
+
sort_by: Annotated[
|
2118
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
2116
2119
|
] = None,
|
2117
2120
|
_request_timeout: Union[
|
2118
2121
|
None,
|
@@ -2128,14 +2131,16 @@ class APIKeysApi:
|
|
2128
2131
|
) -> RESTResponseType:
|
2129
2132
|
"""Get Exchange Keys
|
2130
2133
|
|
2131
|
-
Get all exchange keys.
|
2134
|
+
Get all exchange keys. Returns all non-deleted API keys by default.
|
2132
2135
|
|
2133
|
-
:param
|
2134
|
-
:type
|
2135
|
-
:param
|
2136
|
-
:type
|
2137
|
-
:param
|
2138
|
-
:type
|
2136
|
+
:param filter_by: The field to filter by
|
2137
|
+
:type filter_by: str
|
2138
|
+
:param filter_value: The value to filter with
|
2139
|
+
:type filter_value: str
|
2140
|
+
:param sort_order: The order to sort by
|
2141
|
+
:type sort_order: str
|
2142
|
+
:param sort_by: The field to sort by
|
2143
|
+
:type sort_by: str
|
2139
2144
|
:param _request_timeout: timeout setting for this request. If one
|
2140
2145
|
number provided, it will be total request
|
2141
2146
|
timeout. It can also be a pair (tuple) of
|
@@ -2159,9 +2164,10 @@ class APIKeysApi:
|
|
2159
2164
|
""" # noqa: E501
|
2160
2165
|
|
2161
2166
|
_param = self._get_exchange_keys_serialize(
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2167
|
+
filter_by=filter_by,
|
2168
|
+
filter_value=filter_value,
|
2169
|
+
sort_order=sort_order,
|
2170
|
+
sort_by=sort_by,
|
2165
2171
|
_request_auth=_request_auth,
|
2166
2172
|
_content_type=_content_type,
|
2167
2173
|
_headers=_headers,
|
@@ -2180,11 +2186,17 @@ class APIKeysApi:
|
|
2180
2186
|
@validate_call
|
2181
2187
|
def _get_exchange_keys_sync(
|
2182
2188
|
self,
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
Field(description="
|
2189
|
+
filter_by: Annotated[
|
2190
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
2191
|
+
] = None,
|
2192
|
+
filter_value: Annotated[
|
2193
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
2194
|
+
] = None,
|
2195
|
+
sort_order: Annotated[
|
2196
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
2197
|
+
] = None,
|
2198
|
+
sort_by: Annotated[
|
2199
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
2188
2200
|
] = None,
|
2189
2201
|
_request_timeout: Union[
|
2190
2202
|
None,
|
@@ -2200,9 +2212,10 @@ class APIKeysApi:
|
|
2200
2212
|
) -> List[ExchangeKey]:
|
2201
2213
|
"""Synchronous version of get_exchange_keys"""
|
2202
2214
|
return async_to_sync(self._get_exchange_keys_async)(
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2215
|
+
filter_by=filter_by,
|
2216
|
+
filter_value=filter_value,
|
2217
|
+
sort_order=sort_order,
|
2218
|
+
sort_by=sort_by,
|
2206
2219
|
_request_timeout=_request_timeout,
|
2207
2220
|
_request_auth=_request_auth,
|
2208
2221
|
_content_type=_content_type,
|
@@ -2213,11 +2226,17 @@ class APIKeysApi:
|
|
2213
2226
|
@validate_call
|
2214
2227
|
def _get_exchange_keys_sync_with_http_info(
|
2215
2228
|
self,
|
2216
|
-
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
Field(description="
|
2229
|
+
filter_by: Annotated[
|
2230
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
2231
|
+
] = None,
|
2232
|
+
filter_value: Annotated[
|
2233
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
2234
|
+
] = None,
|
2235
|
+
sort_order: Annotated[
|
2236
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
2237
|
+
] = None,
|
2238
|
+
sort_by: Annotated[
|
2239
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
2221
2240
|
] = None,
|
2222
2241
|
_request_timeout: Union[
|
2223
2242
|
None,
|
@@ -2233,9 +2252,10 @@ class APIKeysApi:
|
|
2233
2252
|
) -> ApiResponse[List[ExchangeKey]]:
|
2234
2253
|
"""Synchronous version of get_exchange_keys_with_http_info"""
|
2235
2254
|
return async_to_sync(self._get_exchange_keys_async_with_http_info)(
|
2236
|
-
|
2237
|
-
|
2238
|
-
|
2255
|
+
filter_by=filter_by,
|
2256
|
+
filter_value=filter_value,
|
2257
|
+
sort_order=sort_order,
|
2258
|
+
sort_by=sort_by,
|
2239
2259
|
_request_timeout=_request_timeout,
|
2240
2260
|
_request_auth=_request_auth,
|
2241
2261
|
_content_type=_content_type,
|
@@ -2246,11 +2266,17 @@ class APIKeysApi:
|
|
2246
2266
|
@validate_call
|
2247
2267
|
def _get_exchange_keys_sync_without_preload_content(
|
2248
2268
|
self,
|
2249
|
-
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
Field(description="
|
2269
|
+
filter_by: Annotated[
|
2270
|
+
Optional[StrictStr], Field(description="The field to filter by")
|
2271
|
+
] = None,
|
2272
|
+
filter_value: Annotated[
|
2273
|
+
Optional[StrictStr], Field(description="The value to filter with")
|
2274
|
+
] = None,
|
2275
|
+
sort_order: Annotated[
|
2276
|
+
Optional[StrictStr], Field(description="The order to sort by")
|
2277
|
+
] = None,
|
2278
|
+
sort_by: Annotated[
|
2279
|
+
Optional[StrictStr], Field(description="The field to sort by")
|
2254
2280
|
] = None,
|
2255
2281
|
_request_timeout: Union[
|
2256
2282
|
None,
|
@@ -2266,9 +2292,10 @@ class APIKeysApi:
|
|
2266
2292
|
) -> RESTResponseType:
|
2267
2293
|
"""Synchronous version of get_exchange_keys_without_preload_content"""
|
2268
2294
|
return async_to_sync(self._get_exchange_keys_async_without_preload_content)(
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
2295
|
+
filter_by=filter_by,
|
2296
|
+
filter_value=filter_value,
|
2297
|
+
sort_order=sort_order,
|
2298
|
+
sort_by=sort_by,
|
2272
2299
|
_request_timeout=_request_timeout,
|
2273
2300
|
_request_auth=_request_auth,
|
2274
2301
|
_content_type=_content_type,
|
@@ -2278,9 +2305,10 @@ class APIKeysApi:
|
|
2278
2305
|
|
2279
2306
|
def _get_exchange_keys_serialize(
|
2280
2307
|
self,
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2308
|
+
filter_by,
|
2309
|
+
filter_value,
|
2310
|
+
sort_order,
|
2311
|
+
sort_by,
|
2284
2312
|
_request_auth,
|
2285
2313
|
_content_type,
|
2286
2314
|
_headers,
|
@@ -2302,17 +2330,21 @@ class APIKeysApi:
|
|
2302
2330
|
|
2303
2331
|
# process the path parameters
|
2304
2332
|
# process the query parameters
|
2305
|
-
if
|
2333
|
+
if filter_by is not None:
|
2306
2334
|
|
2307
|
-
_query_params.append(("
|
2335
|
+
_query_params.append(("filter_by", filter_by))
|
2308
2336
|
|
2309
|
-
if
|
2337
|
+
if filter_value is not None:
|
2310
2338
|
|
2311
|
-
_query_params.append(("
|
2339
|
+
_query_params.append(("filter_value", filter_value))
|
2312
2340
|
|
2313
|
-
if
|
2341
|
+
if sort_order is not None:
|
2314
2342
|
|
2315
|
-
_query_params.append(("
|
2343
|
+
_query_params.append(("sort_order", sort_order))
|
2344
|
+
|
2345
|
+
if sort_by is not None:
|
2346
|
+
|
2347
|
+
_query_params.append(("sort_by", sort_by))
|
2316
2348
|
|
2317
2349
|
# process the header parameters
|
2318
2350
|
# process the form parameters
|
@@ -2359,10 +2391,7 @@ class APIKeysApi:
|
|
2359
2391
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2360
2392
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2361
2393
|
) -> ExchangeKey:
|
2362
|
-
"""Put Exchange Key
|
2363
|
-
|
2364
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2365
|
-
"""
|
2394
|
+
"""Put Exchange Key"""
|
2366
2395
|
if self.is_sync:
|
2367
2396
|
return self._update_exchange_key_sync(
|
2368
2397
|
id=id,
|
@@ -2402,10 +2431,7 @@ class APIKeysApi:
|
|
2402
2431
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2403
2432
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2404
2433
|
) -> ApiResponse[ExchangeKey]:
|
2405
|
-
"""Put Exchange Key with HTTP info
|
2406
|
-
|
2407
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2408
|
-
"""
|
2434
|
+
"""Put Exchange Key with HTTP info"""
|
2409
2435
|
if self.is_sync:
|
2410
2436
|
return self._update_exchange_key_sync_with_http_info(
|
2411
2437
|
id=id,
|
@@ -2445,10 +2471,7 @@ class APIKeysApi:
|
|
2445
2471
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2446
2472
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2447
2473
|
) -> RESTResponseType:
|
2448
|
-
"""Put Exchange Key without preloading content
|
2449
|
-
|
2450
|
-
This method can work in both sync and async modes based on the is_sync flag.
|
2451
|
-
"""
|
2474
|
+
"""Put Exchange Key without preloading content"""
|
2452
2475
|
if self.is_sync:
|
2453
2476
|
return self._update_exchange_key_sync_without_preload_content(
|
2454
2477
|
id=id,
|