HedgeTech 0.3.0b2__tar.gz → 0.3.1b1__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.
Files changed (34) hide show
  1. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__ime/__SyncClient.py +2 -0
  2. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/EmsEngine/__tse_ifb/__AsyncClient.py +35 -3
  3. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/EmsEngine/__tse_ifb/__SyncClient.py +34 -2
  4. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech.egg-info/PKG-INFO +1 -1
  5. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/PKG-INFO +1 -1
  6. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/pyproject.toml +1 -1
  7. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/Auth/__AuthAsyncClient.py +0 -0
  8. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/Auth/__AuthSyncClient.py +0 -0
  9. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/Auth/__init__.py +0 -0
  10. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/Auth/__utils/__RetriableAsyncClient.py +0 -0
  11. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/Auth/__utils/__RetriableSyncClient.py +0 -0
  12. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/Auth/__utils/__init__.py +0 -0
  13. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__ime/__AsyncClient.py +0 -0
  14. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__ime/__init__.py +0 -0
  15. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__ime/__io_types/__init__.py +0 -0
  16. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__ime/__io_types/__response.py +0 -0
  17. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__init__.py +0 -0
  18. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__tse_ifb/__AsyncClient.py +0 -0
  19. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__tse_ifb/__SyncClient.py +0 -0
  20. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__tse_ifb/__init__.py +0 -0
  21. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__tse_ifb/__io_types/__init__.py +0 -0
  22. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/DataEngine/__tse_ifb/__io_types/__response.py +0 -0
  23. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/EmsEngine/__init__.py +0 -0
  24. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/EmsEngine/__tse_ifb/__init__.py +0 -0
  25. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/EmsEngine/__tse_ifb/__io_types/__init__.py +0 -0
  26. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech/EmsEngine/__tse_ifb/__io_types/__response.py +0 -0
  27. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech.egg-info/SOURCES.txt +0 -0
  28. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech.egg-info/dependency_links.txt +0 -0
  29. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech.egg-info/requires.txt +0 -0
  30. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/HedgeTech.egg-info/top_level.txt +0 -0
  31. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/LICENSE +0 -0
  32. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/NOTICE +0 -0
  33. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/README.md +0 -0
  34. {hedgetech-0.3.0b2 → hedgetech-0.3.1b1}/setup.cfg +0 -0
@@ -280,6 +280,7 @@ class DataEngine_Ime_SyncClient:
280
280
  event: Event | None = None,
281
281
  )-> Generator[
282
282
  WebsocketBase_contractName,
283
+ None,
283
284
  None
284
285
  ]:
285
286
 
@@ -312,6 +313,7 @@ class DataEngine_Ime_SyncClient:
312
313
  event: Event | None = None,
313
314
  )-> Generator[
314
315
  WebsocketBase_contractId,
316
+ None,
315
317
  None
316
318
  ]:
317
319
 
@@ -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 _ : return None
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
@@ -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 _ : return None
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: HedgeTech
3
- Version: 0.3.0b2
3
+ Version: 0.3.1b1
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.0b2
3
+ Version: 0.3.1b1
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.0b2"
7
+ version = "0.3.1b1"
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