finatic-server-python 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.
@@ -0,0 +1,127 @@
1
+ """
2
+ Finatic Server Python SDK
3
+
4
+ A Python SDK for integrating with Finatic's server-side trading and portfolio management APIs.
5
+ """
6
+
7
+ from .core.client import FinaticServerClient
8
+ from .core.api_client import ApiClient
9
+
10
+ # Export all types
11
+ from .types import (
12
+ # Common types
13
+ DeviceInfo,
14
+ ApiResponse,
15
+ ApiPaginationInfo,
16
+ PaginationMetadata,
17
+ TradingContext,
18
+ RequestHeaders,
19
+
20
+ # Authentication types
21
+ UserToken,
22
+ SessionResponse,
23
+ SessionInitResponse,
24
+ OtpRequestResponse,
25
+ OtpVerifyResponse,
26
+ SessionAuthenticateResponse,
27
+
28
+ # Portfolio types
29
+ Portfolio,
30
+ Holding,
31
+ PerformanceMetrics,
32
+ PortfolioSnapshot,
33
+
34
+ # Order types
35
+ Order,
36
+ OptionsOrder,
37
+ CryptoOrderOptions,
38
+ OptionsOrderOptions,
39
+ OrderResponse,
40
+ BrokerOrderParams,
41
+ BrokerExtras,
42
+
43
+ # Broker types
44
+ BrokerAccount,
45
+ BrokerOrder,
46
+ BrokerPosition,
47
+ BrokerInfo,
48
+ BrokerConnection,
49
+ BrokerDataOptions,
50
+ OrdersFilter,
51
+ PositionsFilter,
52
+ AccountsFilter,
53
+ )
54
+
55
+ # Export all errors
56
+ from .utils.errors import (
57
+ FinaticError,
58
+ ApiError,
59
+ AuthenticationError,
60
+ AuthorizationError,
61
+ ValidationError,
62
+ RateLimitError,
63
+ NetworkError,
64
+ TimeoutError,
65
+ )
66
+
67
+ __version__ = "0.1.0"
68
+ __author__ = "Finatic"
69
+ __email__ = "dev@finatic.com"
70
+
71
+ __all__ = [
72
+ # Main client
73
+ "FinaticServerClient",
74
+ "ApiClient",
75
+
76
+ # Common types
77
+ "DeviceInfo",
78
+ "ApiResponse",
79
+ "ApiPaginationInfo",
80
+ "PaginationMetadata",
81
+ "TradingContext",
82
+ "RequestHeaders",
83
+
84
+ # Authentication types
85
+ "UserToken",
86
+ "SessionResponse",
87
+ "SessionInitResponse",
88
+ "OtpRequestResponse",
89
+ "OtpVerifyResponse",
90
+ "SessionAuthenticateResponse",
91
+
92
+ # Portfolio types
93
+ "Portfolio",
94
+ "Holding",
95
+ "PerformanceMetrics",
96
+ "PortfolioSnapshot",
97
+
98
+ # Order types
99
+ "Order",
100
+ "OptionsOrder",
101
+ "CryptoOrderOptions",
102
+ "OptionsOrderOptions",
103
+ "OrderResponse",
104
+ "BrokerOrderParams",
105
+ "BrokerExtras",
106
+
107
+ # Broker types
108
+ "BrokerAccount",
109
+ "BrokerOrder",
110
+ "BrokerPosition",
111
+ "BrokerInfo",
112
+ "BrokerConnection",
113
+ "BrokerDataOptions",
114
+ "OrdersFilter",
115
+ "PositionsFilter",
116
+ "AccountsFilter",
117
+
118
+ # Errors
119
+ "FinaticError",
120
+ "ApiError",
121
+ "AuthenticationError",
122
+ "AuthorizationError",
123
+ "ValidationError",
124
+ "RateLimitError",
125
+ "NetworkError",
126
+ "TimeoutError",
127
+ ]
@@ -0,0 +1,6 @@
1
+ """Core client implementations for the Finatic Server SDK."""
2
+
3
+ from .client import FinaticServerClient
4
+ from .api_client import ApiClient
5
+
6
+ __all__ = ["FinaticServerClient", "ApiClient"]