fxapis 0.1.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.
fxapis/__init__.py ADDED
@@ -0,0 +1,87 @@
1
+ """fxapis -- Python client for the fxapis MetaTrader 5 (MT5) REST API.
2
+
3
+ Connect MT5 accounts once, then place market and pending orders, close and
4
+ modify positions, read deals, and send one trade to many accounts -- over plain
5
+ HTTPS, with no MetaTrader terminal, VPS or EA of your own.
6
+
7
+ from fxapis import Fxapis
8
+
9
+ client = Fxapis() # reads FXAPIS_API_KEY
10
+ order = client.orders.market(account_id, symbol="EURUSD", side="buy", volume="0.01")
11
+
12
+ Docs: https://docs.fxapis.com
13
+ """
14
+
15
+ from ._async_client import AsyncFxapis
16
+ from ._base import UNSET
17
+ from ._client import Fxapis
18
+ from ._version import __version__
19
+ from .errors import (
20
+ AccountExecutingError,
21
+ AccountExistsError,
22
+ AccountHasPositionsError,
23
+ AccountInWaveError,
24
+ AccountNeedsAttentionError,
25
+ AccountNotReadyError,
26
+ APIConnectionError,
27
+ APIStatusError,
28
+ APITimeoutError,
29
+ AuthenticationError,
30
+ ConflictError,
31
+ FeatureNotInPlanError,
32
+ FxapisError,
33
+ IdempotencyInFlightError,
34
+ IdempotencyKeyReusedError,
35
+ InvalidRequestError,
36
+ NeedsOperatorError,
37
+ NoRuntimeError,
38
+ NotFoundError,
39
+ OrderRejectedError,
40
+ OrderUnresolvedError,
41
+ PaymentRequiredError,
42
+ PermissionDeniedError,
43
+ QuotaExceededError,
44
+ RateLimitedError,
45
+ SendFailedError,
46
+ ServerError,
47
+ TradingDisabledError,
48
+ WaitTimeoutError,
49
+ )
50
+ from .types import Page
51
+
52
+ __all__ = [
53
+ "Fxapis",
54
+ "AsyncFxapis",
55
+ "UNSET",
56
+ "Page",
57
+ "__version__",
58
+ "FxapisError",
59
+ "APIConnectionError",
60
+ "APITimeoutError",
61
+ "APIStatusError",
62
+ "InvalidRequestError",
63
+ "AuthenticationError",
64
+ "PermissionDeniedError",
65
+ "NotFoundError",
66
+ "ConflictError",
67
+ "PaymentRequiredError",
68
+ "QuotaExceededError",
69
+ "FeatureNotInPlanError",
70
+ "RateLimitedError",
71
+ "ServerError",
72
+ "OrderRejectedError",
73
+ "OrderUnresolvedError",
74
+ "SendFailedError",
75
+ "AccountNotReadyError",
76
+ "NoRuntimeError",
77
+ "TradingDisabledError",
78
+ "IdempotencyInFlightError",
79
+ "IdempotencyKeyReusedError",
80
+ "AccountExistsError",
81
+ "AccountExecutingError",
82
+ "AccountHasPositionsError",
83
+ "AccountInWaveError",
84
+ "NeedsOperatorError",
85
+ "AccountNeedsAttentionError",
86
+ "WaitTimeoutError",
87
+ ]