wiz-trader 0.25.0__tar.gz → 0.27.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.25.0/src/wiz_trader.egg-info → wiz_trader-0.27.0}/PKG-INFO +271 -2
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/README.md +271 -2
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/pyproject.toml +1 -1
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/setup.py +1 -1
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader/__init__.py +2 -2
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader/apis/__init__.py +1 -1
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader/apis/client.py +87 -2
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader/quotes/client.py +2 -3
- {wiz_trader-0.25.0 → wiz_trader-0.27.0/src/wiz_trader.egg-info}/PKG-INFO +271 -2
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/MANIFEST.in +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/setup.cfg +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader/quotes/__init__.py +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader.egg-info/SOURCES.txt +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader.egg-info/dependency_links.txt +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader.egg-info/requires.txt +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/src/wiz_trader.egg-info/top_level.txt +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.0}/tests/test_apis.py +0 -0
- {wiz_trader-0.25.0 → wiz_trader-0.27.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.27.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
|
@@ -59,7 +59,7 @@ Dynamic: requires-python
|
|
59
59
|
WizTrader is a Python SDK for connecting to the Wizzer trading platform. It provides two main client classes:
|
60
60
|
|
61
61
|
- **QuotesClient**: For real-time market data streaming via WebSockets
|
62
|
-
- **WizzerClient**: For REST API access to trading, order management, and market data
|
62
|
+
- **WizzerClient**: For REST API access to trading, order management, and market data, including data pipelines and classification APIs.
|
63
63
|
|
64
64
|
This documentation covers all the ways to use the SDK, with examples for each endpoint and common use cases.
|
65
65
|
|
@@ -403,6 +403,73 @@ for component in components[:5]:
|
|
403
403
|
print(f"{component['tradingSymbol']} - {component.get('weightage', 'N/A')}%")
|
404
404
|
```
|
405
405
|
|
406
|
+
#### List Classification Types
|
407
|
+
|
408
|
+
Retrieve all available classification types.
|
409
|
+
|
410
|
+
```python
|
411
|
+
classification_types = client.get_classification_types()
|
412
|
+
# Response: ['basicIndustry', 'industry', 'macroEconomicSector', 'sector']
|
413
|
+
```
|
414
|
+
|
415
|
+
#### List Classification Values
|
416
|
+
|
417
|
+
Retrieve all values for a specific classification type.
|
418
|
+
|
419
|
+
```python
|
420
|
+
basic_industry_values = client.get_classifications("basicIndustry")
|
421
|
+
# Response: ['Aerospace & Defense', 'Agricultural Food & other Products', ...]
|
422
|
+
```
|
423
|
+
|
424
|
+
#### Filter Indices by Classifications
|
425
|
+
|
426
|
+
Filter indices based on multiple classification criteria. The `match_all` parameter controls the filter logic:
|
427
|
+
- `True`: AND logic (all filters must match)
|
428
|
+
- `False`: OR logic (any filter can match)
|
429
|
+
|
430
|
+
```python
|
431
|
+
# Example: Find indices in the 'Commodities' macro-economic sector OR 'Aerospace & Defense' industry
|
432
|
+
filters = {
|
433
|
+
"macroEconomicSector": ["Commodities"],
|
434
|
+
"industry": ["Aerospace & Defense"]
|
435
|
+
}
|
436
|
+
or_logic_indices = client.filter_indices(filters=filters, match_all=False)
|
437
|
+
|
438
|
+
# Example: Find indices that are in BOTH 'Housing Finance Company' and 'Financial Services'
|
439
|
+
filters = {
|
440
|
+
"basicIndustry": ["Housing Finance Company"],
|
441
|
+
"sector": ["Financial Services"]
|
442
|
+
}
|
443
|
+
and_logic_indices = client.filter_indices(filters=filters, match_all=True)
|
444
|
+
```
|
445
|
+
|
446
|
+
#### Filter Instruments by Classifications
|
447
|
+
|
448
|
+
Filter instruments based on classification criteria.
|
449
|
+
|
450
|
+
```python
|
451
|
+
# Example: Find instruments in the 'Technology' sector
|
452
|
+
filters = {"sector": ["Technology"]}
|
453
|
+
tech_instruments = client.filter_instruments(filters=filters, match_all=True)
|
454
|
+
```
|
455
|
+
|
456
|
+
#### Filter Instruments by Classifications and Index
|
457
|
+
|
458
|
+
Filter instruments that belong to both specific classifications and a given index.
|
459
|
+
|
460
|
+
```python
|
461
|
+
# Example: Find 'Financial Services' instruments within the 'NIFTY NEXT 50' index
|
462
|
+
filters = {
|
463
|
+
"basicIndustry": ["Housing Finance Company"],
|
464
|
+
"sector": ["Financial Services"]
|
465
|
+
}
|
466
|
+
filtered_instruments = client.filter_instruments(
|
467
|
+
index_identifier="NSE:NIFTY NEXT 50:26054",
|
468
|
+
filters=filters,
|
469
|
+
match_all=False
|
470
|
+
)
|
471
|
+
```
|
472
|
+
|
406
473
|
#### Get Historical OHLCV Data
|
407
474
|
## Overview
|
408
475
|
|
@@ -2790,3 +2857,205 @@ All supported environment variables:
|
|
2790
2857
|
- `rebalance_basket(trading_symbol, instruments)`
|
2791
2858
|
- `exit_all_positions()`
|
2792
2859
|
- `exit_strategy_positions(strategy_id)`
|
2860
|
+
|
2861
|
+
# Indian Industry Classification Table
|
2862
|
+
|
2863
|
+
| MacroSector | Sector | Industry | BasicIndustries |
|
2864
|
+
|-------------|---------|----------|-----------------|
|
2865
|
+
| Commodities | Chemicals | Chemicals & Petrochemicals | Commodity Chemicals |
|
2866
|
+
| | | | Specialty Chemicals |
|
2867
|
+
| | | | Carbon Black |
|
2868
|
+
| | | | Dyes And Pigments |
|
2869
|
+
| | | | Explosives |
|
2870
|
+
| | | | Petrochemicals |
|
2871
|
+
| | | | Printing Inks |
|
2872
|
+
| | | | Trading - Chemicals |
|
2873
|
+
| | | | Industrial Gases |
|
2874
|
+
| | | Fertilizers & Agrochemicals | Fertilizers |
|
2875
|
+
| | | | Pesticides & Agrochemicals |
|
2876
|
+
| | Construction Materials | Cement & Cement Products | Cement & Cement Products |
|
2877
|
+
| | | Other Construction Materials | Other Construction Materials |
|
2878
|
+
| | Metals & Mining | Ferrous Metals | Ferro & Silica Manganese |
|
2879
|
+
| | | | Pig Iron |
|
2880
|
+
| | | | Sponge Iron |
|
2881
|
+
| | | | Iron & Steel |
|
2882
|
+
| | | Non - Ferrous Metals | Aluminium |
|
2883
|
+
| | | | Copper |
|
2884
|
+
| | | | Zinc |
|
2885
|
+
| | | | Precious Metals |
|
2886
|
+
| | | Diversified Metals | Diversified Metals |
|
2887
|
+
| | | Minerals & Mining | Industrial Minerals |
|
2888
|
+
| | | Metals & Minerals Trading | Trading - Metals |
|
2889
|
+
| | | | Trading - Minerals |
|
2890
|
+
| | Forest Materials | Paper, Forest & Jute Products | Paper & Paper Products |
|
2891
|
+
| | | | Forest Products |
|
2892
|
+
| | | | Jute & Jute Products |
|
2893
|
+
| Consumer Discretionary | Automobile and Auto Components | Automobiles | Passenger Cars & Utility Vehicles |
|
2894
|
+
| | | | 2/3 Wheelers |
|
2895
|
+
| | | | Auto Dealer |
|
2896
|
+
| | | Auto Components | Auto Components & Equipments |
|
2897
|
+
| | | | Tyres & Rubber Products |
|
2898
|
+
| | | | Trading - Auto Components |
|
2899
|
+
| | Consumer Durables | Consumer Durables | Cycles |
|
2900
|
+
| | | | Consumer Electronics |
|
2901
|
+
| | | | Furniture, Home Furnishing |
|
2902
|
+
| | | | Ceramics |
|
2903
|
+
| | | | Granites & Marbles |
|
2904
|
+
| | | | Gems, Jewellery And Watches |
|
2905
|
+
| | | | Glass - Consumer |
|
2906
|
+
| | | | Household Appliances |
|
2907
|
+
| | | | Houseware |
|
2908
|
+
| | | | Leather And Leather Products |
|
2909
|
+
| | | | Leisure Products |
|
2910
|
+
| | | | Plastic Products - Consumer |
|
2911
|
+
| | | | Plywood Boards/Laminates |
|
2912
|
+
| | | | Sanitary Ware |
|
2913
|
+
| | | | Paints |
|
2914
|
+
| | | | Diversified consumer products |
|
2915
|
+
| | | | Footwear |
|
2916
|
+
| | Textiles | Textiles & Apparels | Garments & Apparels |
|
2917
|
+
| | | | Other Textile Products |
|
2918
|
+
| | | | Trading - Textile Products |
|
2919
|
+
| | Media,Entertainment & Publication | Media | Advertising & Media Agencies |
|
2920
|
+
| | | | Electronic Media |
|
2921
|
+
| | | | Web based media and service |
|
2922
|
+
| | | | Print Media |
|
2923
|
+
| | | Entertainment | Film Production,Distribution & Exhibition |
|
2924
|
+
| | | | Digital Entertainment |
|
2925
|
+
| | | | Media & Entertainment |
|
2926
|
+
| | | | TV Broadcasting & Software Production |
|
2927
|
+
| | | Printing & Publication | Printing & Publication |
|
2928
|
+
| | Realty | Realty | Residential,Commercial Projects |
|
2929
|
+
| | | | Real Estate related services |
|
2930
|
+
| | | | Real Estate Investment Trusts(REITs) |
|
2931
|
+
| | Consumer Services | Leisure Services | Hotels & Resorts |
|
2932
|
+
| | | | Restaurants |
|
2933
|
+
| | | | Amusement Parks/Other Recreation |
|
2934
|
+
| | | | Wellness |
|
2935
|
+
| | | | Tour, Travel Related Services |
|
2936
|
+
| | | Other Consumer Services | Education |
|
2937
|
+
| | | | E-Learning |
|
2938
|
+
| | | | Food Storage Facilities |
|
2939
|
+
| | | | Other Consumer Services |
|
2940
|
+
| | | Retailing | Speciality Retail |
|
2941
|
+
| | | | Pharmacy Retail |
|
2942
|
+
| | | | Diversified Retail |
|
2943
|
+
| | | | E-Retail/ ECommerce |
|
2944
|
+
| | | | Internet & Catalogue Retail |
|
2945
|
+
| | | | Distributors |
|
2946
|
+
| Energy | Oil, Gas & Consumable Fuels | Gas | Gas Transmission/Marketing |
|
2947
|
+
| | | | LPG/CNG/PNG/LNG Supplier |
|
2948
|
+
| | | | Trading - Gas |
|
2949
|
+
| | | Oil | Oil Exploration & Production |
|
2950
|
+
| | | | Offshore Support Solution Drilling |
|
2951
|
+
| | | | Oil Storage & Transportation |
|
2952
|
+
| | | | Oil Equipment & Services |
|
2953
|
+
| | | Petroleum Products | Refineries & Marketing |
|
2954
|
+
| | | | Lubricants |
|
2955
|
+
| | | Consumable Fuels | Coal |
|
2956
|
+
| | | | Trading - Coal |
|
2957
|
+
| Fast Moving Consumer Goods | Fast Moving Consumer Goods | Agricultural Food & other Products | Edible Oil |
|
2958
|
+
| | | | Sugar |
|
2959
|
+
| | | | Tea & Coffee |
|
2960
|
+
| | | | Other Agricultural Products |
|
2961
|
+
| | | | Other Beverages |
|
2962
|
+
| | | Beverages | Breweries & Distilleries |
|
2963
|
+
| | | Cigarettes & Tobacco Products | Cigarettes & Tobacco Products |
|
2964
|
+
| | | Food Products | Animal Feed |
|
2965
|
+
| | | | Dairy Products |
|
2966
|
+
| | | | Other Food Products |
|
2967
|
+
| | | | Packaged Foods |
|
2968
|
+
| | | | Seafood |
|
2969
|
+
| | | | Meat Products including Poultry |
|
2970
|
+
| | | Personal Products | Personal Care |
|
2971
|
+
| | | Household Products | Household Products |
|
2972
|
+
| | | | Stationary |
|
2973
|
+
| | | Diversified FMCG | Diversified FMCG |
|
2974
|
+
| Financial Services | Financial Services | Finance | Financial Institution |
|
2975
|
+
| | | | Housing Finance Company |
|
2976
|
+
| | | | Investment Company |
|
2977
|
+
| | | | Non Banking Financial Company (NBFC) |
|
2978
|
+
| | | | Other Financial Services |
|
2979
|
+
| | | | Holding Company |
|
2980
|
+
| | | | Microfinance Institutions |
|
2981
|
+
| | | | Securitisation |
|
2982
|
+
| | | Banks | Public Sector Bank |
|
2983
|
+
| | | | Private Sector Bank |
|
2984
|
+
| | | | Other Bank |
|
2985
|
+
| | | Capital Markets | Asset Management Company |
|
2986
|
+
| | | | Depositories,Clearing Houses and Other Intermediaries |
|
2987
|
+
| | | | Financial Products Distributor |
|
2988
|
+
| | | | Ratings |
|
2989
|
+
| | | | Exchange and Data Platform |
|
2990
|
+
| | | | Stockbroking & Allied |
|
2991
|
+
| | | | Other Capital Market related Services |
|
2992
|
+
| | | Insurance | General Insurance |
|
2993
|
+
| | | | Life Insurance |
|
2994
|
+
| | | | Other Insurance Companies |
|
2995
|
+
| | | | Insurance Distributors |
|
2996
|
+
| | | Financial Technology (Fintech) | Financial Technology (Fintech) |
|
2997
|
+
| Healthcare | Healthcare | Pharmaceuticals & Biotechnology | Pharmaceuticals |
|
2998
|
+
| | | | Biotechnology |
|
2999
|
+
| | | Healthcare Equipment & Supplies | Medical Equipment & Supplies |
|
3000
|
+
| | | Healthcare Services | Hospital |
|
3001
|
+
| | | | Healthcare Service Provider |
|
3002
|
+
| | | | Healthcare Research, Analytics & Technology |
|
3003
|
+
| Industrials | Construction | Construction | Civil Construction |
|
3004
|
+
| | Capital Goods | Aerospace & Defense | Aerospace & Defense |
|
3005
|
+
| | | Agricultural,Commercial & Construction Vehicles | Tractors |
|
3006
|
+
| | | | Commercial Vehicles |
|
3007
|
+
| | | | Construction Vehicles |
|
3008
|
+
| | | | Dealers-Commercial Vehicles, Tractors, Construction Vehicles |
|
3009
|
+
| | | Electrical Equipment | Heavy Electrical Equipment |
|
3010
|
+
| | | | Other Electrical Equipment |
|
3011
|
+
| | | Industrial Manufacturing | Railway Wagons |
|
3012
|
+
| | | | Ship Building & Allied Services |
|
3013
|
+
| | | | Industrial Products |
|
3014
|
+
| | | Industrial Products | Cables - Electricals |
|
3015
|
+
| | | | Castings & Forgings |
|
3016
|
+
| | | | Packaging |
|
3017
|
+
| | | | Plastic Products - Industrial |
|
3018
|
+
| | | | Rubber |
|
3019
|
+
| | | | Other Industrial Products |
|
3020
|
+
| | | | Glass - Industrial |
|
3021
|
+
| | | | Aluminium, Copper & Zinc Products |
|
3022
|
+
| | | | Iron & Steel Products |
|
3023
|
+
| | | | Abrasives & Bearings |
|
3024
|
+
| | | | Compressors,Pumps & Diesel Engines |
|
3025
|
+
| | | | Electrodes & Refractories |
|
3026
|
+
| Information Technology | Information Technology | IT - Software | Computers - Software & Consulting |
|
3027
|
+
| | | | Software Products |
|
3028
|
+
| | | IT - Services | IT Enabled Services |
|
3029
|
+
| | | IT - Hardware | Computers Hardware & Equipments |
|
3030
|
+
| Services | Services | Engineering Services | Dredging |
|
3031
|
+
| | | Transport Services | Airline |
|
3032
|
+
| | | | Logistics Solution Provider |
|
3033
|
+
| | | | Railways |
|
3034
|
+
| | | | Road Transport |
|
3035
|
+
| | | | Shipping |
|
3036
|
+
| | | | Transport Related Services |
|
3037
|
+
| | | Transport Infrastructure | Airport & Airport services |
|
3038
|
+
| | | | Port & Port services |
|
3039
|
+
| | | | Road Assets-Toll, Annuity, HybridAnnuity |
|
3040
|
+
| | | Commercial Services & Supplies | Trading & Distributors |
|
3041
|
+
| | | | Consulting Services |
|
3042
|
+
| | | | Data Processing Services |
|
3043
|
+
| | | | Diversified Commercial Services |
|
3044
|
+
| | | | Business Process Outsourcing (BPO)/ Knowledge Process Outsourcing (KPO) |
|
3045
|
+
| | | Public Services | Urban Local Bodies |
|
3046
|
+
| | | | Development Authority |
|
3047
|
+
| Telecommunication | Telecommunication | Telecom - Services | Telecom - Cellular & Fixed line services |
|
3048
|
+
| | | | Telecom - Infrastructure |
|
3049
|
+
| | | | Other Telecom Services |
|
3050
|
+
| | | Telecom - Equipment & Accessories | Telecom - Equipment & Accessories |
|
3051
|
+
| Utilities | Power | Power | Power Generation |
|
3052
|
+
| | | | Integrated Power Utilities |
|
3053
|
+
| | | | Power Trading |
|
3054
|
+
| | | | Power - Transmission |
|
3055
|
+
| | | | Power Distribution |
|
3056
|
+
| | Utilities | Other Utilities | Water Supply & Management |
|
3057
|
+
| | | | Waste Management |
|
3058
|
+
| | | | Emergency Services |
|
3059
|
+
| | | | Multi Utilities |
|
3060
|
+
| | | | Other Utilities |
|
3061
|
+
| Diversified | Diversified | Diversified | Diversified |
|
@@ -32,7 +32,7 @@
|
|
32
32
|
WizTrader is a Python SDK for connecting to the Wizzer trading platform. It provides two main client classes:
|
33
33
|
|
34
34
|
- **QuotesClient**: For real-time market data streaming via WebSockets
|
35
|
-
- **WizzerClient**: For REST API access to trading, order management, and market data
|
35
|
+
- **WizzerClient**: For REST API access to trading, order management, and market data, including data pipelines and classification APIs.
|
36
36
|
|
37
37
|
This documentation covers all the ways to use the SDK, with examples for each endpoint and common use cases.
|
38
38
|
|
@@ -376,6 +376,73 @@ for component in components[:5]:
|
|
376
376
|
print(f"{component['tradingSymbol']} - {component.get('weightage', 'N/A')}%")
|
377
377
|
```
|
378
378
|
|
379
|
+
#### List Classification Types
|
380
|
+
|
381
|
+
Retrieve all available classification types.
|
382
|
+
|
383
|
+
```python
|
384
|
+
classification_types = client.get_classification_types()
|
385
|
+
# Response: ['basicIndustry', 'industry', 'macroEconomicSector', 'sector']
|
386
|
+
```
|
387
|
+
|
388
|
+
#### List Classification Values
|
389
|
+
|
390
|
+
Retrieve all values for a specific classification type.
|
391
|
+
|
392
|
+
```python
|
393
|
+
basic_industry_values = client.get_classifications("basicIndustry")
|
394
|
+
# Response: ['Aerospace & Defense', 'Agricultural Food & other Products', ...]
|
395
|
+
```
|
396
|
+
|
397
|
+
#### Filter Indices by Classifications
|
398
|
+
|
399
|
+
Filter indices based on multiple classification criteria. The `match_all` parameter controls the filter logic:
|
400
|
+
- `True`: AND logic (all filters must match)
|
401
|
+
- `False`: OR logic (any filter can match)
|
402
|
+
|
403
|
+
```python
|
404
|
+
# Example: Find indices in the 'Commodities' macro-economic sector OR 'Aerospace & Defense' industry
|
405
|
+
filters = {
|
406
|
+
"macroEconomicSector": ["Commodities"],
|
407
|
+
"industry": ["Aerospace & Defense"]
|
408
|
+
}
|
409
|
+
or_logic_indices = client.filter_indices(filters=filters, match_all=False)
|
410
|
+
|
411
|
+
# Example: Find indices that are in BOTH 'Housing Finance Company' and 'Financial Services'
|
412
|
+
filters = {
|
413
|
+
"basicIndustry": ["Housing Finance Company"],
|
414
|
+
"sector": ["Financial Services"]
|
415
|
+
}
|
416
|
+
and_logic_indices = client.filter_indices(filters=filters, match_all=True)
|
417
|
+
```
|
418
|
+
|
419
|
+
#### Filter Instruments by Classifications
|
420
|
+
|
421
|
+
Filter instruments based on classification criteria.
|
422
|
+
|
423
|
+
```python
|
424
|
+
# Example: Find instruments in the 'Technology' sector
|
425
|
+
filters = {"sector": ["Technology"]}
|
426
|
+
tech_instruments = client.filter_instruments(filters=filters, match_all=True)
|
427
|
+
```
|
428
|
+
|
429
|
+
#### Filter Instruments by Classifications and Index
|
430
|
+
|
431
|
+
Filter instruments that belong to both specific classifications and a given index.
|
432
|
+
|
433
|
+
```python
|
434
|
+
# Example: Find 'Financial Services' instruments within the 'NIFTY NEXT 50' index
|
435
|
+
filters = {
|
436
|
+
"basicIndustry": ["Housing Finance Company"],
|
437
|
+
"sector": ["Financial Services"]
|
438
|
+
}
|
439
|
+
filtered_instruments = client.filter_instruments(
|
440
|
+
index_identifier="NSE:NIFTY NEXT 50:26054",
|
441
|
+
filters=filters,
|
442
|
+
match_all=False
|
443
|
+
)
|
444
|
+
```
|
445
|
+
|
379
446
|
#### Get Historical OHLCV Data
|
380
447
|
## Overview
|
381
448
|
|
@@ -2762,4 +2829,206 @@ All supported environment variables:
|
|
2762
2829
|
- `modify_basket_order(order_id, **params)`
|
2763
2830
|
- `rebalance_basket(trading_symbol, instruments)`
|
2764
2831
|
- `exit_all_positions()`
|
2765
|
-
- `exit_strategy_positions(strategy_id)`
|
2832
|
+
- `exit_strategy_positions(strategy_id)`
|
2833
|
+
|
2834
|
+
# Indian Industry Classification Table
|
2835
|
+
|
2836
|
+
| MacroSector | Sector | Industry | BasicIndustries |
|
2837
|
+
|-------------|---------|----------|-----------------|
|
2838
|
+
| Commodities | Chemicals | Chemicals & Petrochemicals | Commodity Chemicals |
|
2839
|
+
| | | | Specialty Chemicals |
|
2840
|
+
| | | | Carbon Black |
|
2841
|
+
| | | | Dyes And Pigments |
|
2842
|
+
| | | | Explosives |
|
2843
|
+
| | | | Petrochemicals |
|
2844
|
+
| | | | Printing Inks |
|
2845
|
+
| | | | Trading - Chemicals |
|
2846
|
+
| | | | Industrial Gases |
|
2847
|
+
| | | Fertilizers & Agrochemicals | Fertilizers |
|
2848
|
+
| | | | Pesticides & Agrochemicals |
|
2849
|
+
| | Construction Materials | Cement & Cement Products | Cement & Cement Products |
|
2850
|
+
| | | Other Construction Materials | Other Construction Materials |
|
2851
|
+
| | Metals & Mining | Ferrous Metals | Ferro & Silica Manganese |
|
2852
|
+
| | | | Pig Iron |
|
2853
|
+
| | | | Sponge Iron |
|
2854
|
+
| | | | Iron & Steel |
|
2855
|
+
| | | Non - Ferrous Metals | Aluminium |
|
2856
|
+
| | | | Copper |
|
2857
|
+
| | | | Zinc |
|
2858
|
+
| | | | Precious Metals |
|
2859
|
+
| | | Diversified Metals | Diversified Metals |
|
2860
|
+
| | | Minerals & Mining | Industrial Minerals |
|
2861
|
+
| | | Metals & Minerals Trading | Trading - Metals |
|
2862
|
+
| | | | Trading - Minerals |
|
2863
|
+
| | Forest Materials | Paper, Forest & Jute Products | Paper & Paper Products |
|
2864
|
+
| | | | Forest Products |
|
2865
|
+
| | | | Jute & Jute Products |
|
2866
|
+
| Consumer Discretionary | Automobile and Auto Components | Automobiles | Passenger Cars & Utility Vehicles |
|
2867
|
+
| | | | 2/3 Wheelers |
|
2868
|
+
| | | | Auto Dealer |
|
2869
|
+
| | | Auto Components | Auto Components & Equipments |
|
2870
|
+
| | | | Tyres & Rubber Products |
|
2871
|
+
| | | | Trading - Auto Components |
|
2872
|
+
| | Consumer Durables | Consumer Durables | Cycles |
|
2873
|
+
| | | | Consumer Electronics |
|
2874
|
+
| | | | Furniture, Home Furnishing |
|
2875
|
+
| | | | Ceramics |
|
2876
|
+
| | | | Granites & Marbles |
|
2877
|
+
| | | | Gems, Jewellery And Watches |
|
2878
|
+
| | | | Glass - Consumer |
|
2879
|
+
| | | | Household Appliances |
|
2880
|
+
| | | | Houseware |
|
2881
|
+
| | | | Leather And Leather Products |
|
2882
|
+
| | | | Leisure Products |
|
2883
|
+
| | | | Plastic Products - Consumer |
|
2884
|
+
| | | | Plywood Boards/Laminates |
|
2885
|
+
| | | | Sanitary Ware |
|
2886
|
+
| | | | Paints |
|
2887
|
+
| | | | Diversified consumer products |
|
2888
|
+
| | | | Footwear |
|
2889
|
+
| | Textiles | Textiles & Apparels | Garments & Apparels |
|
2890
|
+
| | | | Other Textile Products |
|
2891
|
+
| | | | Trading - Textile Products |
|
2892
|
+
| | Media,Entertainment & Publication | Media | Advertising & Media Agencies |
|
2893
|
+
| | | | Electronic Media |
|
2894
|
+
| | | | Web based media and service |
|
2895
|
+
| | | | Print Media |
|
2896
|
+
| | | Entertainment | Film Production,Distribution & Exhibition |
|
2897
|
+
| | | | Digital Entertainment |
|
2898
|
+
| | | | Media & Entertainment |
|
2899
|
+
| | | | TV Broadcasting & Software Production |
|
2900
|
+
| | | Printing & Publication | Printing & Publication |
|
2901
|
+
| | Realty | Realty | Residential,Commercial Projects |
|
2902
|
+
| | | | Real Estate related services |
|
2903
|
+
| | | | Real Estate Investment Trusts(REITs) |
|
2904
|
+
| | Consumer Services | Leisure Services | Hotels & Resorts |
|
2905
|
+
| | | | Restaurants |
|
2906
|
+
| | | | Amusement Parks/Other Recreation |
|
2907
|
+
| | | | Wellness |
|
2908
|
+
| | | | Tour, Travel Related Services |
|
2909
|
+
| | | Other Consumer Services | Education |
|
2910
|
+
| | | | E-Learning |
|
2911
|
+
| | | | Food Storage Facilities |
|
2912
|
+
| | | | Other Consumer Services |
|
2913
|
+
| | | Retailing | Speciality Retail |
|
2914
|
+
| | | | Pharmacy Retail |
|
2915
|
+
| | | | Diversified Retail |
|
2916
|
+
| | | | E-Retail/ ECommerce |
|
2917
|
+
| | | | Internet & Catalogue Retail |
|
2918
|
+
| | | | Distributors |
|
2919
|
+
| Energy | Oil, Gas & Consumable Fuels | Gas | Gas Transmission/Marketing |
|
2920
|
+
| | | | LPG/CNG/PNG/LNG Supplier |
|
2921
|
+
| | | | Trading - Gas |
|
2922
|
+
| | | Oil | Oil Exploration & Production |
|
2923
|
+
| | | | Offshore Support Solution Drilling |
|
2924
|
+
| | | | Oil Storage & Transportation |
|
2925
|
+
| | | | Oil Equipment & Services |
|
2926
|
+
| | | Petroleum Products | Refineries & Marketing |
|
2927
|
+
| | | | Lubricants |
|
2928
|
+
| | | Consumable Fuels | Coal |
|
2929
|
+
| | | | Trading - Coal |
|
2930
|
+
| Fast Moving Consumer Goods | Fast Moving Consumer Goods | Agricultural Food & other Products | Edible Oil |
|
2931
|
+
| | | | Sugar |
|
2932
|
+
| | | | Tea & Coffee |
|
2933
|
+
| | | | Other Agricultural Products |
|
2934
|
+
| | | | Other Beverages |
|
2935
|
+
| | | Beverages | Breweries & Distilleries |
|
2936
|
+
| | | Cigarettes & Tobacco Products | Cigarettes & Tobacco Products |
|
2937
|
+
| | | Food Products | Animal Feed |
|
2938
|
+
| | | | Dairy Products |
|
2939
|
+
| | | | Other Food Products |
|
2940
|
+
| | | | Packaged Foods |
|
2941
|
+
| | | | Seafood |
|
2942
|
+
| | | | Meat Products including Poultry |
|
2943
|
+
| | | Personal Products | Personal Care |
|
2944
|
+
| | | Household Products | Household Products |
|
2945
|
+
| | | | Stationary |
|
2946
|
+
| | | Diversified FMCG | Diversified FMCG |
|
2947
|
+
| Financial Services | Financial Services | Finance | Financial Institution |
|
2948
|
+
| | | | Housing Finance Company |
|
2949
|
+
| | | | Investment Company |
|
2950
|
+
| | | | Non Banking Financial Company (NBFC) |
|
2951
|
+
| | | | Other Financial Services |
|
2952
|
+
| | | | Holding Company |
|
2953
|
+
| | | | Microfinance Institutions |
|
2954
|
+
| | | | Securitisation |
|
2955
|
+
| | | Banks | Public Sector Bank |
|
2956
|
+
| | | | Private Sector Bank |
|
2957
|
+
| | | | Other Bank |
|
2958
|
+
| | | Capital Markets | Asset Management Company |
|
2959
|
+
| | | | Depositories,Clearing Houses and Other Intermediaries |
|
2960
|
+
| | | | Financial Products Distributor |
|
2961
|
+
| | | | Ratings |
|
2962
|
+
| | | | Exchange and Data Platform |
|
2963
|
+
| | | | Stockbroking & Allied |
|
2964
|
+
| | | | Other Capital Market related Services |
|
2965
|
+
| | | Insurance | General Insurance |
|
2966
|
+
| | | | Life Insurance |
|
2967
|
+
| | | | Other Insurance Companies |
|
2968
|
+
| | | | Insurance Distributors |
|
2969
|
+
| | | Financial Technology (Fintech) | Financial Technology (Fintech) |
|
2970
|
+
| Healthcare | Healthcare | Pharmaceuticals & Biotechnology | Pharmaceuticals |
|
2971
|
+
| | | | Biotechnology |
|
2972
|
+
| | | Healthcare Equipment & Supplies | Medical Equipment & Supplies |
|
2973
|
+
| | | Healthcare Services | Hospital |
|
2974
|
+
| | | | Healthcare Service Provider |
|
2975
|
+
| | | | Healthcare Research, Analytics & Technology |
|
2976
|
+
| Industrials | Construction | Construction | Civil Construction |
|
2977
|
+
| | Capital Goods | Aerospace & Defense | Aerospace & Defense |
|
2978
|
+
| | | Agricultural,Commercial & Construction Vehicles | Tractors |
|
2979
|
+
| | | | Commercial Vehicles |
|
2980
|
+
| | | | Construction Vehicles |
|
2981
|
+
| | | | Dealers-Commercial Vehicles, Tractors, Construction Vehicles |
|
2982
|
+
| | | Electrical Equipment | Heavy Electrical Equipment |
|
2983
|
+
| | | | Other Electrical Equipment |
|
2984
|
+
| | | Industrial Manufacturing | Railway Wagons |
|
2985
|
+
| | | | Ship Building & Allied Services |
|
2986
|
+
| | | | Industrial Products |
|
2987
|
+
| | | Industrial Products | Cables - Electricals |
|
2988
|
+
| | | | Castings & Forgings |
|
2989
|
+
| | | | Packaging |
|
2990
|
+
| | | | Plastic Products - Industrial |
|
2991
|
+
| | | | Rubber |
|
2992
|
+
| | | | Other Industrial Products |
|
2993
|
+
| | | | Glass - Industrial |
|
2994
|
+
| | | | Aluminium, Copper & Zinc Products |
|
2995
|
+
| | | | Iron & Steel Products |
|
2996
|
+
| | | | Abrasives & Bearings |
|
2997
|
+
| | | | Compressors,Pumps & Diesel Engines |
|
2998
|
+
| | | | Electrodes & Refractories |
|
2999
|
+
| Information Technology | Information Technology | IT - Software | Computers - Software & Consulting |
|
3000
|
+
| | | | Software Products |
|
3001
|
+
| | | IT - Services | IT Enabled Services |
|
3002
|
+
| | | IT - Hardware | Computers Hardware & Equipments |
|
3003
|
+
| Services | Services | Engineering Services | Dredging |
|
3004
|
+
| | | Transport Services | Airline |
|
3005
|
+
| | | | Logistics Solution Provider |
|
3006
|
+
| | | | Railways |
|
3007
|
+
| | | | Road Transport |
|
3008
|
+
| | | | Shipping |
|
3009
|
+
| | | | Transport Related Services |
|
3010
|
+
| | | Transport Infrastructure | Airport & Airport services |
|
3011
|
+
| | | | Port & Port services |
|
3012
|
+
| | | | Road Assets-Toll, Annuity, HybridAnnuity |
|
3013
|
+
| | | Commercial Services & Supplies | Trading & Distributors |
|
3014
|
+
| | | | Consulting Services |
|
3015
|
+
| | | | Data Processing Services |
|
3016
|
+
| | | | Diversified Commercial Services |
|
3017
|
+
| | | | Business Process Outsourcing (BPO)/ Knowledge Process Outsourcing (KPO) |
|
3018
|
+
| | | Public Services | Urban Local Bodies |
|
3019
|
+
| | | | Development Authority |
|
3020
|
+
| Telecommunication | Telecommunication | Telecom - Services | Telecom - Cellular & Fixed line services |
|
3021
|
+
| | | | Telecom - Infrastructure |
|
3022
|
+
| | | | Other Telecom Services |
|
3023
|
+
| | | Telecom - Equipment & Accessories | Telecom - Equipment & Accessories |
|
3024
|
+
| Utilities | Power | Power | Power Generation |
|
3025
|
+
| | | | Integrated Power Utilities |
|
3026
|
+
| | | | Power Trading |
|
3027
|
+
| | | | Power - Transmission |
|
3028
|
+
| | | | Power Distribution |
|
3029
|
+
| | Utilities | Other Utilities | Water Supply & Management |
|
3030
|
+
| | | | Waste Management |
|
3031
|
+
| | | | Emergency Services |
|
3032
|
+
| | | | Multi Utilities |
|
3033
|
+
| | | | Other Utilities |
|
3034
|
+
| Diversified | Diversified | Diversified | Diversified |
|
@@ -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.27.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',
|
@@ -197,7 +197,14 @@ class WizzerClient:
|
|
197
197
|
"instrument.metrics": "/instruments/metrics",
|
198
198
|
"instrument.option_chain": "/instruments/options/chain",
|
199
199
|
"instrument.expiry_list": "/instruments/options/chain/expirylist",
|
200
|
-
"instrument.future_list": "/instruments/futures/list"
|
200
|
+
"instrument.future_list": "/instruments/futures/list",
|
201
|
+
|
202
|
+
# Classification API endpoints
|
203
|
+
"classification.types": "/datahub/classifications/types",
|
204
|
+
"classification.values": "/datahub/classifications/{type}",
|
205
|
+
"indices.filter": "/datahub/indices/filter",
|
206
|
+
"instruments.filter": "/datahub/instruments/filter",
|
207
|
+
"instruments.filter_with_index": "/datahub/indices/{id}/instruments"
|
201
208
|
}
|
202
209
|
|
203
210
|
def __init__(
|
@@ -1598,6 +1605,84 @@ class WizzerClient:
|
|
1598
1605
|
logger.debug("Fetching futures list for: %s", identifier)
|
1599
1606
|
return self._make_request("POST", endpoint, json=data)
|
1600
1607
|
|
1608
|
+
|
1609
|
+
def get_classification_types(self) -> list:
|
1610
|
+
"""
|
1611
|
+
Retrieve all available classification types.
|
1612
|
+
|
1613
|
+
Returns:
|
1614
|
+
list: A list of classification types.
|
1615
|
+
"""
|
1616
|
+
endpoint = self._routes["classification.types"]
|
1617
|
+
logger.debug("Fetching classification types.")
|
1618
|
+
return self._make_request("GET", endpoint)
|
1619
|
+
|
1620
|
+
def get_classifications(self, classification_type: str) -> list:
|
1621
|
+
"""
|
1622
|
+
Retrieve all values for a specific classification type.
|
1623
|
+
|
1624
|
+
Args:
|
1625
|
+
classification_type (str): The type of classification to retrieve values for.
|
1626
|
+
|
1627
|
+
Returns:
|
1628
|
+
list: A list of classification values.
|
1629
|
+
"""
|
1630
|
+
endpoint = self._routes["classification.values"].format(type=classification_type)
|
1631
|
+
logger.debug(f"Fetching classification values for type: {classification_type}")
|
1632
|
+
return self._make_request("GET", endpoint)
|
1633
|
+
|
1634
|
+
def filter_indices(self, filters: Dict[str, List[str]], match_all: bool = True) -> list:
|
1635
|
+
"""
|
1636
|
+
Filter indices based on multiple classification criteria.
|
1637
|
+
|
1638
|
+
Args:
|
1639
|
+
filters (Dict[str, List[str]]): A dictionary of filters where keys are classification
|
1640
|
+
types and values are lists of classification values.
|
1641
|
+
match_all (bool): If True, performs an AND logic search. If False, performs an OR logic search.
|
1642
|
+
|
1643
|
+
Returns:
|
1644
|
+
list: A list of indices that match the filter criteria.
|
1645
|
+
"""
|
1646
|
+
endpoint = self._routes["indices.filter"]
|
1647
|
+
data = {
|
1648
|
+
"filters": filters,
|
1649
|
+
"matchAll": match_all
|
1650
|
+
}
|
1651
|
+
logger.debug(f"Filtering indices with filters: {filters} and match_all: {match_all}")
|
1652
|
+
return self._make_request("POST", endpoint, json=data)
|
1653
|
+
|
1654
|
+
def filter_instruments(
|
1655
|
+
self,
|
1656
|
+
filters: Optional[Dict[str, List[str]]] = None,
|
1657
|
+
match_all: bool = True,
|
1658
|
+
index_identifier: Optional[str] = None
|
1659
|
+
) -> list:
|
1660
|
+
"""
|
1661
|
+
Filter instruments based on classification criteria, with an option to filter within an index.
|
1662
|
+
|
1663
|
+
Args:
|
1664
|
+
filters (Optional[Dict[str, List[str]]]): A dictionary of filters where keys are classification
|
1665
|
+
types and values are lists of classification values. Can be None.
|
1666
|
+
match_all (bool): If True, performs an AND logic search. If False, performs an OR logic search.
|
1667
|
+
index_identifier (Optional[str]): If provided, filters instruments within a specific index.
|
1668
|
+
|
1669
|
+
Returns:
|
1670
|
+
list: A list of instruments that match the filter criteria.
|
1671
|
+
"""
|
1672
|
+
data = {
|
1673
|
+
"filters": filters or {},
|
1674
|
+
"matchAll": match_all
|
1675
|
+
}
|
1676
|
+
|
1677
|
+
if index_identifier:
|
1678
|
+
endpoint = self._routes["instruments.filter_with_index"].format(id=index_identifier)
|
1679
|
+
logger.debug(f"Filtering instruments for index: {index_identifier} with filters: {filters} and match_all: {match_all}")
|
1680
|
+
else:
|
1681
|
+
endpoint = self._routes["instruments.filter"]
|
1682
|
+
logger.debug(f"Filtering instruments with filters: {filters} and match_all: {match_all}")
|
1683
|
+
|
1684
|
+
return self._make_request("POST", endpoint, json=data)
|
1685
|
+
|
1601
1686
|
def _make_request(
|
1602
1687
|
self,
|
1603
1688
|
method: str,
|
@@ -1640,4 +1725,4 @@ class WizzerClient:
|
|
1640
1725
|
logger.error("API request failed: %s", e, exc_info=True)
|
1641
1726
|
if hasattr(e.response, 'text'):
|
1642
1727
|
logger.error("Response content: %s", e.response.text)
|
1643
|
-
raise
|
1728
|
+
raise
|
@@ -7,7 +7,6 @@ from typing import Callable, List, Optional, Any, Iterator
|
|
7
7
|
|
8
8
|
import websockets
|
9
9
|
from websockets.exceptions import ConnectionClosed
|
10
|
-
from websockets.protocol import State
|
11
10
|
|
12
11
|
# Setup module‐level logger with a default handler if none exists.
|
13
12
|
logger = logging.getLogger(__name__)
|
@@ -163,7 +162,7 @@ class QuotesClient:
|
|
163
162
|
# -- Async core methods (for internal use) --
|
164
163
|
|
165
164
|
async def _subscribe_async(self, instruments: List[str]) -> None:
|
166
|
-
if self.ws and self.ws.
|
165
|
+
if self.ws and self.ws.open:
|
167
166
|
new = set(instruments) - self.subscribed_instruments
|
168
167
|
if new:
|
169
168
|
self.subscribed_instruments |= new
|
@@ -178,7 +177,7 @@ class QuotesClient:
|
|
178
177
|
self.subscribed_instruments |= set(instruments)
|
179
178
|
|
180
179
|
async def _unsubscribe_async(self, instruments: List[str]) -> None:
|
181
|
-
if self.ws and self.ws.
|
180
|
+
if self.ws and self.ws.open:
|
182
181
|
to_remove = set(instruments) & self.subscribed_instruments
|
183
182
|
if to_remove:
|
184
183
|
self.subscribed_instruments -= to_remove
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: wiz_trader
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.27.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
|
@@ -59,7 +59,7 @@ Dynamic: requires-python
|
|
59
59
|
WizTrader is a Python SDK for connecting to the Wizzer trading platform. It provides two main client classes:
|
60
60
|
|
61
61
|
- **QuotesClient**: For real-time market data streaming via WebSockets
|
62
|
-
- **WizzerClient**: For REST API access to trading, order management, and market data
|
62
|
+
- **WizzerClient**: For REST API access to trading, order management, and market data, including data pipelines and classification APIs.
|
63
63
|
|
64
64
|
This documentation covers all the ways to use the SDK, with examples for each endpoint and common use cases.
|
65
65
|
|
@@ -403,6 +403,73 @@ for component in components[:5]:
|
|
403
403
|
print(f"{component['tradingSymbol']} - {component.get('weightage', 'N/A')}%")
|
404
404
|
```
|
405
405
|
|
406
|
+
#### List Classification Types
|
407
|
+
|
408
|
+
Retrieve all available classification types.
|
409
|
+
|
410
|
+
```python
|
411
|
+
classification_types = client.get_classification_types()
|
412
|
+
# Response: ['basicIndustry', 'industry', 'macroEconomicSector', 'sector']
|
413
|
+
```
|
414
|
+
|
415
|
+
#### List Classification Values
|
416
|
+
|
417
|
+
Retrieve all values for a specific classification type.
|
418
|
+
|
419
|
+
```python
|
420
|
+
basic_industry_values = client.get_classifications("basicIndustry")
|
421
|
+
# Response: ['Aerospace & Defense', 'Agricultural Food & other Products', ...]
|
422
|
+
```
|
423
|
+
|
424
|
+
#### Filter Indices by Classifications
|
425
|
+
|
426
|
+
Filter indices based on multiple classification criteria. The `match_all` parameter controls the filter logic:
|
427
|
+
- `True`: AND logic (all filters must match)
|
428
|
+
- `False`: OR logic (any filter can match)
|
429
|
+
|
430
|
+
```python
|
431
|
+
# Example: Find indices in the 'Commodities' macro-economic sector OR 'Aerospace & Defense' industry
|
432
|
+
filters = {
|
433
|
+
"macroEconomicSector": ["Commodities"],
|
434
|
+
"industry": ["Aerospace & Defense"]
|
435
|
+
}
|
436
|
+
or_logic_indices = client.filter_indices(filters=filters, match_all=False)
|
437
|
+
|
438
|
+
# Example: Find indices that are in BOTH 'Housing Finance Company' and 'Financial Services'
|
439
|
+
filters = {
|
440
|
+
"basicIndustry": ["Housing Finance Company"],
|
441
|
+
"sector": ["Financial Services"]
|
442
|
+
}
|
443
|
+
and_logic_indices = client.filter_indices(filters=filters, match_all=True)
|
444
|
+
```
|
445
|
+
|
446
|
+
#### Filter Instruments by Classifications
|
447
|
+
|
448
|
+
Filter instruments based on classification criteria.
|
449
|
+
|
450
|
+
```python
|
451
|
+
# Example: Find instruments in the 'Technology' sector
|
452
|
+
filters = {"sector": ["Technology"]}
|
453
|
+
tech_instruments = client.filter_instruments(filters=filters, match_all=True)
|
454
|
+
```
|
455
|
+
|
456
|
+
#### Filter Instruments by Classifications and Index
|
457
|
+
|
458
|
+
Filter instruments that belong to both specific classifications and a given index.
|
459
|
+
|
460
|
+
```python
|
461
|
+
# Example: Find 'Financial Services' instruments within the 'NIFTY NEXT 50' index
|
462
|
+
filters = {
|
463
|
+
"basicIndustry": ["Housing Finance Company"],
|
464
|
+
"sector": ["Financial Services"]
|
465
|
+
}
|
466
|
+
filtered_instruments = client.filter_instruments(
|
467
|
+
index_identifier="NSE:NIFTY NEXT 50:26054",
|
468
|
+
filters=filters,
|
469
|
+
match_all=False
|
470
|
+
)
|
471
|
+
```
|
472
|
+
|
406
473
|
#### Get Historical OHLCV Data
|
407
474
|
## Overview
|
408
475
|
|
@@ -2790,3 +2857,205 @@ All supported environment variables:
|
|
2790
2857
|
- `rebalance_basket(trading_symbol, instruments)`
|
2791
2858
|
- `exit_all_positions()`
|
2792
2859
|
- `exit_strategy_positions(strategy_id)`
|
2860
|
+
|
2861
|
+
# Indian Industry Classification Table
|
2862
|
+
|
2863
|
+
| MacroSector | Sector | Industry | BasicIndustries |
|
2864
|
+
|-------------|---------|----------|-----------------|
|
2865
|
+
| Commodities | Chemicals | Chemicals & Petrochemicals | Commodity Chemicals |
|
2866
|
+
| | | | Specialty Chemicals |
|
2867
|
+
| | | | Carbon Black |
|
2868
|
+
| | | | Dyes And Pigments |
|
2869
|
+
| | | | Explosives |
|
2870
|
+
| | | | Petrochemicals |
|
2871
|
+
| | | | Printing Inks |
|
2872
|
+
| | | | Trading - Chemicals |
|
2873
|
+
| | | | Industrial Gases |
|
2874
|
+
| | | Fertilizers & Agrochemicals | Fertilizers |
|
2875
|
+
| | | | Pesticides & Agrochemicals |
|
2876
|
+
| | Construction Materials | Cement & Cement Products | Cement & Cement Products |
|
2877
|
+
| | | Other Construction Materials | Other Construction Materials |
|
2878
|
+
| | Metals & Mining | Ferrous Metals | Ferro & Silica Manganese |
|
2879
|
+
| | | | Pig Iron |
|
2880
|
+
| | | | Sponge Iron |
|
2881
|
+
| | | | Iron & Steel |
|
2882
|
+
| | | Non - Ferrous Metals | Aluminium |
|
2883
|
+
| | | | Copper |
|
2884
|
+
| | | | Zinc |
|
2885
|
+
| | | | Precious Metals |
|
2886
|
+
| | | Diversified Metals | Diversified Metals |
|
2887
|
+
| | | Minerals & Mining | Industrial Minerals |
|
2888
|
+
| | | Metals & Minerals Trading | Trading - Metals |
|
2889
|
+
| | | | Trading - Minerals |
|
2890
|
+
| | Forest Materials | Paper, Forest & Jute Products | Paper & Paper Products |
|
2891
|
+
| | | | Forest Products |
|
2892
|
+
| | | | Jute & Jute Products |
|
2893
|
+
| Consumer Discretionary | Automobile and Auto Components | Automobiles | Passenger Cars & Utility Vehicles |
|
2894
|
+
| | | | 2/3 Wheelers |
|
2895
|
+
| | | | Auto Dealer |
|
2896
|
+
| | | Auto Components | Auto Components & Equipments |
|
2897
|
+
| | | | Tyres & Rubber Products |
|
2898
|
+
| | | | Trading - Auto Components |
|
2899
|
+
| | Consumer Durables | Consumer Durables | Cycles |
|
2900
|
+
| | | | Consumer Electronics |
|
2901
|
+
| | | | Furniture, Home Furnishing |
|
2902
|
+
| | | | Ceramics |
|
2903
|
+
| | | | Granites & Marbles |
|
2904
|
+
| | | | Gems, Jewellery And Watches |
|
2905
|
+
| | | | Glass - Consumer |
|
2906
|
+
| | | | Household Appliances |
|
2907
|
+
| | | | Houseware |
|
2908
|
+
| | | | Leather And Leather Products |
|
2909
|
+
| | | | Leisure Products |
|
2910
|
+
| | | | Plastic Products - Consumer |
|
2911
|
+
| | | | Plywood Boards/Laminates |
|
2912
|
+
| | | | Sanitary Ware |
|
2913
|
+
| | | | Paints |
|
2914
|
+
| | | | Diversified consumer products |
|
2915
|
+
| | | | Footwear |
|
2916
|
+
| | Textiles | Textiles & Apparels | Garments & Apparels |
|
2917
|
+
| | | | Other Textile Products |
|
2918
|
+
| | | | Trading - Textile Products |
|
2919
|
+
| | Media,Entertainment & Publication | Media | Advertising & Media Agencies |
|
2920
|
+
| | | | Electronic Media |
|
2921
|
+
| | | | Web based media and service |
|
2922
|
+
| | | | Print Media |
|
2923
|
+
| | | Entertainment | Film Production,Distribution & Exhibition |
|
2924
|
+
| | | | Digital Entertainment |
|
2925
|
+
| | | | Media & Entertainment |
|
2926
|
+
| | | | TV Broadcasting & Software Production |
|
2927
|
+
| | | Printing & Publication | Printing & Publication |
|
2928
|
+
| | Realty | Realty | Residential,Commercial Projects |
|
2929
|
+
| | | | Real Estate related services |
|
2930
|
+
| | | | Real Estate Investment Trusts(REITs) |
|
2931
|
+
| | Consumer Services | Leisure Services | Hotels & Resorts |
|
2932
|
+
| | | | Restaurants |
|
2933
|
+
| | | | Amusement Parks/Other Recreation |
|
2934
|
+
| | | | Wellness |
|
2935
|
+
| | | | Tour, Travel Related Services |
|
2936
|
+
| | | Other Consumer Services | Education |
|
2937
|
+
| | | | E-Learning |
|
2938
|
+
| | | | Food Storage Facilities |
|
2939
|
+
| | | | Other Consumer Services |
|
2940
|
+
| | | Retailing | Speciality Retail |
|
2941
|
+
| | | | Pharmacy Retail |
|
2942
|
+
| | | | Diversified Retail |
|
2943
|
+
| | | | E-Retail/ ECommerce |
|
2944
|
+
| | | | Internet & Catalogue Retail |
|
2945
|
+
| | | | Distributors |
|
2946
|
+
| Energy | Oil, Gas & Consumable Fuels | Gas | Gas Transmission/Marketing |
|
2947
|
+
| | | | LPG/CNG/PNG/LNG Supplier |
|
2948
|
+
| | | | Trading - Gas |
|
2949
|
+
| | | Oil | Oil Exploration & Production |
|
2950
|
+
| | | | Offshore Support Solution Drilling |
|
2951
|
+
| | | | Oil Storage & Transportation |
|
2952
|
+
| | | | Oil Equipment & Services |
|
2953
|
+
| | | Petroleum Products | Refineries & Marketing |
|
2954
|
+
| | | | Lubricants |
|
2955
|
+
| | | Consumable Fuels | Coal |
|
2956
|
+
| | | | Trading - Coal |
|
2957
|
+
| Fast Moving Consumer Goods | Fast Moving Consumer Goods | Agricultural Food & other Products | Edible Oil |
|
2958
|
+
| | | | Sugar |
|
2959
|
+
| | | | Tea & Coffee |
|
2960
|
+
| | | | Other Agricultural Products |
|
2961
|
+
| | | | Other Beverages |
|
2962
|
+
| | | Beverages | Breweries & Distilleries |
|
2963
|
+
| | | Cigarettes & Tobacco Products | Cigarettes & Tobacco Products |
|
2964
|
+
| | | Food Products | Animal Feed |
|
2965
|
+
| | | | Dairy Products |
|
2966
|
+
| | | | Other Food Products |
|
2967
|
+
| | | | Packaged Foods |
|
2968
|
+
| | | | Seafood |
|
2969
|
+
| | | | Meat Products including Poultry |
|
2970
|
+
| | | Personal Products | Personal Care |
|
2971
|
+
| | | Household Products | Household Products |
|
2972
|
+
| | | | Stationary |
|
2973
|
+
| | | Diversified FMCG | Diversified FMCG |
|
2974
|
+
| Financial Services | Financial Services | Finance | Financial Institution |
|
2975
|
+
| | | | Housing Finance Company |
|
2976
|
+
| | | | Investment Company |
|
2977
|
+
| | | | Non Banking Financial Company (NBFC) |
|
2978
|
+
| | | | Other Financial Services |
|
2979
|
+
| | | | Holding Company |
|
2980
|
+
| | | | Microfinance Institutions |
|
2981
|
+
| | | | Securitisation |
|
2982
|
+
| | | Banks | Public Sector Bank |
|
2983
|
+
| | | | Private Sector Bank |
|
2984
|
+
| | | | Other Bank |
|
2985
|
+
| | | Capital Markets | Asset Management Company |
|
2986
|
+
| | | | Depositories,Clearing Houses and Other Intermediaries |
|
2987
|
+
| | | | Financial Products Distributor |
|
2988
|
+
| | | | Ratings |
|
2989
|
+
| | | | Exchange and Data Platform |
|
2990
|
+
| | | | Stockbroking & Allied |
|
2991
|
+
| | | | Other Capital Market related Services |
|
2992
|
+
| | | Insurance | General Insurance |
|
2993
|
+
| | | | Life Insurance |
|
2994
|
+
| | | | Other Insurance Companies |
|
2995
|
+
| | | | Insurance Distributors |
|
2996
|
+
| | | Financial Technology (Fintech) | Financial Technology (Fintech) |
|
2997
|
+
| Healthcare | Healthcare | Pharmaceuticals & Biotechnology | Pharmaceuticals |
|
2998
|
+
| | | | Biotechnology |
|
2999
|
+
| | | Healthcare Equipment & Supplies | Medical Equipment & Supplies |
|
3000
|
+
| | | Healthcare Services | Hospital |
|
3001
|
+
| | | | Healthcare Service Provider |
|
3002
|
+
| | | | Healthcare Research, Analytics & Technology |
|
3003
|
+
| Industrials | Construction | Construction | Civil Construction |
|
3004
|
+
| | Capital Goods | Aerospace & Defense | Aerospace & Defense |
|
3005
|
+
| | | Agricultural,Commercial & Construction Vehicles | Tractors |
|
3006
|
+
| | | | Commercial Vehicles |
|
3007
|
+
| | | | Construction Vehicles |
|
3008
|
+
| | | | Dealers-Commercial Vehicles, Tractors, Construction Vehicles |
|
3009
|
+
| | | Electrical Equipment | Heavy Electrical Equipment |
|
3010
|
+
| | | | Other Electrical Equipment |
|
3011
|
+
| | | Industrial Manufacturing | Railway Wagons |
|
3012
|
+
| | | | Ship Building & Allied Services |
|
3013
|
+
| | | | Industrial Products |
|
3014
|
+
| | | Industrial Products | Cables - Electricals |
|
3015
|
+
| | | | Castings & Forgings |
|
3016
|
+
| | | | Packaging |
|
3017
|
+
| | | | Plastic Products - Industrial |
|
3018
|
+
| | | | Rubber |
|
3019
|
+
| | | | Other Industrial Products |
|
3020
|
+
| | | | Glass - Industrial |
|
3021
|
+
| | | | Aluminium, Copper & Zinc Products |
|
3022
|
+
| | | | Iron & Steel Products |
|
3023
|
+
| | | | Abrasives & Bearings |
|
3024
|
+
| | | | Compressors,Pumps & Diesel Engines |
|
3025
|
+
| | | | Electrodes & Refractories |
|
3026
|
+
| Information Technology | Information Technology | IT - Software | Computers - Software & Consulting |
|
3027
|
+
| | | | Software Products |
|
3028
|
+
| | | IT - Services | IT Enabled Services |
|
3029
|
+
| | | IT - Hardware | Computers Hardware & Equipments |
|
3030
|
+
| Services | Services | Engineering Services | Dredging |
|
3031
|
+
| | | Transport Services | Airline |
|
3032
|
+
| | | | Logistics Solution Provider |
|
3033
|
+
| | | | Railways |
|
3034
|
+
| | | | Road Transport |
|
3035
|
+
| | | | Shipping |
|
3036
|
+
| | | | Transport Related Services |
|
3037
|
+
| | | Transport Infrastructure | Airport & Airport services |
|
3038
|
+
| | | | Port & Port services |
|
3039
|
+
| | | | Road Assets-Toll, Annuity, HybridAnnuity |
|
3040
|
+
| | | Commercial Services & Supplies | Trading & Distributors |
|
3041
|
+
| | | | Consulting Services |
|
3042
|
+
| | | | Data Processing Services |
|
3043
|
+
| | | | Diversified Commercial Services |
|
3044
|
+
| | | | Business Process Outsourcing (BPO)/ Knowledge Process Outsourcing (KPO) |
|
3045
|
+
| | | Public Services | Urban Local Bodies |
|
3046
|
+
| | | | Development Authority |
|
3047
|
+
| Telecommunication | Telecommunication | Telecom - Services | Telecom - Cellular & Fixed line services |
|
3048
|
+
| | | | Telecom - Infrastructure |
|
3049
|
+
| | | | Other Telecom Services |
|
3050
|
+
| | | Telecom - Equipment & Accessories | Telecom - Equipment & Accessories |
|
3051
|
+
| Utilities | Power | Power | Power Generation |
|
3052
|
+
| | | | Integrated Power Utilities |
|
3053
|
+
| | | | Power Trading |
|
3054
|
+
| | | | Power - Transmission |
|
3055
|
+
| | | | Power Distribution |
|
3056
|
+
| | Utilities | Other Utilities | Water Supply & Management |
|
3057
|
+
| | | | Waste Management |
|
3058
|
+
| | | | Emergency Services |
|
3059
|
+
| | | | Multi Utilities |
|
3060
|
+
| | | | Other Utilities |
|
3061
|
+
| Diversified | Diversified | Diversified | Diversified |
|
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
|