crypticorn 2.17.0rc3__py3-none-any.whl → 2.17.0rc5__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 +0 -2
- crypticorn/auth/client/api/auth_api.py +0 -4
- crypticorn/auth/client/api/service_api.py +0 -4
- crypticorn/auth/client/api/user_api.py +0 -4
- crypticorn/auth/client/api/wallet_api.py +0 -4
- crypticorn/auth/client/api_client.py +0 -5
- crypticorn/auth/client/models/add_wallet_request.py +1 -1
- crypticorn/auth/client/models/authorize_user_request.py +1 -1
- crypticorn/auth/client/models/create_api_key_request.py +1 -1
- crypticorn/auth/client/models/create_user_request.py +1 -1
- crypticorn/auth/client/models/get_api_keys200_response_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_sale_round.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_balances_inner_wallet_vesting_wallets_inner.py +1 -1
- crypticorn/auth/client/models/list_wallets200_response_data_inner.py +1 -1
- crypticorn/auth/client/models/logout_default_response.py +1 -1
- crypticorn/auth/client/models/oauth_callback200_response_user.py +1 -1
- crypticorn/auth/client/models/refresh_token_info200_response_user_session.py +1 -1
- crypticorn/auth/client/models/rotate_tokens200_response.py +1 -1
- crypticorn/auth/client/models/token_info200_response.py +1 -1
- crypticorn/auth/client/models/update_user_request.py +1 -1
- crypticorn/auth/client/models/user_by_username200_response.py +1 -1
- crypticorn/auth/client/models/verify200_response.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth.py +1 -1
- crypticorn/auth/client/models/verify_email200_response_auth_auth.py +1 -1
- crypticorn/auth/client/models/whoami200_response.py +1 -1
- crypticorn/cli/init.py +1 -1
- crypticorn/cli/templates/.env.docker.temp +3 -0
- crypticorn/cli/templates/.env.example.temp +4 -0
- crypticorn/client.py +0 -1
- crypticorn/common/auth.py +5 -16
- crypticorn/common/decorators.py +1 -2
- crypticorn/common/enums.py +0 -2
- crypticorn/common/metrics.py +1 -1
- crypticorn/common/middleware.py +0 -1
- crypticorn/common/pagination.py +135 -22
- crypticorn/common/utils.py +1 -2
- crypticorn/dex/__init__.py +6 -0
- crypticorn/dex/client/__init__.py +49 -0
- crypticorn/dex/client/api/__init__.py +6 -0
- crypticorn/dex/client/api/admin_api.py +3046 -0
- crypticorn/dex/client/api/signals_api.py +1821 -0
- crypticorn/dex/client/api/status_api.py +907 -0
- crypticorn/dex/client/api_client.py +753 -0
- crypticorn/dex/client/api_response.py +20 -0
- crypticorn/dex/client/configuration.py +620 -0
- crypticorn/dex/client/exceptions.py +220 -0
- crypticorn/dex/client/models/__init__.py +30 -0
- crypticorn/dex/client/models/api_error_identifier.py +121 -0
- crypticorn/dex/client/models/api_error_level.py +37 -0
- crypticorn/dex/client/models/api_error_type.py +37 -0
- crypticorn/dex/client/models/exception_detail.py +117 -0
- crypticorn/dex/client/models/log_level.py +38 -0
- crypticorn/dex/client/models/paginated_response_signal_with_token.py +134 -0
- crypticorn/dex/client/models/risk.py +86 -0
- crypticorn/dex/client/models/signal_overview_stats.py +156 -0
- crypticorn/dex/client/models/signal_volume.py +84 -0
- crypticorn/dex/client/models/signal_with_token.py +163 -0
- crypticorn/dex/client/models/token_data.py +127 -0
- crypticorn/dex/client/models/token_detail.py +116 -0
- crypticorn/dex/client/py.typed +0 -0
- crypticorn/dex/client/rest.py +217 -0
- crypticorn/dex/main.py +1 -0
- crypticorn/hive/client/api/admin_api.py +0 -3
- crypticorn/hive/client/api/data_api.py +0 -4
- crypticorn/hive/client/api/models_api.py +1 -4
- crypticorn/hive/client/api/status_api.py +0 -3
- crypticorn/hive/client/api_client.py +0 -5
- crypticorn/hive/client/models/coin_info.py +1 -1
- crypticorn/hive/client/models/exception_detail.py +1 -1
- crypticorn/hive/client/models/target_info.py +1 -1
- crypticorn/hive/utils.py +2 -2
- crypticorn/klines/client/api/admin_api.py +0 -3
- crypticorn/klines/client/api/change_in_timeframe_api.py +0 -4
- crypticorn/klines/client/api/funding_rates_api.py +0 -4
- crypticorn/klines/client/api/ohlcv_data_api.py +0 -4
- crypticorn/klines/client/api/status_api.py +0 -3
- crypticorn/klines/client/api/symbols_api.py +0 -4
- crypticorn/klines/client/api/udf_api.py +0 -2
- crypticorn/klines/client/api_client.py +0 -5
- crypticorn/klines/client/models/exception_detail.py +1 -1
- crypticorn/klines/client/models/ohlcv.py +1 -1
- crypticorn/klines/client/models/symbol_group.py +1 -1
- crypticorn/klines/client/models/udf_config.py +1 -1
- crypticorn/metrics/client/api/admin_api.py +0 -3
- crypticorn/metrics/client/api/exchanges_api.py +0 -4
- crypticorn/metrics/client/api/indicators_api.py +0 -4
- crypticorn/metrics/client/api/logs_api.py +0 -4
- crypticorn/metrics/client/api/marketcap_api.py +0 -4
- crypticorn/metrics/client/api/markets_api.py +0 -4
- crypticorn/metrics/client/api/quote_currencies_api.py +0 -4
- crypticorn/metrics/client/api/status_api.py +0 -3
- crypticorn/metrics/client/api/tokens_api.py +0 -2
- crypticorn/metrics/client/api_client.py +0 -5
- crypticorn/metrics/client/models/exception_detail.py +1 -1
- crypticorn/metrics/client/models/exchange_mapping.py +1 -1
- crypticorn/metrics/client/models/marketcap_ranking.py +1 -1
- crypticorn/metrics/client/models/marketcap_symbol_ranking.py +1 -1
- crypticorn/metrics/client/models/ohlcv.py +1 -1
- crypticorn/pay/client/api/admin_api.py +0 -3
- crypticorn/pay/client/api/now_payments_api.py +0 -4
- crypticorn/pay/client/api/payments_api.py +0 -4
- crypticorn/pay/client/api/products_api.py +0 -4
- crypticorn/pay/client/api/status_api.py +0 -3
- crypticorn/pay/client/api_client.py +0 -5
- crypticorn/pay/client/models/exception_detail.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_req.py +1 -1
- crypticorn/pay/client/models/now_create_invoice_res.py +1 -1
- crypticorn/pay/client/models/product.py +1 -1
- crypticorn/pay/client/models/product_create.py +1 -1
- crypticorn/pay/client/models/product_update.py +1 -1
- crypticorn/trade/client/__init__.py +5 -0
- crypticorn/trade/client/api/admin_api.py +22 -23
- crypticorn/trade/client/api/bots_api.py +4712 -168
- crypticorn/trade/client/api/orders_api.py +220 -106
- crypticorn/trade/client/configuration.py +2 -2
- crypticorn/trade/client/models/__init__.py +5 -0
- crypticorn/trade/client/models/bot.py +7 -18
- crypticorn/trade/client/models/bot_create.py +17 -1
- crypticorn/trade/client/models/bot_update.py +17 -1
- crypticorn/trade/client/models/exchange_key_create.py +17 -1
- crypticorn/trade/client/models/exchange_key_update.py +17 -1
- crypticorn/trade/client/models/notification.py +17 -1
- crypticorn/trade/client/models/notification_create.py +17 -1
- crypticorn/trade/client/models/notification_update.py +17 -1
- crypticorn/trade/client/models/orders_count.py +88 -0
- crypticorn/trade/client/models/paginated_response_order.py +134 -0
- crypticorn/trade/client/models/pn_l.py +95 -0
- crypticorn/trade/client/models/strategy.py +17 -1
- crypticorn/trade/client/models/strategy_create.py +17 -1
- crypticorn/trade/client/models/strategy_update.py +17 -1
- {crypticorn-2.17.0rc3.dist-info → crypticorn-2.17.0rc5.dist-info}/METADATA +1 -1
- {crypticorn-2.17.0rc3.dist-info → crypticorn-2.17.0rc5.dist-info}/RECORD +137 -106
- {crypticorn-2.17.0rc3.dist-info → crypticorn-2.17.0rc5.dist-info}/WHEEL +0 -0
- {crypticorn-2.17.0rc3.dist-info → crypticorn-2.17.0rc5.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.17.0rc3.dist-info → crypticorn-2.17.0rc5.dist-info}/licenses/LICENSE +0 -0
- {crypticorn-2.17.0rc3.dist-info → crypticorn-2.17.0rc5.dist-info}/top_level.txt +0 -0
@@ -11,12 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from typing import List
|
20
18
|
from crypticorn.auth.client.models.logout_default_response_issues_inner import (
|
21
19
|
LogoutDefaultResponseIssuesInner,
|
22
20
|
)
|
@@ -11,14 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from pydantic import Field, StrictStr
|
20
|
-
from typing import Any, List, Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.auth.client.models.authorize_user200_response import (
|
23
19
|
AuthorizeUser200Response,
|
24
20
|
)
|
@@ -11,14 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from pydantic import Field, StrictStr
|
20
|
-
from typing import Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.auth.client.models.list_wallets200_response_user_value import (
|
23
19
|
ListWallets200ResponseUserValue,
|
24
20
|
)
|
@@ -11,14 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from pydantic import Field, StrictStr
|
20
|
-
from typing import Any, Optional
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.auth.client.models.create_user_request import CreateUserRequest
|
23
19
|
from crypticorn.auth.client.models.resend_verification_email_request import (
|
24
20
|
ResendVerificationEmailRequest,
|
@@ -11,14 +11,10 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
11
|
Do not edit the class manually.
|
12
12
|
""" # noqa: E501
|
13
13
|
|
14
|
-
import warnings
|
15
14
|
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
16
|
from typing_extensions import Annotated
|
18
17
|
|
19
|
-
from pydantic import Field, StrictFloat, StrictInt, StrictStr
|
20
|
-
from typing import Any, Optional, Union
|
21
|
-
from typing_extensions import Annotated
|
22
18
|
from crypticorn.auth.client.models.add_wallet200_response import AddWallet200Response
|
23
19
|
from crypticorn.auth.client.models.add_wallet_request import AddWalletRequest
|
24
20
|
from crypticorn.auth.client.models.list_wallets200_response import (
|
@@ -33,11 +33,6 @@ from crypticorn.auth.client import rest
|
|
33
33
|
from crypticorn.auth.client.exceptions import (
|
34
34
|
ApiValueError,
|
35
35
|
ApiException,
|
36
|
-
BadRequestException,
|
37
|
-
UnauthorizedException,
|
38
|
-
ForbiddenException,
|
39
|
-
NotFoundException,
|
40
|
-
ServiceException,
|
41
36
|
)
|
42
37
|
|
43
38
|
RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
|
@@ -19,7 +19,7 @@ import json
|
|
19
19
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
22
|
-
from typing import
|
22
|
+
from typing import Set
|
23
23
|
from typing_extensions import Self
|
24
24
|
|
25
25
|
|
@@ -20,7 +20,7 @@ import json
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
22
22
|
from typing_extensions import Annotated
|
23
|
-
from typing import
|
23
|
+
from typing import Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
26
|
|
@@ -21,7 +21,7 @@ from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
23
|
from typing_extensions import Annotated
|
24
|
-
from typing import
|
24
|
+
from typing import Set
|
25
25
|
from typing_extensions import Self
|
26
26
|
|
27
27
|
|
@@ -20,7 +20,7 @@ import json
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
22
22
|
from typing_extensions import Annotated
|
23
|
-
from typing import
|
23
|
+
from typing import Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
26
|
|
@@ -20,7 +20,7 @@ import json
|
|
20
20
|
from datetime import datetime
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
-
from typing import
|
23
|
+
from typing import Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
26
|
|
@@ -20,7 +20,7 @@ import json
|
|
20
20
|
from datetime import datetime
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
23
|
-
from typing import
|
23
|
+
from typing import Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
26
|
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
22
22
|
from crypticorn.auth.client.models.list_wallets200_response_balances_inner_wallet_vesting_wallets_inner import (
|
23
23
|
ListWallets200ResponseBalancesInnerWalletVestingWalletsInner,
|
24
24
|
)
|
25
|
-
from typing import
|
25
|
+
from typing import Set
|
26
26
|
from typing_extensions import Self
|
27
27
|
|
28
28
|
|
@@ -20,7 +20,7 @@ import json
|
|
20
20
|
from datetime import datetime
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
-
from typing import
|
23
|
+
from typing import Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
26
|
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from crypticorn.auth.client.models.logout_default_response_issues_inner import (
|
23
23
|
LogoutDefaultResponseIssuesInner,
|
24
24
|
)
|
25
|
-
from typing import
|
25
|
+
from typing import Set
|
26
26
|
from typing_extensions import Self
|
27
27
|
|
28
28
|
|
@@ -20,7 +20,7 @@ import json
|
|
20
20
|
from datetime import datetime
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
-
from typing import
|
23
|
+
from typing import Set
|
24
24
|
from typing_extensions import Self
|
25
25
|
|
26
26
|
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
22
22
|
from crypticorn.auth.client.models.verify_email200_response_auth_auth import (
|
23
23
|
VerifyEmail200ResponseAuthAuth,
|
24
24
|
)
|
25
|
-
from typing import
|
25
|
+
from typing import Set
|
26
26
|
from typing_extensions import Self
|
27
27
|
|
28
28
|
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from crypticorn.auth.client.models.verify_email200_response_auth_auth import (
|
23
23
|
VerifyEmail200ResponseAuthAuth,
|
24
24
|
)
|
25
|
-
from typing import
|
25
|
+
from typing import Set
|
26
26
|
from typing_extensions import Self
|
27
27
|
|
28
28
|
|
@@ -22,7 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from crypticorn.auth.client.models.verify_email200_response_auth_auth import (
|
23
23
|
VerifyEmail200ResponseAuthAuth,
|
24
24
|
)
|
25
|
-
from typing import
|
25
|
+
from typing import Set
|
26
26
|
from typing_extensions import Self
|
27
27
|
|
28
28
|
|
crypticorn/cli/init.py
CHANGED
@@ -33,7 +33,7 @@ def copy_template(template_name: str, target_path: Path):
|
|
33
33
|
|
34
34
|
def check_file_exists(path: Path, force: bool):
|
35
35
|
if path.exists() and not force:
|
36
|
-
click.secho(
|
36
|
+
click.secho("File already exists, use --force / -f to overwrite", fg="red")
|
37
37
|
return False
|
38
38
|
return True
|
39
39
|
|
crypticorn/client.py
CHANGED
crypticorn/common/auth.py
CHANGED
@@ -7,7 +7,6 @@ from crypticorn.common.exceptions import (
|
|
7
7
|
ApiError,
|
8
8
|
HTTPException,
|
9
9
|
ExceptionContent,
|
10
|
-
WebSocketException,
|
11
10
|
)
|
12
11
|
from crypticorn.common.urls import BaseUrl, Service, ApiVersion
|
13
12
|
from fastapi import Depends, Query
|
@@ -112,6 +111,7 @@ class AuthHandler:
|
|
112
111
|
elif message == "jwt expired":
|
113
112
|
error = ApiError.EXPIRED_BEARER
|
114
113
|
else:
|
114
|
+
message = "Invalid bearer token"
|
115
115
|
error = (
|
116
116
|
ApiError.INVALID_BEARER
|
117
117
|
) # jwt malformed, jwt not active (https://www.npmjs.com/package/jsonwebtoken#errors--codes)
|
@@ -234,10 +234,7 @@ class AuthHandler:
|
|
234
234
|
Use this function if you only want to allow access via the API key.
|
235
235
|
This function is used for WebSocket connections.
|
236
236
|
"""
|
237
|
-
|
238
|
-
return await self.api_key_auth(api_key=api_key, sec=sec)
|
239
|
-
except HTTPException as e:
|
240
|
-
raise WebSocketException.from_http_exception(e)
|
237
|
+
return await self.api_key_auth(api_key=api_key, sec=sec)
|
241
238
|
|
242
239
|
async def ws_bearer_auth(
|
243
240
|
self,
|
@@ -249,11 +246,8 @@ class AuthHandler:
|
|
249
246
|
Use this function if you only want to allow access via the bearer token.
|
250
247
|
This function is used for WebSocket connections.
|
251
248
|
"""
|
252
|
-
|
253
|
-
|
254
|
-
return await self.bearer_auth(bearer=credentials, sec=sec)
|
255
|
-
except HTTPException as e:
|
256
|
-
raise WebSocketException.from_http_exception(e)
|
249
|
+
credentials = HTTPAuthorizationCredentials(scheme="Bearer", credentials=bearer)
|
250
|
+
return await self.bearer_auth(bearer=credentials, sec=sec)
|
257
251
|
|
258
252
|
async def ws_combined_auth(
|
259
253
|
self,
|
@@ -271,9 +265,4 @@ class AuthHandler:
|
|
271
265
|
if bearer
|
272
266
|
else None
|
273
267
|
)
|
274
|
-
|
275
|
-
return await self.combined_auth(
|
276
|
-
bearer=credentials, api_key=api_key, sec=sec
|
277
|
-
)
|
278
|
-
except HTTPException as e:
|
279
|
-
raise WebSocketException.from_http_exception(e)
|
268
|
+
return await self.combined_auth(bearer=credentials, api_key=api_key, sec=sec)
|
crypticorn/common/decorators.py
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
from datetime import datetime
|
2
1
|
from typing import Optional, Type, Any, Tuple
|
3
2
|
from copy import deepcopy
|
4
3
|
|
5
|
-
from pydantic import BaseModel, create_model
|
4
|
+
from pydantic import BaseModel, create_model
|
6
5
|
from pydantic.fields import FieldInfo
|
7
6
|
|
8
7
|
|
crypticorn/common/enums.py
CHANGED
crypticorn/common/metrics.py
CHANGED
crypticorn/common/middleware.py
CHANGED
@@ -2,7 +2,6 @@ import time
|
|
2
2
|
from fastapi import FastAPI
|
3
3
|
from fastapi.middleware.cors import CORSMiddleware
|
4
4
|
from starlette.middleware.base import BaseHTTPMiddleware
|
5
|
-
from starlette.requests import Request
|
6
5
|
from crypticorn.common.logging import configure_logging
|
7
6
|
from contextlib import asynccontextmanager
|
8
7
|
from typing_extensions import deprecated
|