architect-py 5.0.0b3__py3-none-any.whl → 5.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.
- architect_py/__init__.py +432 -5
- architect_py/async_client.py +77 -43
- architect_py/client.py +11 -4
- architect_py/client.pyi +504 -0
- architect_py/common_types/__init__.py +2 -1
- architect_py/common_types/time_in_force.py +94 -0
- architect_py/common_types/tradable_product.py +9 -0
- architect_py/graphql_client/__init__.py +1 -216
- architect_py/graphql_client/client.py +2 -1043
- architect_py/graphql_client/enums.py +0 -72
- architect_py/graphql_client/fragments.py +4 -152
- architect_py/grpc/__init__.py +0 -143
- architect_py/grpc/client.py +6 -1
- architect_py/grpc/models/Core/RestartCptyRequest.py +40 -0
- architect_py/grpc/models/Core/RestartCptyResponse.py +20 -0
- architect_py/grpc/models/Marketdata/Liquidation.py +0 -1
- architect_py/grpc/models/Marketdata/Ticker.py +14 -1
- architect_py/grpc/models/Marketdata/TickersRequest.py +38 -12
- architect_py/grpc/models/Marketdata/Trade.py +0 -1
- architect_py/grpc/models/Oms/Order.py +33 -24
- architect_py/grpc/models/Oms/PlaceOrderRequest.py +33 -24
- architect_py/grpc/models/__init__.py +113 -2
- architect_py/grpc/models/definitions.py +2 -32
- architect_py/grpc/utils.py +1 -4
- architect_py/tests/test_order_entry.py +2 -3
- architect_py/tests/test_orderflow.py +1 -1
- architect_py/utils/pandas.py +4 -3
- architect_py-5.1.0.dist-info/METADATA +66 -0
- {architect_py-5.0.0b3.dist-info → architect_py-5.1.0.dist-info}/RECORD +48 -67
- {architect_py-5.0.0b3.dist-info → architect_py-5.1.0.dist-info}/WHEEL +1 -1
- examples/book_subscription.py +1 -2
- examples/candles.py +1 -3
- examples/common.py +1 -2
- examples/external_cpty.py +2 -2
- examples/funding_rate_mean_reversion_algo.py +9 -6
- examples/order_sending.py +29 -9
- examples/stream_l1_marketdata.py +1 -2
- examples/stream_l2_marketdata.py +1 -2
- examples/trades.py +1 -2
- examples/tutorial_async.py +6 -8
- examples/tutorial_sync.py +6 -7
- scripts/add_imports_to_inits.py +146 -0
- scripts/correct_sync_interface.py +143 -0
- scripts/postprocess_grpc.py +57 -11
- scripts/preprocess_grpc_schema.py +2 -0
- scripts/prune_graphql_schema.py +187 -0
- architect_py/client_interface.py +0 -63
- architect_py/common_types/scalars.py +0 -25
- architect_py/graphql_client/cancel_all_orders_mutation.py +0 -17
- architect_py/graphql_client/cancel_order_mutation.py +0 -23
- architect_py/graphql_client/create_jwt.py +0 -17
- architect_py/graphql_client/get_account_history_query.py +0 -27
- architect_py/graphql_client/get_account_query.py +0 -23
- architect_py/graphql_client/get_account_summaries_query.py +0 -27
- architect_py/graphql_client/get_account_summary_query.py +0 -25
- architect_py/graphql_client/get_candle_snapshot_query.py +0 -27
- architect_py/graphql_client/get_fills_query.py +0 -69
- architect_py/graphql_client/get_historical_orders_query.py +0 -27
- architect_py/graphql_client/get_l_1_book_snapshot_query.py +0 -21
- architect_py/graphql_client/get_l_1_book_snapshots_query.py +0 -23
- architect_py/graphql_client/get_l_2_book_snapshot_query.py +0 -25
- architect_py/graphql_client/get_market_status_query.py +0 -25
- architect_py/graphql_client/get_open_orders_query.py +0 -25
- architect_py/graphql_client/list_accounts_query.py +0 -23
- architect_py/graphql_client/place_order_mutation.py +0 -23
- architect_py/graphql_client/subscribe_candles.py +0 -16
- architect_py/graphql_client/subscribe_orderflow.py +0 -100
- architect_py/graphql_client/subscribe_trades.py +0 -27
- architect_py/graphql_client/user_email_query.py +0 -17
- architect_py/internal_utils/__init__.py +0 -0
- architect_py/internal_utils/no_pandas.py +0 -3
- architect_py-5.0.0b3.dist-info/METADATA +0 -123
- scripts/generate_sync_interface.py +0 -226
- {architect_py-5.0.0b3.dist-info → architect_py-5.1.0.dist-info}/licenses/LICENSE +0 -0
- {architect_py-5.0.0b3.dist-info → architect_py-5.1.0.dist-info}/top_level.txt +0 -0
@@ -1,75 +1,14 @@
|
|
1
1
|
# Generated by ariadne-codegen
|
2
2
|
|
3
3
|
from .base_model import BaseModel, Upload
|
4
|
-
from .cancel_all_orders_mutation import (
|
5
|
-
CancelAllOrdersMutation,
|
6
|
-
CancelAllOrdersMutationOms,
|
7
|
-
)
|
8
|
-
from .cancel_order_mutation import (
|
9
|
-
CancelOrderMutation,
|
10
|
-
CancelOrderMutationOms,
|
11
|
-
CancelOrderMutationOmsCancelOrder,
|
12
|
-
)
|
13
4
|
from .client import GraphQLClient
|
14
|
-
from .
|
15
|
-
from .enums import (
|
16
|
-
CancelStatus,
|
17
|
-
CandleWidth,
|
18
|
-
FillKind,
|
19
|
-
MinOrderQuantityUnit,
|
20
|
-
OrderSource,
|
21
|
-
OrderStatus,
|
22
|
-
OrderType,
|
23
|
-
PutOrCall,
|
24
|
-
SortTickersBy,
|
25
|
-
TimeInForce,
|
26
|
-
)
|
5
|
+
from .enums import MinOrderQuantityUnit
|
27
6
|
from .fragments import (
|
28
|
-
AccountSummaryFields,
|
29
|
-
AccountSummaryFieldsBalances,
|
30
|
-
AccountSummaryFieldsPositions,
|
31
|
-
AccountWithPermissionsFields,
|
32
|
-
AccountWithPermissionsFieldsAccount,
|
33
|
-
AccountWithPermissionsFieldsPermissions,
|
34
|
-
CancelFields,
|
35
|
-
CandleFields,
|
36
7
|
ExecutionInfoFields,
|
37
|
-
L2BookFields,
|
38
|
-
L2BookFieldsAsks,
|
39
|
-
L2BookFieldsBids,
|
40
|
-
L2BookLevelFields,
|
41
|
-
MarketStatusFields,
|
42
|
-
MarketTickerFields,
|
43
|
-
OrderFields,
|
44
8
|
ProductInfoFields,
|
45
9
|
ProductInfoFieldsSpreadLegs,
|
46
10
|
SpreadLegFields,
|
47
11
|
)
|
48
|
-
from .get_account_history_query import (
|
49
|
-
GetAccountHistoryQuery,
|
50
|
-
GetAccountHistoryQueryFolio,
|
51
|
-
GetAccountHistoryQueryFolioAccountHistory,
|
52
|
-
)
|
53
|
-
from .get_account_query import (
|
54
|
-
GetAccountQuery,
|
55
|
-
GetAccountQueryUser,
|
56
|
-
GetAccountQueryUserAccount,
|
57
|
-
)
|
58
|
-
from .get_account_summaries_query import (
|
59
|
-
GetAccountSummariesQuery,
|
60
|
-
GetAccountSummariesQueryFolio,
|
61
|
-
GetAccountSummariesQueryFolioAccountSummaries,
|
62
|
-
)
|
63
|
-
from .get_account_summary_query import (
|
64
|
-
GetAccountSummaryQuery,
|
65
|
-
GetAccountSummaryQueryFolio,
|
66
|
-
GetAccountSummaryQueryFolioAccountSummary,
|
67
|
-
)
|
68
|
-
from .get_candle_snapshot_query import (
|
69
|
-
GetCandleSnapshotQuery,
|
70
|
-
GetCandleSnapshotQueryMarketdata,
|
71
|
-
GetCandleSnapshotQueryMarketdataHistoricalCandles,
|
72
|
-
)
|
73
12
|
from .get_execution_info_query import (
|
74
13
|
GetExecutionInfoQuery,
|
75
14
|
GetExecutionInfoQuerySymbology,
|
@@ -80,49 +19,12 @@ from .get_execution_infos_query import (
|
|
80
19
|
GetExecutionInfosQuerySymbology,
|
81
20
|
GetExecutionInfosQuerySymbologyExecutionInfos,
|
82
21
|
)
|
83
|
-
from .get_fills_query import (
|
84
|
-
GetFillsQuery,
|
85
|
-
GetFillsQueryFolio,
|
86
|
-
GetFillsQueryFolioHistoricalFills,
|
87
|
-
GetFillsQueryFolioHistoricalFillsAberrantFills,
|
88
|
-
GetFillsQueryFolioHistoricalFillsFills,
|
89
|
-
)
|
90
22
|
from .get_first_notice_date_query import (
|
91
23
|
GetFirstNoticeDateQuery,
|
92
24
|
GetFirstNoticeDateQuerySymbology,
|
93
25
|
GetFirstNoticeDateQuerySymbologyProductInfo,
|
94
26
|
)
|
95
27
|
from .get_future_series_query import GetFutureSeriesQuery, GetFutureSeriesQuerySymbology
|
96
|
-
from .get_historical_orders_query import (
|
97
|
-
GetHistoricalOrdersQuery,
|
98
|
-
GetHistoricalOrdersQueryFolio,
|
99
|
-
GetHistoricalOrdersQueryFolioHistoricalOrders,
|
100
|
-
)
|
101
|
-
from .get_l_1_book_snapshot_query import (
|
102
|
-
GetL1BookSnapshotQuery,
|
103
|
-
GetL1BookSnapshotQueryMarketdata,
|
104
|
-
GetL1BookSnapshotQueryMarketdataTicker,
|
105
|
-
)
|
106
|
-
from .get_l_1_book_snapshots_query import (
|
107
|
-
GetL1BookSnapshotsQuery,
|
108
|
-
GetL1BookSnapshotsQueryMarketdata,
|
109
|
-
GetL1BookSnapshotsQueryMarketdataTickers,
|
110
|
-
)
|
111
|
-
from .get_l_2_book_snapshot_query import (
|
112
|
-
GetL2BookSnapshotQuery,
|
113
|
-
GetL2BookSnapshotQueryMarketdata,
|
114
|
-
GetL2BookSnapshotQueryMarketdataL2BookSnapshot,
|
115
|
-
)
|
116
|
-
from .get_market_status_query import (
|
117
|
-
GetMarketStatusQuery,
|
118
|
-
GetMarketStatusQueryMarketdata,
|
119
|
-
GetMarketStatusQueryMarketdataMarketStatus,
|
120
|
-
)
|
121
|
-
from .get_open_orders_query import (
|
122
|
-
GetOpenOrdersQuery,
|
123
|
-
GetOpenOrdersQueryOms,
|
124
|
-
GetOpenOrdersQueryOmsOpenOrders,
|
125
|
-
)
|
126
28
|
from .get_product_info_query import (
|
127
29
|
GetProductInfoQuery,
|
128
30
|
GetProductInfoQuerySymbology,
|
@@ -134,105 +36,23 @@ from .get_product_infos_query import (
|
|
134
36
|
GetProductInfosQuerySymbologyProductInfos,
|
135
37
|
)
|
136
38
|
from .juniper_base_client import JuniperBaseClient
|
137
|
-
from .list_accounts_query import (
|
138
|
-
ListAccountsQuery,
|
139
|
-
ListAccountsQueryUser,
|
140
|
-
ListAccountsQueryUserAccounts,
|
141
|
-
)
|
142
|
-
from .place_order_mutation import (
|
143
|
-
PlaceOrderMutation,
|
144
|
-
PlaceOrderMutationOms,
|
145
|
-
PlaceOrderMutationOmsPlaceOrder,
|
146
|
-
)
|
147
39
|
from .search_symbols_query import SearchSymbolsQuery, SearchSymbolsQuerySymbology
|
148
|
-
from .subscribe_candles import SubscribeCandles, SubscribeCandlesCandles
|
149
|
-
from .subscribe_orderflow import (
|
150
|
-
SubscribeOrderflow,
|
151
|
-
SubscribeOrderflowOrderflowAberrantFill,
|
152
|
-
SubscribeOrderflowOrderflowCancel,
|
153
|
-
SubscribeOrderflowOrderflowCancelReject,
|
154
|
-
SubscribeOrderflowOrderflowFill,
|
155
|
-
SubscribeOrderflowOrderflowGqlOrderReject,
|
156
|
-
SubscribeOrderflowOrderflowOrder,
|
157
|
-
SubscribeOrderflowOrderflowOrderAck,
|
158
|
-
SubscribeOrderflowOrderflowOrderCanceled,
|
159
|
-
SubscribeOrderflowOrderflowOrderCanceling,
|
160
|
-
SubscribeOrderflowOrderflowOrderOut,
|
161
|
-
SubscribeOrderflowOrderflowOrderStale,
|
162
|
-
)
|
163
|
-
from .subscribe_trades import SubscribeTrades, SubscribeTradesTrades
|
164
40
|
from .user_id_query import UserIdQuery, UserIdQueryUser
|
165
41
|
|
166
42
|
__all__ = [
|
167
|
-
"AccountSummaryFields",
|
168
|
-
"AccountSummaryFieldsBalances",
|
169
|
-
"AccountSummaryFieldsPositions",
|
170
|
-
"AccountWithPermissionsFields",
|
171
|
-
"AccountWithPermissionsFieldsAccount",
|
172
|
-
"AccountWithPermissionsFieldsPermissions",
|
173
43
|
"BaseModel",
|
174
|
-
"CancelAllOrdersMutation",
|
175
|
-
"CancelAllOrdersMutationOms",
|
176
|
-
"CancelFields",
|
177
|
-
"CancelOrderMutation",
|
178
|
-
"CancelOrderMutationOms",
|
179
|
-
"CancelOrderMutationOmsCancelOrder",
|
180
|
-
"CancelStatus",
|
181
|
-
"CandleFields",
|
182
|
-
"CandleWidth",
|
183
|
-
"CreateJwt",
|
184
|
-
"CreateJwtUser",
|
185
44
|
"ExecutionInfoFields",
|
186
|
-
"FillKind",
|
187
|
-
"GetAccountHistoryQuery",
|
188
|
-
"GetAccountHistoryQueryFolio",
|
189
|
-
"GetAccountHistoryQueryFolioAccountHistory",
|
190
|
-
"GetAccountQuery",
|
191
|
-
"GetAccountQueryUser",
|
192
|
-
"GetAccountQueryUserAccount",
|
193
|
-
"GetAccountSummariesQuery",
|
194
|
-
"GetAccountSummariesQueryFolio",
|
195
|
-
"GetAccountSummariesQueryFolioAccountSummaries",
|
196
|
-
"GetAccountSummaryQuery",
|
197
|
-
"GetAccountSummaryQueryFolio",
|
198
|
-
"GetAccountSummaryQueryFolioAccountSummary",
|
199
|
-
"GetCandleSnapshotQuery",
|
200
|
-
"GetCandleSnapshotQueryMarketdata",
|
201
|
-
"GetCandleSnapshotQueryMarketdataHistoricalCandles",
|
202
45
|
"GetExecutionInfoQuery",
|
203
46
|
"GetExecutionInfoQuerySymbology",
|
204
47
|
"GetExecutionInfoQuerySymbologyExecutionInfo",
|
205
48
|
"GetExecutionInfosQuery",
|
206
49
|
"GetExecutionInfosQuerySymbology",
|
207
50
|
"GetExecutionInfosQuerySymbologyExecutionInfos",
|
208
|
-
"GetFillsQuery",
|
209
|
-
"GetFillsQueryFolio",
|
210
|
-
"GetFillsQueryFolioHistoricalFills",
|
211
|
-
"GetFillsQueryFolioHistoricalFillsAberrantFills",
|
212
|
-
"GetFillsQueryFolioHistoricalFillsFills",
|
213
51
|
"GetFirstNoticeDateQuery",
|
214
52
|
"GetFirstNoticeDateQuerySymbology",
|
215
53
|
"GetFirstNoticeDateQuerySymbologyProductInfo",
|
216
54
|
"GetFutureSeriesQuery",
|
217
55
|
"GetFutureSeriesQuerySymbology",
|
218
|
-
"GetHistoricalOrdersQuery",
|
219
|
-
"GetHistoricalOrdersQueryFolio",
|
220
|
-
"GetHistoricalOrdersQueryFolioHistoricalOrders",
|
221
|
-
"GetL1BookSnapshotQuery",
|
222
|
-
"GetL1BookSnapshotQueryMarketdata",
|
223
|
-
"GetL1BookSnapshotQueryMarketdataTicker",
|
224
|
-
"GetL1BookSnapshotsQuery",
|
225
|
-
"GetL1BookSnapshotsQueryMarketdata",
|
226
|
-
"GetL1BookSnapshotsQueryMarketdataTickers",
|
227
|
-
"GetL2BookSnapshotQuery",
|
228
|
-
"GetL2BookSnapshotQueryMarketdata",
|
229
|
-
"GetL2BookSnapshotQueryMarketdataL2BookSnapshot",
|
230
|
-
"GetMarketStatusQuery",
|
231
|
-
"GetMarketStatusQueryMarketdata",
|
232
|
-
"GetMarketStatusQueryMarketdataMarketStatus",
|
233
|
-
"GetOpenOrdersQuery",
|
234
|
-
"GetOpenOrdersQueryOms",
|
235
|
-
"GetOpenOrdersQueryOmsOpenOrders",
|
236
56
|
"GetProductInfoQuery",
|
237
57
|
"GetProductInfoQuerySymbology",
|
238
58
|
"GetProductInfoQuerySymbologyProductInfo",
|
@@ -241,47 +61,12 @@ __all__ = [
|
|
241
61
|
"GetProductInfosQuerySymbologyProductInfos",
|
242
62
|
"GraphQLClient",
|
243
63
|
"JuniperBaseClient",
|
244
|
-
"L2BookFields",
|
245
|
-
"L2BookFieldsAsks",
|
246
|
-
"L2BookFieldsBids",
|
247
|
-
"L2BookLevelFields",
|
248
|
-
"ListAccountsQuery",
|
249
|
-
"ListAccountsQueryUser",
|
250
|
-
"ListAccountsQueryUserAccounts",
|
251
|
-
"MarketStatusFields",
|
252
|
-
"MarketTickerFields",
|
253
64
|
"MinOrderQuantityUnit",
|
254
|
-
"OrderFields",
|
255
|
-
"OrderSource",
|
256
|
-
"OrderStatus",
|
257
|
-
"OrderType",
|
258
|
-
"PlaceOrderMutation",
|
259
|
-
"PlaceOrderMutationOms",
|
260
|
-
"PlaceOrderMutationOmsPlaceOrder",
|
261
65
|
"ProductInfoFields",
|
262
66
|
"ProductInfoFieldsSpreadLegs",
|
263
|
-
"PutOrCall",
|
264
67
|
"SearchSymbolsQuery",
|
265
68
|
"SearchSymbolsQuerySymbology",
|
266
|
-
"SortTickersBy",
|
267
69
|
"SpreadLegFields",
|
268
|
-
"SubscribeCandles",
|
269
|
-
"SubscribeCandlesCandles",
|
270
|
-
"SubscribeOrderflow",
|
271
|
-
"SubscribeOrderflowOrderflowAberrantFill",
|
272
|
-
"SubscribeOrderflowOrderflowCancel",
|
273
|
-
"SubscribeOrderflowOrderflowCancelReject",
|
274
|
-
"SubscribeOrderflowOrderflowFill",
|
275
|
-
"SubscribeOrderflowOrderflowGqlOrderReject",
|
276
|
-
"SubscribeOrderflowOrderflowOrder",
|
277
|
-
"SubscribeOrderflowOrderflowOrderAck",
|
278
|
-
"SubscribeOrderflowOrderflowOrderCanceled",
|
279
|
-
"SubscribeOrderflowOrderflowOrderCanceling",
|
280
|
-
"SubscribeOrderflowOrderflowOrderOut",
|
281
|
-
"SubscribeOrderflowOrderflowOrderStale",
|
282
|
-
"SubscribeTrades",
|
283
|
-
"SubscribeTradesTrades",
|
284
|
-
"TimeInForce",
|
285
70
|
"Upload",
|
286
71
|
"UserIdQuery",
|
287
72
|
"UserIdQueryUser",
|