fm-sdk 0.0.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.
- fm/__init__.py +71 -0
- fm/client.py +994 -0
- fm/events.py +332 -0
- fm/exceptions.py +41 -0
- fm/order_utils.py +157 -0
- fm/orderbook.py +195 -0
- fm/trades.py +119 -0
- fm/types.py +196 -0
- fm_sdk-0.0.0.dist-info/METADATA +156 -0
- fm_sdk-0.0.0.dist-info/RECORD +11 -0
- fm_sdk-0.0.0.dist-info/WHEEL +4 -0
fm/__init__.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Flexemarkets Python SDK."""
|
|
2
|
+
|
|
3
|
+
from .client import Flexemarkets
|
|
4
|
+
from .events import EventListener, WsException, WsTransportError
|
|
5
|
+
from .exceptions import (
|
|
6
|
+
AccountNameConflictError,
|
|
7
|
+
AuthenticationError,
|
|
8
|
+
AuthorizationError,
|
|
9
|
+
ConfigurationError,
|
|
10
|
+
ConflictError,
|
|
11
|
+
ConnectionFailedError,
|
|
12
|
+
FlexemarketsError,
|
|
13
|
+
InvalidArgumentError,
|
|
14
|
+
PersonHasMarketplaceDataError,
|
|
15
|
+
)
|
|
16
|
+
from .orderbook import OrderBook, OrderBooks
|
|
17
|
+
from .trades import MarketplaceTrades, Trades
|
|
18
|
+
from .types import (
|
|
19
|
+
Account,
|
|
20
|
+
Allotment,
|
|
21
|
+
ApiRoot,
|
|
22
|
+
Assets,
|
|
23
|
+
ClientConnection,
|
|
24
|
+
Holding,
|
|
25
|
+
Market,
|
|
26
|
+
Marketplace,
|
|
27
|
+
Order,
|
|
28
|
+
Person,
|
|
29
|
+
Security,
|
|
30
|
+
Session,
|
|
31
|
+
Token,
|
|
32
|
+
Version,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"Flexemarkets",
|
|
37
|
+
# types
|
|
38
|
+
"Account",
|
|
39
|
+
"Allotment",
|
|
40
|
+
"ApiRoot",
|
|
41
|
+
"Assets",
|
|
42
|
+
"ClientConnection",
|
|
43
|
+
"Holding",
|
|
44
|
+
"Market",
|
|
45
|
+
"Marketplace",
|
|
46
|
+
"Order",
|
|
47
|
+
"Person",
|
|
48
|
+
"Security",
|
|
49
|
+
"Session",
|
|
50
|
+
"Token",
|
|
51
|
+
"Version",
|
|
52
|
+
# orderbook & trades
|
|
53
|
+
"OrderBook",
|
|
54
|
+
"OrderBooks",
|
|
55
|
+
"Trades",
|
|
56
|
+
"MarketplaceTrades",
|
|
57
|
+
# events
|
|
58
|
+
"EventListener",
|
|
59
|
+
"WsTransportError",
|
|
60
|
+
"WsException",
|
|
61
|
+
# exceptions
|
|
62
|
+
"FlexemarketsError",
|
|
63
|
+
"AuthenticationError",
|
|
64
|
+
"AuthorizationError",
|
|
65
|
+
"InvalidArgumentError",
|
|
66
|
+
"AccountNameConflictError",
|
|
67
|
+
"PersonHasMarketplaceDataError",
|
|
68
|
+
"ConflictError",
|
|
69
|
+
"ConnectionFailedError",
|
|
70
|
+
"ConfigurationError",
|
|
71
|
+
]
|