wiz-trader 0.4.0__tar.gz → 0.6.0__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: wiz_trader
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: A Python SDK for connecting to the Wizzer.
5
5
  Home-page: https://bitbucket.org/wizzer-tech/quotes_sdk.git
6
6
  Author: Pawan Wagh
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wiz_trader"
7
- version = "0.4.0"
7
+ version = "0.6.0"
8
8
  description = "A Python SDK for connecting to the Wizzer."
9
9
  readme = "README.md"
10
10
  authors = [
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='wiz_trader',
5
- version='0.4.0',
5
+ version='0.6.0',
6
6
  description='A Python SDK for connecting to the Wizzer.',
7
7
  long_description=open('README.md').read() if open('README.md') else "",
8
8
  long_description_content_type='text/markdown',
@@ -3,6 +3,6 @@
3
3
  from .quotes import QuotesClient
4
4
  from .apis import WizzerClient
5
5
 
6
- __version__ = "0.4.0"
6
+ __version__ = "0.6.0"
7
7
 
8
8
  __all__ = ["QuotesClient", "WizzerClient"]
@@ -176,7 +176,7 @@ class WizzerClient:
176
176
  target: float = 0,
177
177
  segment: Optional[str] = None,
178
178
  exchange_token: Optional[int] = None,
179
- broker: str = "",
179
+ broker: str = None,
180
180
  strategy: Optional[Dict[str, str]] = None
181
181
  ) -> Dict[str, Any]:
182
182
  """
@@ -228,7 +228,6 @@ class WizzerClient:
228
228
  "stoploss": stoploss,
229
229
  "target": target,
230
230
  "segment": segment,
231
- "broker": broker,
232
231
  "strategy": strategy_info
233
232
  }
234
233
 
@@ -274,6 +273,21 @@ class WizzerClient:
274
273
  logger.debug("Cancelling order: %s", order_id)
275
274
  return self._make_request("DELETE", endpoint)
276
275
 
276
+ def get_order(self, order_id: str) -> Dict[str, Any]:
277
+ """
278
+ Get details of a specific order by ID.
279
+
280
+ Args:
281
+ order_id (str): ID of the order to retrieve.
282
+
283
+ Returns:
284
+ Dict[str, Any]: Order details.
285
+ """
286
+ endpoint = f"/orders/{order_id}"
287
+
288
+ logger.debug("Fetching order: %s", order_id)
289
+ return self._make_request("GET", endpoint)
290
+
277
291
  def get_positions(self) -> List[Dict[str, Any]]:
278
292
  """
279
293
  Get current portfolio positions.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: wiz_trader
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: A Python SDK for connecting to the Wizzer.
5
5
  Home-page: https://bitbucket.org/wizzer-tech/quotes_sdk.git
6
6
  Author: Pawan Wagh
File without changes
File without changes
File without changes