crypticorn 2.4.0__py3-none-any.whl → 2.4.1__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/common/scopes.py +9 -2
- {crypticorn-2.4.0.dist-info → crypticorn-2.4.1.dist-info}/METADATA +16 -2
- {crypticorn-2.4.0.dist-info → crypticorn-2.4.1.dist-info}/RECORD +6 -6
- {crypticorn-2.4.0.dist-info → crypticorn-2.4.1.dist-info}/WHEEL +0 -0
- {crypticorn-2.4.0.dist-info → crypticorn-2.4.1.dist-info}/entry_points.txt +0 -0
- {crypticorn-2.4.0.dist-info → crypticorn-2.4.1.dist-info}/top_level.txt +0 -0
crypticorn/common/scopes.py
CHANGED
@@ -22,6 +22,9 @@ class Scope(StrEnum, metaclass=Fallback):
|
|
22
22
|
def from_str(cls, value: str) -> "Scope":
|
23
23
|
return cls(value)
|
24
24
|
|
25
|
+
# Scopes that can be purchased - these actually exist in the jwt token
|
26
|
+
READ_PREDICTIONS = "read:predictions"
|
27
|
+
|
25
28
|
# Hive scopes
|
26
29
|
READ_HIVE_MODEL = "read:hive:model"
|
27
30
|
READ_HIVE_DATA = "read:hive:data"
|
@@ -50,5 +53,9 @@ class Scope(StrEnum, metaclass=Fallback):
|
|
50
53
|
READ_PAY_NOW = "read:pay:now"
|
51
54
|
WRITE_PAY_NOW = "write:pay:now"
|
52
55
|
|
53
|
-
#
|
54
|
-
|
56
|
+
# Metrics scopes
|
57
|
+
READ_METRICS_MARKETCAP = "read:metrics:marketcap"
|
58
|
+
READ_METRICS_INDICATORS = "read:metrics:indicators"
|
59
|
+
READ_METRICS_EXCHANGES = "read:metrics:exchanges"
|
60
|
+
READ_METRICS_TOKENS = "read:metrics:tokens"
|
61
|
+
READ_METRICS_MARKETS = "read:metrics:markets"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: crypticorn
|
3
|
-
Version: 2.4.
|
3
|
+
Version: 2.4.1
|
4
4
|
Summary: Maximise Your Crypto Trading Profits with AI Predictions
|
5
5
|
Author-email: Crypticorn <timon@crypticorn.com>
|
6
6
|
Project-URL: Homepage, https://crypticorn.com
|
@@ -72,6 +72,20 @@ Our API is available as an asynchronous Python SDK. The main entry point you nee
|
|
72
72
|
```python
|
73
73
|
from crypticorn import ApiClient
|
74
74
|
```
|
75
|
+
The ApiClient serves as the central interface for API operations. It instantiates multiple API wrappers corresponding to our microservices.
|
76
|
+
|
77
|
+
Specific imports, such as request models, should be accessed through the appropriate submodules.
|
78
|
+
|
79
|
+
Note: All symbols are re-exported at the first submodule layer for convenience.
|
80
|
+
|
81
|
+
```python
|
82
|
+
from crypticorn.trade import BotStatus
|
83
|
+
```
|
84
|
+
|
85
|
+
The `common` submodule contains shared classes not bound to a specific API.
|
86
|
+
```python
|
87
|
+
from crypticorn.common import Scope, Exchange
|
88
|
+
```
|
75
89
|
|
76
90
|
## Usage
|
77
91
|
|
@@ -122,7 +136,7 @@ On top of that you get some information about the request:
|
|
122
136
|
print(res.status_code)
|
123
137
|
print(res.raw_data)
|
124
138
|
print(res.headers)
|
125
|
-
|
139
|
+
```
|
126
140
|
|
127
141
|
### JSON Response
|
128
142
|
You can receive a classical JSON response by suffixing the function name with `_without_preload_content`
|
@@ -64,7 +64,7 @@ crypticorn/common/auth.py,sha256=5aVNsl39ngsoFaR5xGuWERRccq4HibYbSp61Z4QOVew,748
|
|
64
64
|
crypticorn/common/enums.py,sha256=OQQT6uaounQzCGoYEM91yjhu8pU2eD5VaYiY8K89k3o,1235
|
65
65
|
crypticorn/common/errors.py,sha256=HZvd4J2HAN7TvqlZxWtp29XV0wbkacWNZzgdVO-YWpw,14197
|
66
66
|
crypticorn/common/pydantic.py,sha256=pmnGYCIrLv59wZkDbvPyK9NJmgPJWW74LXTdIWSjOkY,1063
|
67
|
-
crypticorn/common/scopes.py,sha256=
|
67
|
+
crypticorn/common/scopes.py,sha256=kzCaGRusoYGt_IIPpVQGmvapBGlDmEgdnTQot98x3uE,2133
|
68
68
|
crypticorn/common/sorter.py,sha256=Lx7hZMzsqrx2nqWOO0sFrSXSK1t2CqQJux70xU49Bz0,1282
|
69
69
|
crypticorn/common/urls.py,sha256=X557WaODUqW2dECi-mOjTbmhkSpnp40fPXDdvlnBXfo,805
|
70
70
|
crypticorn/hive/__init__.py,sha256=hRfTlEzEql4msytdUC_04vfaHzVKG5CGZle1M-9QFgY,81
|
@@ -269,8 +269,8 @@ crypticorn/trade/client/models/tpsl.py,sha256=QGPhcgadjxAgyzpRSwlZJg_CDLnKxdZgse
|
|
269
269
|
crypticorn/trade/client/models/trading_action_type.py,sha256=jW0OsNz_ZNXlITxAfh979BH5U12oTXSr6qUVcKcGHhw,847
|
270
270
|
crypticorn/trade/client/models/validation_error.py,sha256=uTkvsKrOAt-21UC0YPqCdRl_OMsuu7uhPtWuwRSYvv0,3228
|
271
271
|
crypticorn/trade/client/models/validation_error_loc_inner.py,sha256=22ql-H829xTBgfxNQZsqd8fS3zQt9tLW1pj0iobo0jY,5131
|
272
|
-
crypticorn-2.4.
|
273
|
-
crypticorn-2.4.
|
274
|
-
crypticorn-2.4.
|
275
|
-
crypticorn-2.4.
|
276
|
-
crypticorn-2.4.
|
272
|
+
crypticorn-2.4.1.dist-info/METADATA,sha256=5IBnH4H9R_BsBIiHgeXyFpyK47_X3i2inHZsZ08Z4eE,5927
|
273
|
+
crypticorn-2.4.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
274
|
+
crypticorn-2.4.1.dist-info/entry_points.txt,sha256=d_xHsGvUTebPveVUK0SrpDFQ5ZRSjlI7lNCc11sn2PM,59
|
275
|
+
crypticorn-2.4.1.dist-info/top_level.txt,sha256=EP3NY216qIBYfmvGl0L2Zc9ItP0DjGSkiYqd9xJwGcM,11
|
276
|
+
crypticorn-2.4.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|