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.
- {wiz_trader-0.4.0/src/wiz_trader.egg-info → wiz_trader-0.6.0}/PKG-INFO +2 -2
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/pyproject.toml +1 -1
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/setup.py +1 -1
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader/__init__.py +1 -1
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader/apis/client.py +16 -2
- {wiz_trader-0.4.0 → wiz_trader-0.6.0/src/wiz_trader.egg-info}/PKG-INFO +2 -2
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/MANIFEST.in +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/README.md +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/setup.cfg +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader/apis/__init__.py +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader/quotes/__init__.py +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader/quotes/client.py +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader.egg-info/SOURCES.txt +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader.egg-info/dependency_links.txt +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader.egg-info/requires.txt +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/src/wiz_trader.egg-info/top_level.txt +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/tests/test_apis.py +0 -0
- {wiz_trader-0.4.0 → wiz_trader-0.6.0}/tests/test_quotes.py +0 -0
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='wiz_trader',
|
5
|
-
version='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',
|
@@ -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.
|
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
|