wiz-trader 0.11.0__tar.gz → 0.12.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.11.0/src/wiz_trader.egg-info → wiz_trader-0.12.0}/PKG-INFO +9 -1
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/README.md +8 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/pyproject.toml +1 -1
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/setup.py +1 -1
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader/__init__.py +1 -1
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader/apis/client.py +5 -5
- {wiz_trader-0.11.0 → wiz_trader-0.12.0/src/wiz_trader.egg-info}/PKG-INFO +9 -1
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/MANIFEST.in +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/setup.cfg +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader/apis/__init__.py +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader/quotes/__init__.py +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader/quotes/client.py +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader.egg-info/SOURCES.txt +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader.egg-info/dependency_links.txt +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader.egg-info/requires.txt +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/src/wiz_trader.egg-info/top_level.txt +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/tests/test_apis.py +0 -0
- {wiz_trader-0.11.0 → wiz_trader-0.12.0}/tests/test_quotes.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: wiz_trader
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.12.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
|
@@ -296,6 +296,14 @@ async def main():
|
|
296
296
|
asyncio.run(main())
|
297
297
|
```
|
298
298
|
|
299
|
+
#### Ticks structure
|
300
|
+
ts = tick timestamp
|
301
|
+
lastTradedTs = timestamp of the last executed trade in this instrument
|
302
|
+
|
303
|
+
```
|
304
|
+
{'identifier': 'NSE:RELIANCE:2885', 'tradingSymbol': 'RELIANCE', 'exchange': 'NSE', 'segment': 'NSECM', 'exchangeToken': 2885, 'bids': [{'volume': 1722, 'price': 1295.5, 'orders': 43}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}], 'offers': [{'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}], 'ltp': 1295.5, 'lastTradedQty': 10, 'buyQty': 1722, 'sellQty': 0, 'volume': 10429964, 'avgPrice': 1291.46, 'netChange': 0, 'ohlc': {'open': 1270, 'high': 1300.9, 'low': 1267, 'close': 1295.5}, 'lastTradedTs': '2025-04-21T10:29:33Z', 'ts': '2025-04-21T10:29:46Z'}
|
305
|
+
```
|
306
|
+
|
299
307
|
## Wizzer Client
|
300
308
|
|
301
309
|
The `WizzerClient` provides access to Wizzer's REST APIs for trading, portfolio management, and market data.
|
@@ -269,6 +269,14 @@ async def main():
|
|
269
269
|
asyncio.run(main())
|
270
270
|
```
|
271
271
|
|
272
|
+
#### Ticks structure
|
273
|
+
ts = tick timestamp
|
274
|
+
lastTradedTs = timestamp of the last executed trade in this instrument
|
275
|
+
|
276
|
+
```
|
277
|
+
{'identifier': 'NSE:RELIANCE:2885', 'tradingSymbol': 'RELIANCE', 'exchange': 'NSE', 'segment': 'NSECM', 'exchangeToken': 2885, 'bids': [{'volume': 1722, 'price': 1295.5, 'orders': 43}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}], 'offers': [{'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}], 'ltp': 1295.5, 'lastTradedQty': 10, 'buyQty': 1722, 'sellQty': 0, 'volume': 10429964, 'avgPrice': 1291.46, 'netChange': 0, 'ohlc': {'open': 1270, 'high': 1300.9, 'low': 1267, 'close': 1295.5}, 'lastTradedTs': '2025-04-21T10:29:33Z', 'ts': '2025-04-21T10:29:46Z'}
|
278
|
+
```
|
279
|
+
|
272
280
|
## Wizzer Client
|
273
281
|
|
274
282
|
The `WizzerClient` provides access to Wizzer's REST APIs for trading, portfolio management, and market data.
|
@@ -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.12.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',
|
@@ -553,7 +553,7 @@ class WizzerClient:
|
|
553
553
|
Returns:
|
554
554
|
Dict[str, Any]: Order response containing orderId.
|
555
555
|
"""
|
556
|
-
endpoint = self._routes["order.
|
556
|
+
endpoint = self._routes["basket.order.place"]
|
557
557
|
|
558
558
|
# Set default values from constants if not provided
|
559
559
|
if order_type is None:
|
@@ -621,7 +621,7 @@ class WizzerClient:
|
|
621
621
|
Returns:
|
622
622
|
Dict[str, Any]: Order response containing orderId.
|
623
623
|
"""
|
624
|
-
endpoint = self._routes["order.
|
624
|
+
endpoint = self._routes["basket.order.exit"]
|
625
625
|
|
626
626
|
# Build base data
|
627
627
|
data = {
|
@@ -674,7 +674,7 @@ class WizzerClient:
|
|
674
674
|
Returns:
|
675
675
|
Dict[str, Any]: Order response containing orderId.
|
676
676
|
"""
|
677
|
-
endpoint = self._routes["order.
|
677
|
+
endpoint = self._routes["basket.order.modify"].format(order_id=order_id)
|
678
678
|
|
679
679
|
logger.debug("Modifying basket order %s with params: %s", order_id, params)
|
680
680
|
return self._make_request("PATCH", endpoint, json=params)
|
@@ -713,7 +713,7 @@ class WizzerClient:
|
|
713
713
|
Returns:
|
714
714
|
Dict[str, Any]: Response with summary of success and failure counts.
|
715
715
|
"""
|
716
|
-
endpoint = self._routes["portfolio.
|
716
|
+
endpoint = self._routes["portfolio.positions.exit.all"]
|
717
717
|
|
718
718
|
logger.debug("Exiting all positions")
|
719
719
|
return self._make_request("POST", endpoint)
|
@@ -738,7 +738,7 @@ class WizzerClient:
|
|
738
738
|
raise ValueError("Strategy ID must be provided either as a parameter or set in .env (WZ__STRATEGY_ID)")
|
739
739
|
strategy_id = self.strategy_id
|
740
740
|
|
741
|
-
endpoint = self._routes["portfolio.
|
741
|
+
endpoint = self._routes["portfolio.positions.exit.strategy"].format(strategy_id=strategy_id)
|
742
742
|
|
743
743
|
logger.debug("Exiting all positions for strategy: %s", strategy_id)
|
744
744
|
return self._make_request("POST", endpoint)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: wiz_trader
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.12.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
|
@@ -296,6 +296,14 @@ async def main():
|
|
296
296
|
asyncio.run(main())
|
297
297
|
```
|
298
298
|
|
299
|
+
#### Ticks structure
|
300
|
+
ts = tick timestamp
|
301
|
+
lastTradedTs = timestamp of the last executed trade in this instrument
|
302
|
+
|
303
|
+
```
|
304
|
+
{'identifier': 'NSE:RELIANCE:2885', 'tradingSymbol': 'RELIANCE', 'exchange': 'NSE', 'segment': 'NSECM', 'exchangeToken': 2885, 'bids': [{'volume': 1722, 'price': 1295.5, 'orders': 43}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}], 'offers': [{'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}, {'volume': 0, 'price': 0, 'orders': 0}], 'ltp': 1295.5, 'lastTradedQty': 10, 'buyQty': 1722, 'sellQty': 0, 'volume': 10429964, 'avgPrice': 1291.46, 'netChange': 0, 'ohlc': {'open': 1270, 'high': 1300.9, 'low': 1267, 'close': 1295.5}, 'lastTradedTs': '2025-04-21T10:29:33Z', 'ts': '2025-04-21T10:29:46Z'}
|
305
|
+
```
|
306
|
+
|
299
307
|
## Wizzer Client
|
300
308
|
|
301
309
|
The `WizzerClient` provides access to Wizzer's REST APIs for trading, portfolio management, and market data.
|
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
|