pipsocket 0.1.0__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.
pipsocket/__init__.py ADDED
@@ -0,0 +1,68 @@
1
+ """Python client for the Pipsocket API.
2
+
3
+ from pipsocket import Pipsocket
4
+
5
+ ps = Pipsocket() # reads PIPSOCKET_KEY
6
+ acct = ps.account("acc_01m6tx3k9f2qw8r7bznd5yvh4c")
7
+ print(acct.get()["balance"])
8
+
9
+ See https://docs.pipsocket.com for the API itself.
10
+ """
11
+
12
+ from ._core import new_key
13
+ from ._version import __version__
14
+ from .aio import AsyncPipsocket
15
+ from .client import Pipsocket
16
+ from .errors import (
17
+ AccountUnavailable,
18
+ APIConnectionError,
19
+ APIError,
20
+ APITimeoutError,
21
+ AuthenticationError,
22
+ BillingHold,
23
+ EngineBusy,
24
+ InvalidRequest,
25
+ KillSwitchEngaged,
26
+ NoPrice,
27
+ NotFound,
28
+ OutcomeUnknown,
29
+ PipsocketError,
30
+ RangeTooLarge,
31
+ StreamError,
32
+ StreamHandshakeError,
33
+ SymbolBusy,
34
+ TerminalError,
35
+ TerminalTimeout,
36
+ TradeNotAccepted,
37
+ Unavailable,
38
+ )
39
+ from .models import TradeRequest
40
+
41
+ __all__ = [
42
+ "APIConnectionError",
43
+ "APIError",
44
+ "APITimeoutError",
45
+ "AccountUnavailable",
46
+ "AsyncPipsocket",
47
+ "AuthenticationError",
48
+ "BillingHold",
49
+ "EngineBusy",
50
+ "InvalidRequest",
51
+ "KillSwitchEngaged",
52
+ "NoPrice",
53
+ "NotFound",
54
+ "OutcomeUnknown",
55
+ "Pipsocket",
56
+ "PipsocketError",
57
+ "RangeTooLarge",
58
+ "StreamError",
59
+ "StreamHandshakeError",
60
+ "SymbolBusy",
61
+ "TerminalError",
62
+ "TerminalTimeout",
63
+ "TradeNotAccepted",
64
+ "TradeRequest",
65
+ "Unavailable",
66
+ "__version__",
67
+ "new_key",
68
+ ]