wiz-trader 0.24.0__tar.gz → 0.25.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
1
  Metadata-Version: 2.4
2
2
  Name: wiz_trader
3
- Version: 0.24.0
3
+ Version: 0.25.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
@@ -227,12 +227,22 @@ def on_connect(ws):
227
227
 
228
228
  ### Unsubscribing from Instruments
229
229
 
230
- Similarly, plain call to `unsubscribe`:
230
+ Use the `unsubscribe` method to stop receiving real-time data for specific instruments. This helps manage bandwidth and reduces unnecessary data processing.
231
231
 
232
232
  ```python
233
+ # Unsubscribe from specific instruments
233
234
  ws.unsubscribe(["NSE:SBIN:3045", "NSE:ICICIBANK:4963"])
235
+
236
+ # You can also unsubscribe from a single instrument
237
+ ws.unsubscribe(["NSE:RELIANCE:2885"])
234
238
  ```
235
239
 
240
+ **Key Features:**
241
+ - Immediately stops tick data for the specified instruments
242
+ - Reduces network bandwidth and processing overhead
243
+ - Can be called multiple times for different instrument sets
244
+ - No callback fired for unsubscribed instruments
245
+
236
246
  ### Complete Examples
237
247
 
238
248
  #### Blocking Example
@@ -301,8 +311,13 @@ asyncio.run(main())
301
311
  ts = tick timestamp
302
312
  lastTradedTs = timestamp of the last executed trade in this instrument
303
313
 
314
+ **New Fields Added:**
315
+ - `oi`: Current open interest (for futures and options)
316
+ - `oiDayHigh`: Day's highest open interest value
317
+ - `oiDayLow`: Day's lowest open interest value
318
+
304
319
  ```
305
- {'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'}
320
+ {'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}, 'oi': 1234567, 'oiDayHigh': 1250000, 'oiDayLow': 1200000, 'lastTradedTs': '2025-04-21T10:29:33Z', 'ts': '2025-04-21T10:29:46Z'}
306
321
  ```
307
322
 
308
323
  ## Wizzer Client
@@ -200,12 +200,22 @@ def on_connect(ws):
200
200
 
201
201
  ### Unsubscribing from Instruments
202
202
 
203
- Similarly, plain call to `unsubscribe`:
203
+ Use the `unsubscribe` method to stop receiving real-time data for specific instruments. This helps manage bandwidth and reduces unnecessary data processing.
204
204
 
205
205
  ```python
206
+ # Unsubscribe from specific instruments
206
207
  ws.unsubscribe(["NSE:SBIN:3045", "NSE:ICICIBANK:4963"])
208
+
209
+ # You can also unsubscribe from a single instrument
210
+ ws.unsubscribe(["NSE:RELIANCE:2885"])
207
211
  ```
208
212
 
213
+ **Key Features:**
214
+ - Immediately stops tick data for the specified instruments
215
+ - Reduces network bandwidth and processing overhead
216
+ - Can be called multiple times for different instrument sets
217
+ - No callback fired for unsubscribed instruments
218
+
209
219
  ### Complete Examples
210
220
 
211
221
  #### Blocking Example
@@ -274,8 +284,13 @@ asyncio.run(main())
274
284
  ts = tick timestamp
275
285
  lastTradedTs = timestamp of the last executed trade in this instrument
276
286
 
287
+ **New Fields Added:**
288
+ - `oi`: Current open interest (for futures and options)
289
+ - `oiDayHigh`: Day's highest open interest value
290
+ - `oiDayLow`: Day's lowest open interest value
291
+
277
292
  ```
278
- {'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'}
293
+ {'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}, 'oi': 1234567, 'oiDayHigh': 1250000, 'oiDayLow': 1200000, 'lastTradedTs': '2025-04-21T10:29:33Z', 'ts': '2025-04-21T10:29:46Z'}
279
294
  ```
280
295
 
281
296
  ## Wizzer Client
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wiz_trader"
7
- version = "0.24.0"
7
+ version = "0.25.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.24.0',
5
+ version='0.25.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.24.0"
6
+ __version__ = "0.25.0"
7
7
 
8
8
  __all__ = ["QuotesClient", "WizzerClient"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wiz_trader
3
- Version: 0.24.0
3
+ Version: 0.25.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
@@ -227,12 +227,22 @@ def on_connect(ws):
227
227
 
228
228
  ### Unsubscribing from Instruments
229
229
 
230
- Similarly, plain call to `unsubscribe`:
230
+ Use the `unsubscribe` method to stop receiving real-time data for specific instruments. This helps manage bandwidth and reduces unnecessary data processing.
231
231
 
232
232
  ```python
233
+ # Unsubscribe from specific instruments
233
234
  ws.unsubscribe(["NSE:SBIN:3045", "NSE:ICICIBANK:4963"])
235
+
236
+ # You can also unsubscribe from a single instrument
237
+ ws.unsubscribe(["NSE:RELIANCE:2885"])
234
238
  ```
235
239
 
240
+ **Key Features:**
241
+ - Immediately stops tick data for the specified instruments
242
+ - Reduces network bandwidth and processing overhead
243
+ - Can be called multiple times for different instrument sets
244
+ - No callback fired for unsubscribed instruments
245
+
236
246
  ### Complete Examples
237
247
 
238
248
  #### Blocking Example
@@ -301,8 +311,13 @@ asyncio.run(main())
301
311
  ts = tick timestamp
302
312
  lastTradedTs = timestamp of the last executed trade in this instrument
303
313
 
314
+ **New Fields Added:**
315
+ - `oi`: Current open interest (for futures and options)
316
+ - `oiDayHigh`: Day's highest open interest value
317
+ - `oiDayLow`: Day's lowest open interest value
318
+
304
319
  ```
305
- {'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'}
320
+ {'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}, 'oi': 1234567, 'oiDayHigh': 1250000, 'oiDayLow': 1200000, 'lastTradedTs': '2025-04-21T10:29:33Z', 'ts': '2025-04-21T10:29:46Z'}
306
321
  ```
307
322
 
308
323
  ## Wizzer Client
File without changes
File without changes