stx-python 0.6.0rc1__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.
- stx/__init__.py +61 -0
- stx/_async_client.py +923 -0
- stx/_base.py +64 -0
- stx/_client.py +502 -0
- stx/_config.py +107 -0
- stx/_http.py +131 -0
- stx/_money.py +122 -0
- stx/_operations.py +259 -0
- stx/_paging.py +59 -0
- stx/_results.py +29 -0
- stx/_retry.py +80 -0
- stx/_settings.py +203 -0
- stx/_signing.py +229 -0
- stx/_version.py +12 -0
- stx/_ws.py +1016 -0
- stx/enums.py +13 -0
- stx/exceptions.py +156 -0
- stx/models.py +2034 -0
- stx/py.typed +0 -0
- stx_python-0.6.0rc1.dist-info/METADATA +121 -0
- stx_python-0.6.0rc1.dist-info/RECORD +24 -0
- stx_python-0.6.0rc1.dist-info/WHEEL +5 -0
- stx_python-0.6.0rc1.dist-info/licenses/LICENSE +21 -0
- stx_python-0.6.0rc1.dist-info/top_level.txt +1 -0
stx/__init__.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""The official Python SDK for the STX exchange.
|
|
2
|
+
|
|
3
|
+
``AsyncSTX`` and ``STX`` (blocking) make requests; ``STXWebSocket``
|
|
4
|
+
streams the documented channels. Money and quantities are strings exactly
|
|
5
|
+
as the API sends them.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from stx import models
|
|
9
|
+
from stx._async_client import AsyncSTX
|
|
10
|
+
from stx._client import STX
|
|
11
|
+
from stx._paging import Page
|
|
12
|
+
from stx._results import BatchOrderResult
|
|
13
|
+
from stx._retry import NO_RETRY, RetryPolicy
|
|
14
|
+
from stx._signing import ApiKeyCredentials
|
|
15
|
+
from stx._version import __version__
|
|
16
|
+
from stx._ws import Channel, ChannelMessage, ReconnectPolicy, STXWebSocket
|
|
17
|
+
from stx.enums import Environment, Region
|
|
18
|
+
from stx.exceptions import (
|
|
19
|
+
STXAPIException,
|
|
20
|
+
STXAuthenticationException,
|
|
21
|
+
STXChannelException,
|
|
22
|
+
STXConfigException,
|
|
23
|
+
STXException,
|
|
24
|
+
STXForbiddenException,
|
|
25
|
+
STXNotFoundException,
|
|
26
|
+
STXRateLimitException,
|
|
27
|
+
STXRejectedException,
|
|
28
|
+
STXServerException,
|
|
29
|
+
STXTransportException,
|
|
30
|
+
STXValidationException,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
__all__ = [
|
|
34
|
+
"STX",
|
|
35
|
+
"AsyncSTX",
|
|
36
|
+
"STXWebSocket",
|
|
37
|
+
"Channel",
|
|
38
|
+
"ChannelMessage",
|
|
39
|
+
"ReconnectPolicy",
|
|
40
|
+
"ApiKeyCredentials",
|
|
41
|
+
"Page",
|
|
42
|
+
"BatchOrderResult",
|
|
43
|
+
"RetryPolicy",
|
|
44
|
+
"NO_RETRY",
|
|
45
|
+
"models",
|
|
46
|
+
"Region",
|
|
47
|
+
"Environment",
|
|
48
|
+
"STXException",
|
|
49
|
+
"STXConfigException",
|
|
50
|
+
"STXAPIException",
|
|
51
|
+
"STXValidationException",
|
|
52
|
+
"STXAuthenticationException",
|
|
53
|
+
"STXForbiddenException",
|
|
54
|
+
"STXNotFoundException",
|
|
55
|
+
"STXRejectedException",
|
|
56
|
+
"STXRateLimitException",
|
|
57
|
+
"STXServerException",
|
|
58
|
+
"STXTransportException",
|
|
59
|
+
"STXChannelException",
|
|
60
|
+
"__version__",
|
|
61
|
+
]
|