wiz-trader 0.14.0__py3-none-any.whl → 0.15.0__py3-none-any.whl
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/__init__.py +1 -1
- wiz_trader/apis/client.py +32 -0
- {wiz_trader-0.14.0.dist-info → wiz_trader-0.15.0.dist-info}/METADATA +1 -1
- wiz_trader-0.15.0.dist-info/RECORD +9 -0
- {wiz_trader-0.14.0.dist-info → wiz_trader-0.15.0.dist-info}/WHEEL +1 -1
- wiz_trader-0.14.0.dist-info/RECORD +0 -9
- {wiz_trader-0.14.0.dist-info → wiz_trader-0.15.0.dist-info}/top_level.txt +0 -0
wiz_trader/__init__.py
CHANGED
wiz_trader/apis/client.py
CHANGED
@@ -110,6 +110,9 @@ class WizzerClient:
|
|
110
110
|
"datahub.indices": "/datahub/indices",
|
111
111
|
"datahub.index.components": "/datahub/index/components",
|
112
112
|
"datahub.historical.ohlcv": "/datahub/historical/ohlcv",
|
113
|
+
|
114
|
+
# Instrument & asset class endpoints
|
115
|
+
"instrument.metrics": "/instruments/metrics",
|
113
116
|
}
|
114
117
|
|
115
118
|
def __init__(
|
@@ -1233,6 +1236,35 @@ class WizzerClient:
|
|
1233
1236
|
logger.debug("Exiting all positions for strategy: %s", strategy_id)
|
1234
1237
|
return self._make_request("POST", endpoint, json=data)
|
1235
1238
|
|
1239
|
+
# =====INSTRUMENT & ASSET CLASS METHODS =====
|
1240
|
+
|
1241
|
+
def get_instrument_metrics(self, identifiers: List[str]) -> List[Dict[str, Any]]:
|
1242
|
+
"""
|
1243
|
+
Get detailed metrics for instruments by their identifiers.
|
1244
|
+
|
1245
|
+
Args:
|
1246
|
+
identifiers (List[str]): List of instrument identifiers in the format
|
1247
|
+
"EXCHANGE:SYMBOL:TOKEN" (e.g., "NSE:SBIN:3045").
|
1248
|
+
|
1249
|
+
Returns:
|
1250
|
+
List[Dict[str, Any]]: List of instrument metrics.
|
1251
|
+
|
1252
|
+
Example:
|
1253
|
+
>>> client.get_instrument_metrics([
|
1254
|
+
... "NSE:SBIN:3045",
|
1255
|
+
... "NSE:RELIANCE:2885",
|
1256
|
+
... "NSE:NIFTY26DEC11000CE:61009"
|
1257
|
+
... ])
|
1258
|
+
"""
|
1259
|
+
endpoint = self._routes["instrument.metrics"]
|
1260
|
+
data = {
|
1261
|
+
"identifiers": identifiers
|
1262
|
+
}
|
1263
|
+
|
1264
|
+
logger.debug("Fetching instrument metrics for identifiers: %s", identifiers)
|
1265
|
+
response = self._make_request("POST", endpoint, json=data)
|
1266
|
+
return response
|
1267
|
+
|
1236
1268
|
def _make_request(
|
1237
1269
|
self,
|
1238
1270
|
method: str,
|
@@ -0,0 +1,9 @@
|
|
1
|
+
wiz_trader/__init__.py,sha256=3fwdVbFYiQATRbAy1qYqyHPOW1Z0Nw56KDb1zeKEB14,182
|
2
|
+
wiz_trader/apis/__init__.py,sha256=ItWKMOl4omiW0g2f-M7WRW3v-dss_ULd9vYnFyIIT9o,132
|
3
|
+
wiz_trader/apis/client.py,sha256=HoMFXfWoO3HdAwPCfOD2_U8nfZJ6iBCB6FnWxzlzl5E,45295
|
4
|
+
wiz_trader/quotes/__init__.py,sha256=RF9g9CNP6bVWlmCh_ad8krm3-EWOIuVfLp0-H9fAeEM,108
|
5
|
+
wiz_trader/quotes/client.py,sha256=LJeMcQPjJIRxrTIGalWsLYh_XfinDXBP5-4cNS7qCxc,9709
|
6
|
+
wiz_trader-0.15.0.dist-info/METADATA,sha256=imCNht3nXlWeViNIFt0_sPyuUv5criLgusNjjkrvUhU,54024
|
7
|
+
wiz_trader-0.15.0.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
8
|
+
wiz_trader-0.15.0.dist-info/top_level.txt,sha256=lnYS_g8LlA6ryKYnvY8xIQ6K2K-xzOsd-99AWgnW6VY,11
|
9
|
+
wiz_trader-0.15.0.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
wiz_trader/__init__.py,sha256=mYQBSOzWjWt6PYvV7aCp3vdSf0S1lnOUMnSsWEGF5M0,182
|
2
|
-
wiz_trader/apis/__init__.py,sha256=ItWKMOl4omiW0g2f-M7WRW3v-dss_ULd9vYnFyIIT9o,132
|
3
|
-
wiz_trader/apis/client.py,sha256=dQuB4_qQmXGMVX7BQ39eAbNgi7z0DTS2NBaaImRPNJQ,44263
|
4
|
-
wiz_trader/quotes/__init__.py,sha256=RF9g9CNP6bVWlmCh_ad8krm3-EWOIuVfLp0-H9fAeEM,108
|
5
|
-
wiz_trader/quotes/client.py,sha256=LJeMcQPjJIRxrTIGalWsLYh_XfinDXBP5-4cNS7qCxc,9709
|
6
|
-
wiz_trader-0.14.0.dist-info/METADATA,sha256=gL_aaiWSK8Flu7UM3RwmWFsnhP0VwoB5cHRGnizDOXU,54024
|
7
|
-
wiz_trader-0.14.0.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
8
|
-
wiz_trader-0.14.0.dist-info/top_level.txt,sha256=lnYS_g8LlA6ryKYnvY8xIQ6K2K-xzOsd-99AWgnW6VY,11
|
9
|
-
wiz_trader-0.14.0.dist-info/RECORD,,
|
File without changes
|