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 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
+ ]