HedgeTech 0.3.0b3__tar.gz → 0.3.1b2__tar.gz
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.
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__tse_ifb/__AsyncClient.py +54 -5
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__tse_ifb/__SyncClient.py +53 -4
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech.egg-info/PKG-INFO +1 -1
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/PKG-INFO +1 -1
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/pyproject.toml +1 -1
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/Auth/__AuthAsyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/Auth/__AuthSyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/Auth/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/Auth/__utils/__RetriableAsyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/Auth/__utils/__RetriableSyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/Auth/__utils/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__ime/__AsyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__ime/__SyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__ime/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__ime/__io_types/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__ime/__io_types/__response.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__tse_ifb/__AsyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__tse_ifb/__SyncClient.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__tse_ifb/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__tse_ifb/__io_types/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__tse_ifb/__io_types/__response.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__tse_ifb/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__tse_ifb/__io_types/__init__.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__tse_ifb/__io_types/__response.py +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech.egg-info/SOURCES.txt +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech.egg-info/dependency_links.txt +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech.egg-info/requires.txt +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech.egg-info/top_level.txt +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/LICENSE +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/NOTICE +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/README.md +0 -0
- {hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/setup.cfg +0 -0
|
@@ -93,6 +93,13 @@ class Order:
|
|
|
93
93
|
self.Price : int = Price
|
|
94
94
|
self.Volume : int = Volume
|
|
95
95
|
self.is_deleted : bool = False
|
|
96
|
+
self.OrderStatus : Literal[
|
|
97
|
+
None,
|
|
98
|
+
'InQueue' ,
|
|
99
|
+
'Cancelled',
|
|
100
|
+
'Broken',
|
|
101
|
+
'Settled',
|
|
102
|
+
]
|
|
96
103
|
|
|
97
104
|
self.OrderId : HexUUID | None = None
|
|
98
105
|
|
|
@@ -208,11 +215,36 @@ class Order:
|
|
|
208
215
|
self.ValidityDate = ValidityDate
|
|
209
216
|
self.Price = Edit_response['Data']['order_price']
|
|
210
217
|
self.Volume = Edit_response['Data']['order_volume']
|
|
211
|
-
|
|
218
|
+
self.OrderStatus = 'InQueue'
|
|
212
219
|
return None
|
|
213
220
|
|
|
214
|
-
case _ :
|
|
215
|
-
|
|
221
|
+
case _ :
|
|
222
|
+
|
|
223
|
+
status_respnse = await self.Status()
|
|
224
|
+
|
|
225
|
+
if status_respnse and (
|
|
226
|
+
status_respnse['order_status'] == 'InQueue'
|
|
227
|
+
and status_respnse['RemainedVolume'] + status_respnse['ExecutedVolume'] == Volume
|
|
228
|
+
and status_respnse['Price'] == Price
|
|
229
|
+
and status_respnse['ValidityDate'] == ValidityDate
|
|
230
|
+
and status_respnse['ValidityType'] == Order_ValidityType
|
|
231
|
+
):
|
|
232
|
+
|
|
233
|
+
self.ValidityType = status_respnse['ValidityType']
|
|
234
|
+
self.ValidityDate = status_respnse['ValidityDate']
|
|
235
|
+
self.Price = status_respnse['Price']
|
|
236
|
+
self.Volume = status_respnse['RemainedVolume'] + status_respnse['ExecutedVolume']
|
|
237
|
+
self.OrderStatus = 'InQueue'
|
|
238
|
+
return None
|
|
239
|
+
|
|
240
|
+
elif status_respnse and status_respnse['order_status'] != 'InQueue' :
|
|
241
|
+
|
|
242
|
+
self.OrderStatus = status_respnse['order_status']
|
|
243
|
+
|
|
244
|
+
return None
|
|
245
|
+
|
|
246
|
+
else : return None
|
|
247
|
+
|
|
216
248
|
else : return None
|
|
217
249
|
|
|
218
250
|
except : return None
|
|
@@ -267,7 +299,10 @@ class Order:
|
|
|
267
299
|
|
|
268
300
|
case 200:
|
|
269
301
|
|
|
270
|
-
|
|
302
|
+
status_respnse = status_respnse.json()['Data']
|
|
303
|
+
self.OrderStatus = status_respnse['order_status']
|
|
304
|
+
|
|
305
|
+
return status_respnse
|
|
271
306
|
|
|
272
307
|
case _ : return None
|
|
273
308
|
|
|
@@ -310,9 +345,23 @@ class Order:
|
|
|
310
345
|
case 200:
|
|
311
346
|
|
|
312
347
|
self.is_deleted = True
|
|
348
|
+
self.OrderStatus = 'Cancelled'
|
|
313
349
|
return None
|
|
314
350
|
|
|
315
|
-
case _ :
|
|
351
|
+
case _ :
|
|
352
|
+
|
|
353
|
+
status_respnse = await self.Status()
|
|
354
|
+
|
|
355
|
+
if status_respnse and status_respnse['order_status'] == 'Cancelled':
|
|
356
|
+
self.is_deleted = True
|
|
357
|
+
self.OrderStatus = 'Cancelled'
|
|
358
|
+
return None
|
|
359
|
+
|
|
360
|
+
elif status_respnse and status_respnse['order_status'] != 'Cancelled' :
|
|
361
|
+
self.OrderStatus = status_respnse['order_status']
|
|
362
|
+
return None
|
|
363
|
+
|
|
364
|
+
else : return None
|
|
316
365
|
|
|
317
366
|
else : return None
|
|
318
367
|
|
|
@@ -92,6 +92,13 @@ class Order:
|
|
|
92
92
|
self.Price : int = Price
|
|
93
93
|
self.Volume : int = Volume
|
|
94
94
|
self.is_deleted : bool = False
|
|
95
|
+
self.OrderStatus : Literal[
|
|
96
|
+
None,
|
|
97
|
+
'InQueue' ,
|
|
98
|
+
'Cancelled',
|
|
99
|
+
'Broken',
|
|
100
|
+
'Settled',
|
|
101
|
+
]
|
|
95
102
|
|
|
96
103
|
self.OrderId : HexUUID | None = None
|
|
97
104
|
|
|
@@ -220,10 +227,35 @@ class Order:
|
|
|
220
227
|
self.ValidityDate = ValidityDate
|
|
221
228
|
self.Price = Edit_response['Data']['order_price']
|
|
222
229
|
self.Volume = Edit_response['Data']['order_volume']
|
|
223
|
-
|
|
230
|
+
self.OrderStatus = 'InQueue'
|
|
224
231
|
return None
|
|
225
232
|
|
|
226
|
-
case _ :
|
|
233
|
+
case _ :
|
|
234
|
+
|
|
235
|
+
status_respnse = self.Status()
|
|
236
|
+
|
|
237
|
+
if status_respnse and (
|
|
238
|
+
status_respnse['order_status'] == 'InQueue'
|
|
239
|
+
and status_respnse['RemainedVolume'] + status_respnse['ExecutedVolume'] == Volume
|
|
240
|
+
and status_respnse['Price'] == Price
|
|
241
|
+
and status_respnse['ValidityDate'] == ValidityDate
|
|
242
|
+
and status_respnse['ValidityType'] == Order_ValidityType
|
|
243
|
+
):
|
|
244
|
+
|
|
245
|
+
self.ValidityType = status_respnse['ValidityType']
|
|
246
|
+
self.ValidityDate = status_respnse['ValidityDate']
|
|
247
|
+
self.Price = status_respnse['Price']
|
|
248
|
+
self.Volume = status_respnse['RemainedVolume'] + status_respnse['ExecutedVolume']
|
|
249
|
+
self.OrderStatus = 'InQueue'
|
|
250
|
+
return None
|
|
251
|
+
|
|
252
|
+
elif status_respnse and status_respnse['order_status'] != 'InQueue' :
|
|
253
|
+
|
|
254
|
+
self.OrderStatus = status_respnse['order_status']
|
|
255
|
+
|
|
256
|
+
return None
|
|
257
|
+
|
|
258
|
+
else : return None
|
|
227
259
|
|
|
228
260
|
else : return None
|
|
229
261
|
|
|
@@ -331,7 +363,10 @@ class Order:
|
|
|
331
363
|
|
|
332
364
|
case 200:
|
|
333
365
|
|
|
334
|
-
|
|
366
|
+
status_respnse = status_respnse.json()['Data']
|
|
367
|
+
self.OrderStatus = status_respnse['order_status']
|
|
368
|
+
|
|
369
|
+
return status_respnse
|
|
335
370
|
|
|
336
371
|
case _ : return None
|
|
337
372
|
|
|
@@ -378,9 +413,23 @@ class Order:
|
|
|
378
413
|
case 200:
|
|
379
414
|
|
|
380
415
|
self.is_deleted = True
|
|
416
|
+
self.OrderStatus = 'Cancelled'
|
|
381
417
|
return None
|
|
382
418
|
|
|
383
|
-
case _ :
|
|
419
|
+
case _ :
|
|
420
|
+
|
|
421
|
+
status_respnse = self.Status()
|
|
422
|
+
|
|
423
|
+
if status_respnse and status_respnse['order_status'] == 'Cancelled':
|
|
424
|
+
self.is_deleted = True
|
|
425
|
+
self.OrderStatus = 'Cancelled'
|
|
426
|
+
return None
|
|
427
|
+
|
|
428
|
+
elif status_respnse and status_respnse['order_status'] != 'Cancelled' :
|
|
429
|
+
self.OrderStatus = status_respnse['order_status']
|
|
430
|
+
return None
|
|
431
|
+
|
|
432
|
+
else : return None
|
|
384
433
|
|
|
385
434
|
else : return None
|
|
386
435
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: HedgeTech
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1b2
|
|
4
4
|
Summary: A unified, high-performance API layer that powers all trading infrastructure across the HedgeTech ecosystem, providing modular, scalable, and real-time interfaces for market data, order management, and execution systems.
|
|
5
5
|
Author-email: "hedgetech.ir" <info@hedgetech.ir>
|
|
6
6
|
License: Apache License
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: HedgeTech
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1b2
|
|
4
4
|
Summary: A unified, high-performance API layer that powers all trading infrastructure across the HedgeTech ecosystem, providing modular, scalable, and real-time interfaces for market data, order management, and execution systems.
|
|
5
5
|
Author-email: "hedgetech.ir" <info@hedgetech.ir>
|
|
6
6
|
License: Apache License
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "HedgeTech"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1b2"
|
|
8
8
|
description = "A unified, high-performance API layer that powers all trading infrastructure across the HedgeTech ecosystem, providing modular, scalable, and real-time interfaces for market data, order management, and execution systems."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__tse_ifb/__io_types/__init__.py
RENAMED
|
File without changes
|
{hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/DataEngine/__tse_ifb/__io_types/__response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__tse_ifb/__io_types/__init__.py
RENAMED
|
File without changes
|
{hedgetech-0.3.0b3 → hedgetech-0.3.1b2}/HedgeTech/EmsEngine/__tse_ifb/__io_types/__response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|