diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index c123f13..1e44e04 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -15,7 +15,7 @@ name: Semgrep
jobs:
semgrep:
name: semgrep/ci
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-24.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
@@ -28,7 +28,7 @@ jobs:
approve:
name: Approve PR if Semgrep passes
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-24.04
needs: semgrep
steps:
- name: Setup GitHub CLI
diff --git a/README.md b/README.md
index 37c5574..ae26e3f 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ The official Python client for communicating with the GetExpiredFuturesContractResponse get_expired_future_contracts(instrument_key, expiry_date)
+
+Expired instruments - Get future contracts
+
+This API provides the functionality to retrieve expired future contracts for a given instrument key and expiry date.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: OAUTH2
+configuration = upstox_client.Configuration()
+configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = upstox_client.ExpiredInstrumentApi(upstox_client.ApiClient(configuration))
+instrument_key = 'instrument_key_example' # str | Instrument Key of asset
+expiry_date = 'expiry_date_example' # str | Expiry date of the instrument
+
+try:
+ # Expired instruments - Get future contracts
+ api_response = api_instance.get_expired_future_contracts(instrument_key, expiry_date)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ExpiredInstrumentApi->get_expired_future_contracts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| Instrument Key of asset |
+ **expiry_date** | **str**| Expiry date of the instrument |
+
+### Return type
+
+[**GetExpiredFuturesContractResponse**](GetExpiredFuturesContractResponse.md)
+
+### Authorization
+
+[OAUTH2](../README.md#OAUTH2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_expired_historical_candle_data**
+> GetHistoricalCandleResponse get_expired_historical_candle_data(expired_instrument_key, interval, to_date, from_date)
+
+Expired Historical candle data
+
+Get Expired OHLC values for all instruments across various timeframes. Expired Historical data can be fetched for the following durations. 1minute: last 1 month candles till endDate 30minute: last 1 year candles till endDate day: last 1 year candles till endDate week: last 10 year candles till endDate month: last 10 year candles till endDate
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: OAUTH2
+configuration = upstox_client.Configuration()
+configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = upstox_client.ExpiredInstrumentApi(upstox_client.ApiClient(configuration))
+expired_instrument_key = 'expired_instrument_key_example' # str | Expired Instrument Key of asset
+interval = 'interval_example' # str | Interval to get expired ohlc data
+to_date = 'to_date_example' # str | to date
+from_date = 'from_date_example' # str | from date
+
+try:
+ # Expired Historical candle data
+ api_response = api_instance.get_expired_historical_candle_data(expired_instrument_key, interval, to_date, from_date)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ExpiredInstrumentApi->get_expired_historical_candle_data: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **expired_instrument_key** | **str**| Expired Instrument Key of asset |
+ **interval** | **str**| Interval to get expired ohlc data |
+ **to_date** | **str**| to date |
+ **from_date** | **str**| from date |
+
+### Return type
+
+[**GetHistoricalCandleResponse**](GetHistoricalCandleResponse.md)
+
+### Authorization
+
+[OAUTH2](../README.md#OAUTH2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_expired_option_contracts**
+> GetOptionContractResponse get_expired_option_contracts(instrument_key, expiry_date)
+
+Get expired option contracts
+
+This API provides the functionality to retrieve the expired option contracts
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: OAUTH2
+configuration = upstox_client.Configuration()
+configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = upstox_client.ExpiredInstrumentApi(upstox_client.ApiClient(configuration))
+instrument_key = 'instrument_key_example' # str | Instrument key for an underlying symbol
+expiry_date = 'expiry_date_example' # str | Expiry date in format: YYYY-mm-dd
+
+try:
+ # Get expired option contracts
+ api_response = api_instance.get_expired_option_contracts(instrument_key, expiry_date)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ExpiredInstrumentApi->get_expired_option_contracts: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| Instrument key for an underlying symbol |
+ **expiry_date** | **str**| Expiry date in format: YYYY-mm-dd |
+
+### Return type
+
+[**GetOptionContractResponse**](GetOptionContractResponse.md)
+
+### Authorization
+
+[OAUTH2](../README.md#OAUTH2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_expiries**
+> GetExpiriesResponse get_expiries(instrument_key)
+
+Expired instruments - Get expiries
+
+This API provides the functionality to retrieve expiry dates for a given instrument key.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: OAUTH2
+configuration = upstox_client.Configuration()
+configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = upstox_client.ExpiredInstrumentApi(upstox_client.ApiClient(configuration))
+instrument_key = 'instrument_key_example' # str | Instrument Key of asset
+
+try:
+ # Expired instruments - Get expiries
+ api_response = api_instance.get_expiries(instrument_key)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ExpiredInstrumentApi->get_expiries: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| Instrument Key of asset |
+
+### Return type
+
+[**GetExpiriesResponse**](GetExpiriesResponse.md)
+
+### Authorization
+
+[OAUTH2](../README.md#OAUTH2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/GetExpiredFuturesContractResponse.md b/docs/GetExpiredFuturesContractResponse.md
new file mode 100644
index 0000000..434a5f6
--- /dev/null
+++ b/docs/GetExpiredFuturesContractResponse.md
@@ -0,0 +1,10 @@
+# GetExpiredFuturesContractResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | **str** | | [optional]
+**data** | [**list[ExpiredFutureData]**](ExpiredFutureData.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GetExpiriesResponse.md b/docs/GetExpiriesResponse.md
new file mode 100644
index 0000000..6984e3f
--- /dev/null
+++ b/docs/GetExpiriesResponse.md
@@ -0,0 +1,10 @@
+# GetExpiriesResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | **str** | | [optional]
+**data** | **list[str]** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GetMarketQuoteLastTradedPriceResponseV3.md b/docs/GetMarketQuoteLastTradedPriceResponseV3.md
new file mode 100644
index 0000000..83364bb
--- /dev/null
+++ b/docs/GetMarketQuoteLastTradedPriceResponseV3.md
@@ -0,0 +1,10 @@
+# GetMarketQuoteLastTradedPriceResponseV3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | **str** | | [optional]
+**data** | [**dict(str, MarketQuoteSymbolLtpV3)**](MarketQuoteSymbolLtpV3.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GetMarketQuoteOHLCResponseV3.md b/docs/GetMarketQuoteOHLCResponseV3.md
new file mode 100644
index 0000000..3eb5b94
--- /dev/null
+++ b/docs/GetMarketQuoteOHLCResponseV3.md
@@ -0,0 +1,10 @@
+# GetMarketQuoteOHLCResponseV3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | **str** | | [optional]
+**data** | [**dict(str, MarketQuoteOHLCV3)**](MarketQuoteOHLCV3.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GetMarketQuoteOptionGreekResponseV3.md b/docs/GetMarketQuoteOptionGreekResponseV3.md
new file mode 100644
index 0000000..aab19c9
--- /dev/null
+++ b/docs/GetMarketQuoteOptionGreekResponseV3.md
@@ -0,0 +1,10 @@
+# GetMarketQuoteOptionGreekResponseV3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | **str** | | [optional]
+**data** | [**dict(str, MarketQuoteOptionGreekV3)**](MarketQuoteOptionGreekV3.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/HistoryApi.md b/docs/HistoryApi.md
index 08d3eb4..8d254ae 100644
--- a/docs/HistoryApi.md
+++ b/docs/HistoryApi.md
@@ -1,6 +1,6 @@
# upstox_client.HistoryApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/HistoryV3Api.md b/docs/HistoryV3Api.md
new file mode 100644
index 0000000..17573ec
--- /dev/null
+++ b/docs/HistoryV3Api.md
@@ -0,0 +1,172 @@
+# upstox_client.HistoryV3Api
+
+All URIs are relative to *https://api.upstox.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_historical_candle_data**](HistoryV3Api.md#get_historical_candle_data) | **GET** /v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date} | Historical candle data
+[**get_historical_candle_data1**](HistoryV3Api.md#get_historical_candle_data1) | **GET** /v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date}/{from_date} | Historical candle data
+[**get_intra_day_candle_data**](HistoryV3Api.md#get_intra_day_candle_data) | **GET** /v3/historical-candle/intraday/{instrumentKey}/{unit}/{interval} | Intra day candle data
+
+# **get_historical_candle_data**
+> GetHistoricalCandleResponse get_historical_candle_data(instrument_key, unit, interval, to_date)
+
+Historical candle data
+
+Get OHLC values for all instruments for the present trading day with expanded interval options.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = upstox_client.HistoryV3Api()
+instrument_key = 'instrument_key_example' # str |
+unit = 'unit_example' # str |
+interval = 56 # int |
+to_date = 'to_date_example' # str |
+
+try:
+ # Historical candle data
+ api_response = api_instance.get_historical_candle_data(instrument_key, unit, interval, to_date)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling HistoryV3Api->get_historical_candle_data: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| |
+ **unit** | **str**| |
+ **interval** | **int**| |
+ **to_date** | **str**| |
+
+### Return type
+
+[**GetHistoricalCandleResponse**](GetHistoricalCandleResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_historical_candle_data1**
+> GetHistoricalCandleResponse get_historical_candle_data1(instrument_key, unit, interval, to_date, from_date)
+
+Historical candle data
+
+Get OHLC values for all instruments for the present trading day with expanded interval options
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = upstox_client.HistoryV3Api()
+instrument_key = 'instrument_key_example' # str |
+unit = 'unit_example' # str |
+interval = 56 # int |
+to_date = 'to_date_example' # str |
+from_date = 'from_date_example' # str |
+
+try:
+ # Historical candle data
+ api_response = api_instance.get_historical_candle_data1(instrument_key, unit, interval, to_date, from_date)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling HistoryV3Api->get_historical_candle_data1: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| |
+ **unit** | **str**| |
+ **interval** | **int**| |
+ **to_date** | **str**| |
+ **from_date** | **str**| |
+
+### Return type
+
+[**GetHistoricalCandleResponse**](GetHistoricalCandleResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_intra_day_candle_data**
+> GetIntraDayCandleResponse get_intra_day_candle_data(instrument_key, unit, interval)
+
+Intra day candle data
+
+Get OHLC values for all instruments for the present trading day
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = upstox_client.HistoryV3Api()
+instrument_key = 'instrument_key_example' # str |
+unit = 'unit_example' # str |
+interval = 56 # int |
+
+try:
+ # Intra day candle data
+ api_response = api_instance.get_intra_day_candle_data(instrument_key, unit, interval)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling HistoryV3Api->get_intra_day_candle_data: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| |
+ **unit** | **str**| |
+ **interval** | **int**| |
+
+### Return type
+
+[**GetIntraDayCandleResponse**](GetIntraDayCandleResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/LoginApi.md b/docs/LoginApi.md
index b8b1724..94dbf31 100644
--- a/docs/LoginApi.md
+++ b/docs/LoginApi.md
@@ -1,6 +1,6 @@
# upstox_client.LoginApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/MarketHolidaysAndTimingsApi.md b/docs/MarketHolidaysAndTimingsApi.md
index 1bedf72..b18ec72 100644
--- a/docs/MarketHolidaysAndTimingsApi.md
+++ b/docs/MarketHolidaysAndTimingsApi.md
@@ -1,6 +1,6 @@
# swagger_client.MarketHolidaysAndTimingsApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/MarketQuoteApi.md b/docs/MarketQuoteApi.md
index 820fa7a..2c5afff 100644
--- a/docs/MarketQuoteApi.md
+++ b/docs/MarketQuoteApi.md
@@ -1,6 +1,6 @@
# upstox_client.MarketQuoteApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/MarketQuoteOHLCV3.md b/docs/MarketQuoteOHLCV3.md
new file mode 100644
index 0000000..438b5ea
--- /dev/null
+++ b/docs/MarketQuoteOHLCV3.md
@@ -0,0 +1,12 @@
+# MarketQuoteOHLCV3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**last_price** | **float** | The last traded price of symbol | [optional]
+**instrument_token** | **str** | | [optional]
+**prev_ohlc** | [**OhlcV3**](OhlcV3.md) | | [optional]
+**live_ohlc** | [**OhlcV3**](OhlcV3.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MarketQuoteOptionGreekV3.md b/docs/MarketQuoteOptionGreekV3.md
new file mode 100644
index 0000000..69d4285
--- /dev/null
+++ b/docs/MarketQuoteOptionGreekV3.md
@@ -0,0 +1,19 @@
+# MarketQuoteOptionGreekV3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**last_price** | **float** | | [optional]
+**instrument_token** | **str** | | [optional]
+**ltq** | **int** | | [optional]
+**volume** | **int** | | [optional]
+**cp** | **float** | | [optional]
+**iv** | **float** | | [optional]
+**vega** | **float** | | [optional]
+**gamma** | **float** | | [optional]
+**theta** | **float** | | [optional]
+**delta** | **float** | | [optional]
+**oi** | **float** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MarketQuoteSymbolLtpV3.md b/docs/MarketQuoteSymbolLtpV3.md
new file mode 100644
index 0000000..dfe10e0
--- /dev/null
+++ b/docs/MarketQuoteSymbolLtpV3.md
@@ -0,0 +1,13 @@
+# MarketQuoteSymbolLtpV3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**last_price** | **float** | | [optional]
+**instrument_token** | **str** | | [optional]
+**ltq** | **int** | | [optional]
+**volume** | **int** | | [optional]
+**cp** | **float** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MarketQuoteV3Api.md b/docs/MarketQuoteV3Api.md
new file mode 100644
index 0000000..0873daa
--- /dev/null
+++ b/docs/MarketQuoteV3Api.md
@@ -0,0 +1,168 @@
+# upstox_client.MarketQuoteV3Api
+
+All URIs are relative to *https://api.upstox.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_ltp**](MarketQuoteV3Api.md#get_ltp) | **GET** /v3/market-quote/ltp | Market quotes and instruments - LTP quotes.
+[**get_market_quote_ohlc**](MarketQuoteV3Api.md#get_market_quote_ohlc) | **GET** /v3/market-quote/ohlc | Market quotes and instruments - OHLC quotes
+[**get_market_quote_option_greek**](MarketQuoteV3Api.md#get_market_quote_option_greek) | **GET** /v3/market-quote/option-greek | Market quotes and instruments - Option Greek
+
+# **get_ltp**
+> GetMarketQuoteLastTradedPriceResponseV3 get_ltp(instrument_key=instrument_key)
+
+Market quotes and instruments - LTP quotes.
+
+This API provides the functionality to retrieve the LTP quotes for one or more instruments.This API returns the LTPs of up to 500 instruments in one go.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: OAUTH2
+configuration = upstox_client.Configuration()
+configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = upstox_client.MarketQuoteV3Api(upstox_client.ApiClient(configuration))
+instrument_key = 'instrument_key_example' # str | Comma separated list of instrument keys (optional)
+
+try:
+ # Market quotes and instruments - LTP quotes.
+ api_response = api_instance.get_ltp(instrument_key=instrument_key)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MarketQuoteV3Api->get_ltp: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| Comma separated list of instrument keys | [optional]
+
+### Return type
+
+[**GetMarketQuoteLastTradedPriceResponseV3**](GetMarketQuoteLastTradedPriceResponseV3.md)
+
+### Authorization
+
+[OAUTH2](../README.md#OAUTH2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_market_quote_ohlc**
+> GetMarketQuoteOHLCResponseV3 get_market_quote_ohlc(interval, instrument_key=instrument_key)
+
+Market quotes and instruments - OHLC quotes
+
+This API provides the functionality to retrieve the OHLC quotes for one or more instruments.This API returns the OHLC snapshots of up to 500 instruments in one go.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: OAUTH2
+configuration = upstox_client.Configuration()
+configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = upstox_client.MarketQuoteV3Api(upstox_client.ApiClient(configuration))
+interval = 'interval_example' # str | Interval to get ohlc data
+instrument_key = 'instrument_key_example' # str | Comma separated list of instrument keys (optional)
+
+try:
+ # Market quotes and instruments - OHLC quotes
+ api_response = api_instance.get_market_quote_ohlc(interval, instrument_key=instrument_key)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MarketQuoteV3Api->get_market_quote_ohlc: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **interval** | **str**| Interval to get ohlc data |
+ **instrument_key** | **str**| Comma separated list of instrument keys | [optional]
+
+### Return type
+
+[**GetMarketQuoteOHLCResponseV3**](GetMarketQuoteOHLCResponseV3.md)
+
+### Authorization
+
+[OAUTH2](../README.md#OAUTH2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_market_quote_option_greek**
+> GetMarketQuoteOptionGreekResponseV3 get_market_quote_option_greek(instrument_key=instrument_key)
+
+Market quotes and instruments - Option Greek
+
+This API provides the functionality to retrieve the Option Greek data for one or more instruments.This API returns the Option Greek data of up to 500 instruments in one go.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import upstox_client
+from upstox_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: OAUTH2
+configuration = upstox_client.Configuration()
+configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = upstox_client.MarketQuoteV3Api(upstox_client.ApiClient(configuration))
+instrument_key = 'instrument_key_example' # str | Comma separated list of instrument keys (optional)
+
+try:
+ # Market quotes and instruments - Option Greek
+ api_response = api_instance.get_market_quote_option_greek(instrument_key=instrument_key)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MarketQuoteV3Api->get_market_quote_option_greek: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **instrument_key** | **str**| Comma separated list of instrument keys | [optional]
+
+### Return type
+
+[**GetMarketQuoteOptionGreekResponseV3**](GetMarketQuoteOptionGreekResponseV3.md)
+
+### Authorization
+
+[OAUTH2](../README.md#OAUTH2)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json, */*
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/OhlcV3.md b/docs/OhlcV3.md
new file mode 100644
index 0000000..e37fb83
--- /dev/null
+++ b/docs/OhlcV3.md
@@ -0,0 +1,14 @@
+# OhlcV3
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**open** | **float** | The open price of the trading session | [optional]
+**high** | **float** | The high price of the trading session | [optional]
+**low** | **float** | The low price of the trading session | [optional]
+**close** | **float** | The close price of the symbol from the previous session of trading | [optional]
+**volume** | **int** | The volume of the symbol traded in the session | [optional]
+**ts** | **int** | Starting timestamp of candle | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptionsApi.md b/docs/OptionsApi.md
index 2b50350..03234e2 100644
--- a/docs/OptionsApi.md
+++ b/docs/OptionsApi.md
@@ -1,6 +1,6 @@
# swagger_client.OptionsApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/OrderApi.md b/docs/OrderApi.md
index be26029..4a2fe89 100644
--- a/docs/OrderApi.md
+++ b/docs/OrderApi.md
@@ -1,6 +1,6 @@
# upstox_client.OrderApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/OrderApiV3.md b/docs/OrderApiV3.md
index 0e29fad..3319681 100644
--- a/docs/OrderApiV3.md
+++ b/docs/OrderApiV3.md
@@ -1,6 +1,6 @@
# upstox_client.OrderApiV3
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/PortfolioApi.md b/docs/PortfolioApi.md
index e3f36e6..f3f6fab 100644
--- a/docs/PortfolioApi.md
+++ b/docs/PortfolioApi.md
@@ -1,6 +1,6 @@
# upstox_client.PortfolioApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/PostTradeApi.md b/docs/PostTradeApi.md
index 720489e..4e34ae2 100644
--- a/docs/PostTradeApi.md
+++ b/docs/PostTradeApi.md
@@ -1,6 +1,6 @@
# swagger_client.PostTradeApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/TradeProfitAndLossApi.md b/docs/TradeProfitAndLossApi.md
index 61cd897..64a7da6 100644
--- a/docs/TradeProfitAndLossApi.md
+++ b/docs/TradeProfitAndLossApi.md
@@ -1,6 +1,6 @@
# upstox_client.TradeProfitAndLossApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/UserApi.md b/docs/UserApi.md
index bbca29d..3b5c419 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -1,6 +1,6 @@
# upstox_client.UserApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/docs/WebsocketApi.md b/docs/WebsocketApi.md
index 35b070c..3fb7607 100644
--- a/docs/WebsocketApi.md
+++ b/docs/WebsocketApi.md
@@ -1,6 +1,6 @@
# upstox_client.WebsocketApi
-All URIs are relative to *https://api-v2.upstox.com*
+All URIs are relative to *https://api.upstox.com*
Method | HTTP request | Description
------------- | ------------- | -------------
diff --git a/setup.py b/setup.py
index e406f9a..ea7f0a2 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
@@ -18,7 +18,7 @@
long_description = (this_directory / "README.md").read_text()
NAME = "upstox-python-sdk"
-VERSION = "2.14.0"
+VERSION = "2.15.0"
# To install the library, run the following
#
# python setup.py install
diff --git a/test/sdk_tests/market_basic_v3.py b/test/sdk_tests/market_basic_v3.py
index 7c959ff..e1882f1 100644
--- a/test/sdk_tests/market_basic_v3.py
+++ b/test/sdk_tests/market_basic_v3.py
@@ -5,7 +5,7 @@
configuration.access_token = data_token.access_token
instruments = data_token.sample_instrument_key
streamer = upstox_client.MarketDataStreamerV3(
- upstox_client.ApiClient(configuration), instrumentKeys=instruments[0:70], mode="option_greeks")
+ upstox_client.ApiClient(configuration), instrumentKeys=["NSE_INDEX|Nifty 50"], mode="full_d30")
streamer.auto_reconnect(True, 5, 10)
diff --git a/test/sdk_tests/mtf_positions.py b/test/sdk_tests/mtf_positions.py
new file mode 100644
index 0000000..94321c1
--- /dev/null
+++ b/test/sdk_tests/mtf_positions.py
@@ -0,0 +1,87 @@
+import upstox_client
+import data_token
+
+from upstox_client.rest import ApiException
+
+configuration = upstox_client.Configuration()
+configuration.access_token = data_token.access_token
+
+apiInstance = upstox_client.PortfolioApi(upstox_client.ApiClient(configuration))
+
+try:
+ response = apiInstance.get_mtf_positions()
+ print(response)
+except ApiException as e:
+ print("Exception when calling mtf positions: %s\n" % e)
+
+
+apiInstance = upstox_client.HistoryV3Api(upstox_client.ApiClient(configuration))
+try:
+ response = apiInstance.get_historical_candle_data("NSE_EQ|INE669E01016", "minutes", "1", "2025-01-02")
+ print(response)
+except ApiException as e:
+ print("Exception when calling historical v3 api: %s\n" % e)
+
+
+try:
+ response = apiInstance.get_historical_candle_data1("NSE_EQ|INE669E01016", "minutes", "1", "2025-01-02","2025-01-02")
+ print(response)
+except ApiException as e:
+ print("Exception when calling historical v3 api: %s\n" % e)
+
+try:
+ response = apiInstance.get_intra_day_candle_data("NSE_EQ|INE669E01016", "minutes", "1")
+ print(response)
+except ApiException as e:
+ print("Exception when calling historical v3 api: %s\n" % e)
+
+apiInstance = upstox_client.MarketQuoteV3Api(upstox_client.ApiClient(configuration))
+try:
+# For a single instrument
+ response = apiInstance.get_market_quote_ohlc("I1", instrument_key="NSE_EQ|INE669E01016")
+ print(response)
+except ApiException as e:
+ print("Exception when calling market quote v3 api: %s\n" % e)
+
+try:
+ response = apiInstance.get_market_quote_option_greek(instrument_key="NSE_FO|38604,NSE_FO|49210")
+ print(response)
+except ApiException as e:
+ print("Exception when calling market quote v3 api: %s\n" % e)
+
+try:
+ response = apiInstance.get_ltp(instrument_key="NSE_EQ|INE669E01016")
+ print(response)
+except ApiException as e:
+ print("Exception when calling market quote v3 api: %s\n" % e)
+
+
+apiInstance = upstox_client.ExpiredInstrumentApi(upstox_client.ApiClient(configuration))
+try:
+ response = apiInstance.get_expiries("NSE_INDEX|Nifty 50")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
+
+
+try:
+ response = apiInstance.get_expired_option_contracts("NSE_INDEX|Nifty 50", "2025-04-30")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
+
+try:
+ response = apiInstance.get_expired_future_contracts("NSE_INDEX|Nifty 50", "2025-04-24")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
+
+try:
+ response = apiInstance.get_expired_historical_candle_data("NSE_FO|54452|24-04-2025", "1minute", "2025-04-24", "2025-04-24")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
diff --git a/test/sdk_tests/place_multi_order.py b/test/sdk_tests/place_multi_order.py
index f3343f7..cccaeba 100644
--- a/test/sdk_tests/place_multi_order.py
+++ b/test/sdk_tests/place_multi_order.py
@@ -6,7 +6,7 @@
configuration.access_token = data_token.access_token
api_instance = upstox_client.OrderApi(upstox_client.ApiClient(configuration))
body = [
- upstox_client.MultiOrderRequest(1, "I", "DAY", 0, "kg_python_sdk", False, "NSE_EQ|INE669E01016", "MARKET", "BUY",
+ upstox_client.MultiOrderRequest(1, "MTF", "DAY", 0, "kg_python_sdk", False, "NSE_EQ|INE669E01016", "MARKET", "BUY",
0, 0, True, "1"),
upstox_client.MultiOrderRequest(1, "D", "DAY", 8.9, "kg_python_sdk1", False, "NSE_EQ|INE669E01016", "LIMIT", "BUY",
0, 0, True, "2")
diff --git a/test/sdk_tests/place_order_v3.py b/test/sdk_tests/place_order_v3.py
index dcb3886..e4bd597 100644
--- a/test/sdk_tests/place_order_v3.py
+++ b/test/sdk_tests/place_order_v3.py
@@ -7,7 +7,7 @@
configuration.access_token = data_token.access_token
api_instance = upstox_client.OrderApiV3(upstox_client.ApiClient(configuration))
-body = upstox_client.PlaceOrderV3Request(quantity=1, product="D",validity="DAY", price=9.12, tag="string", instrument_token="NSE_EQ|INE669E01016", order_type="LIMIT",transaction_type="BUY", disclosed_quantity=0, trigger_price=0.0, is_amo=True, slice=True)
+body = upstox_client.PlaceOrderV3Request(quantity=1, product="MTF",validity="DAY", price=9.12, tag="string", instrument_token="NSE_EQ|INE669E01016", order_type="LIMIT",transaction_type="BUY", disclosed_quantity=0, trigger_price=0.0, is_amo=True, slice=True)
try:
api_response = api_instance.place_order(body)
diff --git a/test/sdk_tests/sanity.py b/test/sdk_tests/sanity.py
index faa6382..0eafce7 100644
--- a/test/sdk_tests/sanity.py
+++ b/test/sdk_tests/sanity.py
@@ -475,7 +475,99 @@ def is_within_market_hours():
print("error in post trade api")
except ApiException as e:
print("Exception when calling PostTrade api: %s\n" % e)
-
+
+
+
+
+apiInstance = upstox_client.PortfolioApi(upstox_client.ApiClient(configuration))
+
+try:
+ response = apiInstance.get_mtf_positions()
+ if api_response.status != "success":
+ print("error in get mtf positions api")
+except ApiException as e:
+ print("Exception when calling mtf positions: %s\n" % e)
+
+
+apiInstance = upstox_client.HistoryV3Api(upstox_client.ApiClient(configuration))
+try:
+ response = apiInstance.get_historical_candle_data("NSE_EQ|INE669E01016", "minutes", "1", "2025-01-02")
+ if api_response.status != "success":
+ print("error in get_historical_candle_data api")
+except ApiException as e:
+ print("Exception when calling historical v3 api: %s\n" % e)
+
+
+try:
+ response = apiInstance.get_historical_candle_data1("NSE_EQ|INE669E01016", "minutes", "1", "2025-01-02","2025-01-02")
+ if api_response.status != "success":
+ print("error in get_historical_candle_data1 api")
+except ApiException as e:
+ print("Exception when calling historical v3 api: %s\n" % e)
+
+try:
+ response = apiInstance.get_intra_day_candle_data("NSE_EQ|INE669E01016", "minutes", "1")
+ if api_response.status != "success":
+ print("error in get_intra_day_candle_data api")
+except ApiException as e:
+ print("Exception when calling historical v3 api: %s\n" % e)
+
+apiInstance = upstox_client.MarketQuoteV3Api(upstox_client.ApiClient(configuration))
+try:
+# For a single instrument
+ response = apiInstance.get_market_quote_ohlc("I1", instrument_key="NSE_EQ|INE669E01016")
+ if api_response.status != "success":
+ print("error in get_market_quote_ohlc api")
+except ApiException as e:
+ print("Exception when calling market quote v3 api: %s\n" % e)
+
+try:
+ response = apiInstance.get_market_quote_option_greek(instrument_key="NSE_FO|38604,NSE_FO|49210")
+ if api_response.status != "success":
+ print("error in get_market_quote_ohlc api")
+except ApiException as e:
+ print("Exception when calling market quote v3 api: %s\n" % e)
+
+try:
+ response = apiInstance.get_ltp(instrument_key="NSE_EQ|INE669E01016")
+ if api_response.status != "success":
+ print("error in get_ltp api")
+except ApiException as e:
+ print("Exception when calling market quote v3 api: %s\n" % e)
+
+
+apiInstance = upstox_client.ExpiredInstrumentApi(upstox_client.ApiClient(configuration))
+try:
+ response = apiInstance.get_expiries("NSE_INDEX|Nifty 50")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
+
+
+try:
+ response = apiInstance.get_expired_option_contracts("NSE_INDEX|Nifty 50", "2025-04-30")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
+
+try:
+ response = apiInstance.get_expired_future_contracts("NSE_INDEX|Nifty 50", "2025-04-24")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
+
+try:
+ response = apiInstance.get_expired_historical_candle_data("NSE_FO|54452|24-04-2025", "1minute", "2025-04-24", "2025-04-24")
+ print(response)
+except ApiException as e:
+ print("Exception when calling expired instrument v3 api: %s\n" % e)
+
+
+
+
api_instance = upstox_client.LoginApi(upstox_client.ApiClient(configuration))
api_version = '2.0'
@@ -497,4 +589,3 @@ def is_within_market_hours():
except ApiException as e:
print("Exception when calling LoginApi->logout: %s\n" % e)
-
diff --git a/test/test_api_gateway_error_response.py b/test/test_api_gateway_error_response.py
index 6f20cd0..687b300 100644
--- a/test/test_api_gateway_error_response.py
+++ b/test/test_api_gateway_error_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_brokerage_data.py b/test/test_brokerage_data.py
index 7e2ac3f..0ba3fcb 100644
--- a/test/test_brokerage_data.py
+++ b/test/test_brokerage_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_brokerage_taxes.py b/test/test_brokerage_taxes.py
index e26abae..f02755e 100644
--- a/test/test_brokerage_taxes.py
+++ b/test/test_brokerage_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_brokerage_wrapper_data.py b/test/test_brokerage_wrapper_data.py
index ac6d704..9d9f307 100644
--- a/test/test_brokerage_wrapper_data.py
+++ b/test/test_brokerage_wrapper_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_cancel_order_data.py b/test/test_cancel_order_data.py
index 8a6653a..87d2fc4 100644
--- a/test/test_cancel_order_data.py
+++ b/test/test_cancel_order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_cancel_order_response.py b/test/test_cancel_order_response.py
index b82f8f5..5b4d75b 100644
--- a/test/test_cancel_order_response.py
+++ b/test/test_cancel_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_charge_api.py b/test/test_charge_api.py
index e31d70c..e17edfd 100644
--- a/test/test_charge_api.py
+++ b/test/test_charge_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_convert_position_data.py b/test/test_convert_position_data.py
index 2c14608..80ba283 100644
--- a/test/test_convert_position_data.py
+++ b/test/test_convert_position_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_convert_position_request.py b/test/test_convert_position_request.py
index f6d7e3c..53e255f 100644
--- a/test/test_convert_position_request.py
+++ b/test/test_convert_position_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_convert_position_response.py b/test/test_convert_position_response.py
index 9ca06b6..5f92609 100644
--- a/test/test_convert_position_response.py
+++ b/test/test_convert_position_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_depth.py b/test/test_depth.py
index c5d87e5..9573264 100644
--- a/test/test_depth.py
+++ b/test/test_depth.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_depth_map.py b/test/test_depth_map.py
index cb3051f..a346824 100644
--- a/test/test_depth_map.py
+++ b/test/test_depth_map.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_dp_plan.py b/test/test_dp_plan.py
index b388994..b6109e8 100644
--- a/test/test_dp_plan.py
+++ b/test/test_dp_plan.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_brokerage_response.py b/test/test_get_brokerage_response.py
index c5de54f..224fe9a 100644
--- a/test/test_get_brokerage_response.py
+++ b/test/test_get_brokerage_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_full_market_quote_response.py b/test/test_get_full_market_quote_response.py
index c9cf392..d5f41ba 100644
--- a/test/test_get_full_market_quote_response.py
+++ b/test/test_get_full_market_quote_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_historical_candle_response.py b/test/test_get_historical_candle_response.py
index d3431a6..fd3a4bc 100644
--- a/test/test_get_historical_candle_response.py
+++ b/test/test_get_historical_candle_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_holdings_response.py b/test/test_get_holdings_response.py
index c4efa96..d7a3241 100644
--- a/test/test_get_holdings_response.py
+++ b/test/test_get_holdings_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_intra_day_candle_response.py b/test/test_get_intra_day_candle_response.py
index 8bcbcd1..8e46111 100644
--- a/test/test_get_intra_day_candle_response.py
+++ b/test/test_get_intra_day_candle_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_market_quote_last_traded_price_response.py b/test/test_get_market_quote_last_traded_price_response.py
index 88c0e2e..677730e 100644
--- a/test/test_get_market_quote_last_traded_price_response.py
+++ b/test/test_get_market_quote_last_traded_price_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_market_quote_ohlc_response.py b/test/test_get_market_quote_ohlc_response.py
index e70b5b3..b317790 100644
--- a/test/test_get_market_quote_ohlc_response.py
+++ b/test/test_get_market_quote_ohlc_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_order_book_response.py b/test/test_get_order_book_response.py
index 24e760b..e7291db 100644
--- a/test/test_get_order_book_response.py
+++ b/test/test_get_order_book_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_order_response.py b/test/test_get_order_response.py
index a495f9e..7b18959 100644
--- a/test/test_get_order_response.py
+++ b/test/test_get_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_position_response.py b/test/test_get_position_response.py
index 3eaa0c7..ee65ff9 100644
--- a/test/test_get_position_response.py
+++ b/test/test_get_position_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_profile_response.py b/test/test_get_profile_response.py
index 5d95f55..1db57c5 100644
--- a/test/test_get_profile_response.py
+++ b/test/test_get_profile_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_profit_and_loss_charges_response.py b/test/test_get_profit_and_loss_charges_response.py
index b8273c2..9e2c218 100644
--- a/test/test_get_profit_and_loss_charges_response.py
+++ b/test/test_get_profit_and_loss_charges_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_trade_response.py b/test/test_get_trade_response.py
index d0755ff..d28bfe9 100644
--- a/test/test_get_trade_response.py
+++ b/test/test_get_trade_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_trade_wise_profit_and_loss_data_response.py b/test/test_get_trade_wise_profit_and_loss_data_response.py
index f1d208a..1b2bb1d 100644
--- a/test/test_get_trade_wise_profit_and_loss_data_response.py
+++ b/test/test_get_trade_wise_profit_and_loss_data_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_trade_wise_profit_and_loss_meta_data_response.py b/test/test_get_trade_wise_profit_and_loss_meta_data_response.py
index 8e44f34..cda04ea 100644
--- a/test/test_get_trade_wise_profit_and_loss_meta_data_response.py
+++ b/test/test_get_trade_wise_profit_and_loss_meta_data_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_get_user_fund_margin_response.py b/test/test_get_user_fund_margin_response.py
index b8b3a62..de89ed8 100644
--- a/test/test_get_user_fund_margin_response.py
+++ b/test/test_get_user_fund_margin_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_historical_candle_data.py b/test/test_historical_candle_data.py
index 99d53b1..9a94f43 100644
--- a/test/test_historical_candle_data.py
+++ b/test/test_historical_candle_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_history_api.py b/test/test_history_api.py
index f4a89b0..819a782 100644
--- a/test/test_history_api.py
+++ b/test/test_history_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_holdings_data.py b/test/test_holdings_data.py
index 6d28681..728317d 100644
--- a/test/test_holdings_data.py
+++ b/test/test_holdings_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_intra_day_candle_data.py b/test/test_intra_day_candle_data.py
index 2a9b976..db1b274 100644
--- a/test/test_intra_day_candle_data.py
+++ b/test/test_intra_day_candle_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_login_api.py b/test/test_login_api.py
index dd9c843..3e4a7e2 100644
--- a/test/test_login_api.py
+++ b/test/test_login_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_logout_response.py b/test/test_logout_response.py
index c1ce76f..3ac5501 100644
--- a/test/test_logout_response.py
+++ b/test/test_logout_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_market_quote_api.py b/test/test_market_quote_api.py
index 33bc8dd..8eba503 100644
--- a/test/test_market_quote_api.py
+++ b/test/test_market_quote_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_market_quote_ohlc.py b/test/test_market_quote_ohlc.py
index 4aaf0c9..cb33f72 100644
--- a/test/test_market_quote_ohlc.py
+++ b/test/test_market_quote_ohlc.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_market_quote_symbol.py b/test/test_market_quote_symbol.py
index 22b8c91..942c597 100644
--- a/test/test_market_quote_symbol.py
+++ b/test/test_market_quote_symbol.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_market_quote_symbol_ltp.py b/test/test_market_quote_symbol_ltp.py
index 98d7cd5..fe26654 100644
--- a/test/test_market_quote_symbol_ltp.py
+++ b/test/test_market_quote_symbol_ltp.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_modify_order_data.py b/test/test_modify_order_data.py
index 2222c22..34256c8 100644
--- a/test/test_modify_order_data.py
+++ b/test/test_modify_order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_modify_order_request.py b/test/test_modify_order_request.py
index cc5a8dc..29a372d 100644
--- a/test/test_modify_order_request.py
+++ b/test/test_modify_order_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_modify_order_response.py b/test/test_modify_order_response.py
index d3f9de3..bfb5ca4 100644
--- a/test/test_modify_order_response.py
+++ b/test/test_modify_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_o_auth_client_exception.py b/test/test_o_auth_client_exception.py
index ecf5701..a913f01 100644
--- a/test/test_o_auth_client_exception.py
+++ b/test/test_o_auth_client_exception.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_o_auth_client_exception_cause.py b/test/test_o_auth_client_exception_cause.py
index e6461d4..64e2a29 100644
--- a/test/test_o_auth_client_exception_cause.py
+++ b/test/test_o_auth_client_exception_cause.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_o_auth_client_exception_cause_stack_trace.py b/test/test_o_auth_client_exception_cause_stack_trace.py
index ee630a9..22ccd22 100644
--- a/test/test_o_auth_client_exception_cause_stack_trace.py
+++ b/test/test_o_auth_client_exception_cause_stack_trace.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_o_auth_client_exception_cause_suppressed.py b/test/test_o_auth_client_exception_cause_suppressed.py
index ef68e03..6955c6a 100644
--- a/test/test_o_auth_client_exception_cause_suppressed.py
+++ b/test/test_o_auth_client_exception_cause_suppressed.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_ohlc.py b/test/test_ohlc.py
index 3767262..fe76a7c 100644
--- a/test/test_ohlc.py
+++ b/test/test_ohlc.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_order_api.py b/test/test_order_api.py
index ab59623..8e7dbd1 100644
--- a/test/test_order_api.py
+++ b/test/test_order_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_order_book_data.py b/test/test_order_book_data.py
index cb11725..4f9f4f1 100644
--- a/test/test_order_book_data.py
+++ b/test/test_order_book_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_order_data.py b/test/test_order_data.py
index 6e4508d..0ed38f1 100644
--- a/test/test_order_data.py
+++ b/test/test_order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_other_taxes.py b/test/test_other_taxes.py
index 36ccc1b..24f618d 100644
--- a/test/test_other_taxes.py
+++ b/test/test_other_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_place_order_data.py b/test/test_place_order_data.py
index 9685b0e..8e24b10 100644
--- a/test/test_place_order_data.py
+++ b/test/test_place_order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_place_order_request.py b/test/test_place_order_request.py
index fbe496a..2fc4390 100644
--- a/test/test_place_order_request.py
+++ b/test/test_place_order_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_place_order_response.py b/test/test_place_order_response.py
index 1fb208f..2e6e039 100644
--- a/test/test_place_order_response.py
+++ b/test/test_place_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_portfolio_api.py b/test/test_portfolio_api.py
index ca782da..689e7e7 100644
--- a/test/test_portfolio_api.py
+++ b/test/test_portfolio_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_position_data.py b/test/test_position_data.py
index eaa719d..6365515 100644
--- a/test/test_position_data.py
+++ b/test/test_position_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_problem.py b/test/test_problem.py
index 44bb71a..c677f38 100644
--- a/test/test_problem.py
+++ b/test/test_problem.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_profile_data.py b/test/test_profile_data.py
index 72c225a..6115bda 100644
--- a/test/test_profile_data.py
+++ b/test/test_profile_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_profit_and_loss_charges_data.py b/test/test_profit_and_loss_charges_data.py
index 3e837e6..cb7eba0 100644
--- a/test/test_profit_and_loss_charges_data.py
+++ b/test/test_profit_and_loss_charges_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_profit_and_loss_charges_taxes.py b/test/test_profit_and_loss_charges_taxes.py
index 8f038be..353151e 100644
--- a/test/test_profit_and_loss_charges_taxes.py
+++ b/test/test_profit_and_loss_charges_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_profit_and_loss_charges_wrapper_data.py b/test/test_profit_and_loss_charges_wrapper_data.py
index 8287503..dd10e01 100644
--- a/test/test_profit_and_loss_charges_wrapper_data.py
+++ b/test/test_profit_and_loss_charges_wrapper_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_profit_and_loss_meta_data.py b/test/test_profit_and_loss_meta_data.py
index 78e02e5..347bb75 100644
--- a/test/test_profit_and_loss_meta_data.py
+++ b/test/test_profit_and_loss_meta_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_profit_and_loss_meta_data_wrapper.py b/test/test_profit_and_loss_meta_data_wrapper.py
index 37bc140..223575f 100644
--- a/test/test_profit_and_loss_meta_data_wrapper.py
+++ b/test/test_profit_and_loss_meta_data_wrapper.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_profit_and_loss_other_charges_taxes.py b/test/test_profit_and_loss_other_charges_taxes.py
index 6f4bbc8..eb16360 100644
--- a/test/test_profit_and_loss_other_charges_taxes.py
+++ b/test/test_profit_and_loss_other_charges_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_token_request.py b/test/test_token_request.py
index 135213f..f7d4f83 100644
--- a/test/test_token_request.py
+++ b/test/test_token_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_token_response.py b/test/test_token_response.py
index 46a4491..f693f05 100644
--- a/test/test_token_response.py
+++ b/test/test_token_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_trade_data.py b/test/test_trade_data.py
index 524e2bd..fc78251 100644
--- a/test/test_trade_data.py
+++ b/test/test_trade_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_trade_profit_and_loss_api.py b/test/test_trade_profit_and_loss_api.py
index 4a1df13..8b37ee1 100644
--- a/test/test_trade_profit_and_loss_api.py
+++ b/test/test_trade_profit_and_loss_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_trade_wise_meta_data.py b/test/test_trade_wise_meta_data.py
index 54209ef..e8b3872 100644
--- a/test/test_trade_wise_meta_data.py
+++ b/test/test_trade_wise_meta_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_trade_wise_profit_and_loss_data.py b/test/test_trade_wise_profit_and_loss_data.py
index 9f41ff7..c45fb3e 100644
--- a/test/test_trade_wise_profit_and_loss_data.py
+++ b/test/test_trade_wise_profit_and_loss_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_user_api.py b/test/test_user_api.py
index 49a3911..9d95565 100644
--- a/test/test_user_api.py
+++ b/test/test_user_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_user_fund_margin_data.py b/test/test_user_fund_margin_data.py
index 657734e..acc1215 100644
--- a/test/test_user_fund_margin_data.py
+++ b/test/test_user_fund_margin_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_websocket_api.py b/test/test_websocket_api.py
index 3bce27c..d7c3fad 100644
--- a/test/test_websocket_api.py
+++ b/test/test_websocket_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_websocket_auth_redirect_response.py b/test/test_websocket_auth_redirect_response.py
index 23e4b8f..14df154 100644
--- a/test/test_websocket_auth_redirect_response.py
+++ b/test/test_websocket_auth_redirect_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/test/test_websocket_auth_redirect_response_data.py b/test/test_websocket_auth_redirect_response_data.py
index 5a707d6..0552be0 100644
--- a/test/test_websocket_auth_redirect_response_data.py
+++ b/test/test_websocket_auth_redirect_response_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/__init__.py b/upstox_client/__init__.py
index 0e0e692..14df1b7 100644
--- a/upstox_client/__init__.py
+++ b/upstox_client/__init__.py
@@ -5,7 +5,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
@@ -16,10 +16,13 @@
# import apis into sdk package
from upstox_client.api.charge_api import ChargeApi
+from upstox_client.api.expired_instrument_api import ExpiredInstrumentApi
from upstox_client.api.history_api import HistoryApi
+from upstox_client.api.history_v3_api import HistoryV3Api
from upstox_client.api.login_api import LoginApi
from upstox_client.api.market_holidays_and_timings_api import MarketHolidaysAndTimingsApi
from upstox_client.api.market_quote_api import MarketQuoteApi
+from upstox_client.api.market_quote_v3_api import MarketQuoteV3Api
from upstox_client.api.options_api import OptionsApi
from upstox_client.api.order_api import OrderApi
from upstox_client.api.portfolio_api import PortfolioApi
@@ -55,8 +58,11 @@
from upstox_client.models.depth_map import DepthMap
from upstox_client.models.dp_plan import DpPlan
from upstox_client.models.exchange_timing_data import ExchangeTimingData
+from upstox_client.models.expired_future_data import ExpiredFutureData
from upstox_client.models.get_brokerage_response import GetBrokerageResponse
from upstox_client.models.get_exchange_timing_response import GetExchangeTimingResponse
+from upstox_client.models.get_expired_futures_contract_response import GetExpiredFuturesContractResponse
+from upstox_client.models.get_expiries import GetExpiriesResponse
from upstox_client.models.get_full_market_quote_response import GetFullMarketQuoteResponse
from upstox_client.models.get_gtt_order_response import GetGttOrderResponse
from upstox_client.models.get_historical_candle_response import GetHistoricalCandleResponse
@@ -64,7 +70,10 @@
from upstox_client.models.get_holiday_response import GetHolidayResponse
from upstox_client.models.get_intra_day_candle_response import GetIntraDayCandleResponse
from upstox_client.models.get_market_quote_last_traded_price_response import GetMarketQuoteLastTradedPriceResponse
+from upstox_client.models.get_market_quote_last_traded_price_response_v3 import GetMarketQuoteLastTradedPriceResponseV3
from upstox_client.models.get_market_quote_ohlc_response import GetMarketQuoteOHLCResponse
+from upstox_client.models.get_market_quote_ohlc_response_v3 import GetMarketQuoteOHLCResponseV3
+from upstox_client.models.get_market_quote_option_greek_response_v3 import GetMarketQuoteOptionGreekResponseV3
from upstox_client.models.get_market_status_response import GetMarketStatusResponse
from upstox_client.models.get_option_chain_response import GetOptionChainResponse
from upstox_client.models.get_option_contract_response import GetOptionContractResponse
@@ -100,8 +109,11 @@
from upstox_client.models.margin_request import MarginRequest
from upstox_client.models.market_data import MarketData
from upstox_client.models.market_quote_ohlc import MarketQuoteOHLC
+from upstox_client.models.market_quote_ohlcv3 import MarketQuoteOHLCV3
+from upstox_client.models.market_quote_option_greek_v3 import MarketQuoteOptionGreekV3
from upstox_client.models.market_quote_symbol import MarketQuoteSymbol
from upstox_client.models.market_quote_symbol_ltp import MarketQuoteSymbolLtp
+from upstox_client.models.market_quote_symbol_ltp_v3 import MarketQuoteSymbolLtpV3
from upstox_client.models.market_status_data import MarketStatusData
from upstox_client.models.modify_order_data import ModifyOrderData
from upstox_client.models.modify_order_request import ModifyOrderRequest
@@ -118,6 +130,7 @@
from upstox_client.models.o_auth_client_exception_cause_stack_trace import OAuthClientExceptionCauseStackTrace
from upstox_client.models.o_auth_client_exception_cause_suppressed import OAuthClientExceptionCauseSuppressed
from upstox_client.models.ohlc import Ohlc
+from upstox_client.models.ohlc_v3 import OhlcV3
from upstox_client.models.option_strike_data import OptionStrikeData
from upstox_client.models.order_book_data import OrderBookData
from upstox_client.models.order_data import OrderData
diff --git a/upstox_client/api/__init__.py b/upstox_client/api/__init__.py
index 43c19f5..f015cae 100644
--- a/upstox_client/api/__init__.py
+++ b/upstox_client/api/__init__.py
@@ -4,11 +4,17 @@
# import apis into api package
from upstox_client.api.charge_api import ChargeApi
+from upstox_client.api.expired_instrument_api import ExpiredInstrumentApi
from upstox_client.api.history_api import HistoryApi
+from upstox_client.api.history_v3_api import HistoryV3Api
from upstox_client.api.login_api import LoginApi
+from upstox_client.api.market_holidays_and_timings_api import MarketHolidaysAndTimingsApi
from upstox_client.api.market_quote_api import MarketQuoteApi
+from upstox_client.api.market_quote_v3_api import MarketQuoteV3Api
+from upstox_client.api.options_api import OptionsApi
from upstox_client.api.order_api import OrderApi
from upstox_client.api.portfolio_api import PortfolioApi
+from upstox_client.api.post_trade_api import PostTradeApi
from upstox_client.api.trade_profit_and_loss_api import TradeProfitAndLossApi
from upstox_client.api.user_api import UserApi
from upstox_client.api.websocket_api import WebsocketApi
diff --git a/upstox_client/api/charge_api.py b/upstox_client/api/charge_api.py
index 0dc13cc..5bd3e55 100644
--- a/upstox_client/api/charge_api.py
+++ b/upstox_client/api/charge_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api/expired_instrument_api.py b/upstox_client/api/expired_instrument_api.py
new file mode 100644
index 0000000..3f14784
--- /dev/null
+++ b/upstox_client/api/expired_instrument_api.py
@@ -0,0 +1,453 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from upstox_client.api_client import ApiClient
+
+
+class ExpiredInstrumentApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def get_expired_future_contracts(self, instrument_key, expiry_date, **kwargs): # noqa: E501
+ """Expired instruments - Get future contracts # noqa: E501
+
+ This API provides the functionality to retrieve expired future contracts for a given instrument key and expiry date. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expired_future_contracts(instrument_key, expiry_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Instrument Key of asset (required)
+ :param str expiry_date: Expiry date of the instrument (required)
+ :return: GetExpiredFuturesContractResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_expired_future_contracts_with_http_info(instrument_key, expiry_date, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_expired_future_contracts_with_http_info(instrument_key, expiry_date, **kwargs) # noqa: E501
+ return data
+
+ def get_expired_future_contracts_with_http_info(self, instrument_key, expiry_date, **kwargs): # noqa: E501
+ """Expired instruments - Get future contracts # noqa: E501
+
+ This API provides the functionality to retrieve expired future contracts for a given instrument key and expiry date. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expired_future_contracts_with_http_info(instrument_key, expiry_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Instrument Key of asset (required)
+ :param str expiry_date: Expiry date of the instrument (required)
+ :return: GetExpiredFuturesContractResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key', 'expiry_date'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_expired_future_contracts" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'instrument_key' is set
+ if ('instrument_key' not in params or
+ params['instrument_key'] is None):
+ raise ValueError("Missing the required parameter `instrument_key` when calling `get_expired_future_contracts`") # noqa: E501
+ # verify the required parameter 'expiry_date' is set
+ if ('expiry_date' not in params or
+ params['expiry_date'] is None):
+ raise ValueError("Missing the required parameter `expiry_date` when calling `get_expired_future_contracts`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'instrument_key' in params:
+ query_params.append(('instrument_key', params['instrument_key'])) # noqa: E501
+ if 'expiry_date' in params:
+ query_params.append(('expiry_date', params['expiry_date'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/expired-instruments/future/contract', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetExpiredFuturesContractResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_expired_historical_candle_data(self, expired_instrument_key, interval, to_date, from_date, **kwargs): # noqa: E501
+ """Expired Historical candle data # noqa: E501
+
+ Get Expired OHLC values for all instruments across various timeframes. Expired Historical data can be fetched for the following durations. 1minute: last 1 month candles till endDate 30minute: last 1 year candles till endDate day: last 1 year candles till endDate week: last 10 year candles till endDate month: last 10 year candles till endDate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expired_historical_candle_data(expired_instrument_key, interval, to_date, from_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str expired_instrument_key: Expired Instrument Key of asset (required)
+ :param str interval: Interval to get expired ohlc data (required)
+ :param str to_date: to date (required)
+ :param str from_date: from date (required)
+ :return: GetHistoricalCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_expired_historical_candle_data_with_http_info(expired_instrument_key, interval, to_date, from_date, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_expired_historical_candle_data_with_http_info(expired_instrument_key, interval, to_date, from_date, **kwargs) # noqa: E501
+ return data
+
+ def get_expired_historical_candle_data_with_http_info(self, expired_instrument_key, interval, to_date, from_date, **kwargs): # noqa: E501
+ """Expired Historical candle data # noqa: E501
+
+ Get Expired OHLC values for all instruments across various timeframes. Expired Historical data can be fetched for the following durations. 1minute: last 1 month candles till endDate 30minute: last 1 year candles till endDate day: last 1 year candles till endDate week: last 10 year candles till endDate month: last 10 year candles till endDate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expired_historical_candle_data_with_http_info(expired_instrument_key, interval, to_date, from_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str expired_instrument_key: Expired Instrument Key of asset (required)
+ :param str interval: Interval to get expired ohlc data (required)
+ :param str to_date: to date (required)
+ :param str from_date: from date (required)
+ :return: GetHistoricalCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['expired_instrument_key', 'interval', 'to_date', 'from_date'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_expired_historical_candle_data" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'expired_instrument_key' is set
+ if ('expired_instrument_key' not in params or
+ params['expired_instrument_key'] is None):
+ raise ValueError("Missing the required parameter `expired_instrument_key` when calling `get_expired_historical_candle_data`") # noqa: E501
+ # verify the required parameter 'interval' is set
+ if ('interval' not in params or
+ params['interval'] is None):
+ raise ValueError("Missing the required parameter `interval` when calling `get_expired_historical_candle_data`") # noqa: E501
+ # verify the required parameter 'to_date' is set
+ if ('to_date' not in params or
+ params['to_date'] is None):
+ raise ValueError("Missing the required parameter `to_date` when calling `get_expired_historical_candle_data`") # noqa: E501
+ # verify the required parameter 'from_date' is set
+ if ('from_date' not in params or
+ params['from_date'] is None):
+ raise ValueError("Missing the required parameter `from_date` when calling `get_expired_historical_candle_data`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'expired_instrument_key' in params:
+ path_params['expired_instrument_key'] = params['expired_instrument_key'] # noqa: E501
+ if 'interval' in params:
+ path_params['interval'] = params['interval'] # noqa: E501
+ if 'to_date' in params:
+ path_params['to_date'] = params['to_date'] # noqa: E501
+ if 'from_date' in params:
+ path_params['from_date'] = params['from_date'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/expired-instruments/historical-candle/{expired_instrument_key}/{interval}/{to_date}/{from_date}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetHistoricalCandleResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_expired_option_contracts(self, instrument_key, expiry_date, **kwargs): # noqa: E501
+ """Get expired option contracts # noqa: E501
+
+ This API provides the functionality to retrieve the expired option contracts # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expired_option_contracts(instrument_key, expiry_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Instrument key for an underlying symbol (required)
+ :param str expiry_date: Expiry date in format: YYYY-mm-dd (required)
+ :return: GetOptionContractResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_expired_option_contracts_with_http_info(instrument_key, expiry_date, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_expired_option_contracts_with_http_info(instrument_key, expiry_date, **kwargs) # noqa: E501
+ return data
+
+ def get_expired_option_contracts_with_http_info(self, instrument_key, expiry_date, **kwargs): # noqa: E501
+ """Get expired option contracts # noqa: E501
+
+ This API provides the functionality to retrieve the expired option contracts # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expired_option_contracts_with_http_info(instrument_key, expiry_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Instrument key for an underlying symbol (required)
+ :param str expiry_date: Expiry date in format: YYYY-mm-dd (required)
+ :return: GetOptionContractResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key', 'expiry_date'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_expired_option_contracts" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'instrument_key' is set
+ if ('instrument_key' not in params or
+ params['instrument_key'] is None):
+ raise ValueError("Missing the required parameter `instrument_key` when calling `get_expired_option_contracts`") # noqa: E501
+ # verify the required parameter 'expiry_date' is set
+ if ('expiry_date' not in params or
+ params['expiry_date'] is None):
+ raise ValueError("Missing the required parameter `expiry_date` when calling `get_expired_option_contracts`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'instrument_key' in params:
+ query_params.append(('instrument_key', params['instrument_key'])) # noqa: E501
+ if 'expiry_date' in params:
+ query_params.append(('expiry_date', params['expiry_date'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/expired-instruments/option/contract', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetOptionContractResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_expiries(self, instrument_key, **kwargs): # noqa: E501
+ """Expired instruments - Get expiries # noqa: E501
+
+ This API provides the functionality to retrieve expiry dates for a given instrument key. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expiries(instrument_key, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Instrument Key of asset (required)
+ :return: GetExpiriesResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_expiries_with_http_info(instrument_key, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_expiries_with_http_info(instrument_key, **kwargs) # noqa: E501
+ return data
+
+ def get_expiries_with_http_info(self, instrument_key, **kwargs): # noqa: E501
+ """Expired instruments - Get expiries # noqa: E501
+
+ This API provides the functionality to retrieve expiry dates for a given instrument key. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_expiries_with_http_info(instrument_key, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Instrument Key of asset (required)
+ :return: GetExpiriesResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_expiries" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'instrument_key' is set
+ if ('instrument_key' not in params or
+ params['instrument_key'] is None):
+ raise ValueError("Missing the required parameter `instrument_key` when calling `get_expiries`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'instrument_key' in params:
+ query_params.append(('instrument_key', params['instrument_key'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/expired-instruments/expiries', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetExpiriesResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/upstox_client/api/history_api.py b/upstox_client/api/history_api.py
index 6c8f83e..438477c 100644
--- a/upstox_client/api/history_api.py
+++ b/upstox_client/api/history_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api/history_v3_api.py b/upstox_client/api/history_v3_api.py
new file mode 100644
index 0000000..fff3503
--- /dev/null
+++ b/upstox_client/api/history_v3_api.py
@@ -0,0 +1,390 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from upstox_client.api_client import ApiClient
+
+
+class HistoryV3Api(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def get_historical_candle_data(self, instrument_key, unit, interval, to_date, **kwargs): # noqa: E501
+ """Historical candle data # noqa: E501
+
+ Get OHLC values for all instruments for the present trading day with expanded interval options. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_historical_candle_data(instrument_key, unit, interval, to_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: (required)
+ :param str unit: (required)
+ :param int interval: (required)
+ :param str to_date: (required)
+ :return: GetHistoricalCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_historical_candle_data_with_http_info(instrument_key, unit, interval, to_date, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_historical_candle_data_with_http_info(instrument_key, unit, interval, to_date, **kwargs) # noqa: E501
+ return data
+
+ def get_historical_candle_data_with_http_info(self, instrument_key, unit, interval, to_date, **kwargs): # noqa: E501
+ """Historical candle data # noqa: E501
+
+ Get OHLC values for all instruments for the present trading day with expanded interval options. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_historical_candle_data_with_http_info(instrument_key, unit, interval, to_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: (required)
+ :param str unit: (required)
+ :param int interval: (required)
+ :param str to_date: (required)
+ :return: GetHistoricalCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key', 'unit', 'interval', 'to_date'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_historical_candle_data" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'instrument_key' is set
+ if ('instrument_key' not in params or
+ params['instrument_key'] is None):
+ raise ValueError("Missing the required parameter `instrument_key` when calling `get_historical_candle_data`") # noqa: E501
+ # verify the required parameter 'unit' is set
+ if ('unit' not in params or
+ params['unit'] is None):
+ raise ValueError("Missing the required parameter `unit` when calling `get_historical_candle_data`") # noqa: E501
+ # verify the required parameter 'interval' is set
+ if ('interval' not in params or
+ params['interval'] is None):
+ raise ValueError("Missing the required parameter `interval` when calling `get_historical_candle_data`") # noqa: E501
+ # verify the required parameter 'to_date' is set
+ if ('to_date' not in params or
+ params['to_date'] is None):
+ raise ValueError("Missing the required parameter `to_date` when calling `get_historical_candle_data`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'instrument_key' in params:
+ path_params['instrumentKey'] = params['instrument_key'] # noqa: E501
+ if 'unit' in params:
+ path_params['unit'] = params['unit'] # noqa: E501
+ if 'interval' in params:
+ path_params['interval'] = params['interval'] # noqa: E501
+ if 'to_date' in params:
+ path_params['to_date'] = params['to_date'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetHistoricalCandleResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_historical_candle_data1(self, instrument_key, unit, interval, to_date, from_date, **kwargs): # noqa: E501
+ """Historical candle data # noqa: E501
+
+ Get OHLC values for all instruments for the present trading day with expanded interval options # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_historical_candle_data1(instrument_key, unit, interval, to_date, from_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: (required)
+ :param str unit: (required)
+ :param int interval: (required)
+ :param str to_date: (required)
+ :param str from_date: (required)
+ :return: GetHistoricalCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_historical_candle_data1_with_http_info(instrument_key, unit, interval, to_date, from_date, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_historical_candle_data1_with_http_info(instrument_key, unit, interval, to_date, from_date, **kwargs) # noqa: E501
+ return data
+
+ def get_historical_candle_data1_with_http_info(self, instrument_key, unit, interval, to_date, from_date, **kwargs): # noqa: E501
+ """Historical candle data # noqa: E501
+
+ Get OHLC values for all instruments for the present trading day with expanded interval options # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_historical_candle_data1_with_http_info(instrument_key, unit, interval, to_date, from_date, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: (required)
+ :param str unit: (required)
+ :param int interval: (required)
+ :param str to_date: (required)
+ :param str from_date: (required)
+ :return: GetHistoricalCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key', 'unit', 'interval', 'to_date', 'from_date'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_historical_candle_data1" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'instrument_key' is set
+ if ('instrument_key' not in params or
+ params['instrument_key'] is None):
+ raise ValueError("Missing the required parameter `instrument_key` when calling `get_historical_candle_data1`") # noqa: E501
+ # verify the required parameter 'unit' is set
+ if ('unit' not in params or
+ params['unit'] is None):
+ raise ValueError("Missing the required parameter `unit` when calling `get_historical_candle_data1`") # noqa: E501
+ # verify the required parameter 'interval' is set
+ if ('interval' not in params or
+ params['interval'] is None):
+ raise ValueError("Missing the required parameter `interval` when calling `get_historical_candle_data1`") # noqa: E501
+ # verify the required parameter 'to_date' is set
+ if ('to_date' not in params or
+ params['to_date'] is None):
+ raise ValueError("Missing the required parameter `to_date` when calling `get_historical_candle_data1`") # noqa: E501
+ # verify the required parameter 'from_date' is set
+ if ('from_date' not in params or
+ params['from_date'] is None):
+ raise ValueError("Missing the required parameter `from_date` when calling `get_historical_candle_data1`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'instrument_key' in params:
+ path_params['instrumentKey'] = params['instrument_key'] # noqa: E501
+ if 'unit' in params:
+ path_params['unit'] = params['unit'] # noqa: E501
+ if 'interval' in params:
+ path_params['interval'] = params['interval'] # noqa: E501
+ if 'to_date' in params:
+ path_params['to_date'] = params['to_date'] # noqa: E501
+ if 'from_date' in params:
+ path_params['from_date'] = params['from_date'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date}/{from_date}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetHistoricalCandleResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_intra_day_candle_data(self, instrument_key, unit, interval, **kwargs): # noqa: E501
+ """Intra day candle data # noqa: E501
+
+ Get OHLC values for all instruments for the present trading day # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_intra_day_candle_data(instrument_key, unit, interval, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: (required)
+ :param str unit: (required)
+ :param int interval: (required)
+ :return: GetIntraDayCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_intra_day_candle_data_with_http_info(instrument_key, unit, interval, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_intra_day_candle_data_with_http_info(instrument_key, unit, interval, **kwargs) # noqa: E501
+ return data
+
+ def get_intra_day_candle_data_with_http_info(self, instrument_key, unit, interval, **kwargs): # noqa: E501
+ """Intra day candle data # noqa: E501
+
+ Get OHLC values for all instruments for the present trading day # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_intra_day_candle_data_with_http_info(instrument_key, unit, interval, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: (required)
+ :param str unit: (required)
+ :param int interval: (required)
+ :return: GetIntraDayCandleResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key', 'unit', 'interval'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_intra_day_candle_data" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'instrument_key' is set
+ if ('instrument_key' not in params or
+ params['instrument_key'] is None):
+ raise ValueError("Missing the required parameter `instrument_key` when calling `get_intra_day_candle_data`") # noqa: E501
+ # verify the required parameter 'unit' is set
+ if ('unit' not in params or
+ params['unit'] is None):
+ raise ValueError("Missing the required parameter `unit` when calling `get_intra_day_candle_data`") # noqa: E501
+ # verify the required parameter 'interval' is set
+ if ('interval' not in params or
+ params['interval'] is None):
+ raise ValueError("Missing the required parameter `interval` when calling `get_intra_day_candle_data`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'instrument_key' in params:
+ path_params['instrumentKey'] = params['instrument_key'] # noqa: E501
+ if 'unit' in params:
+ path_params['unit'] = params['unit'] # noqa: E501
+ if 'interval' in params:
+ path_params['interval'] = params['interval'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = [] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v3/historical-candle/intraday/{instrumentKey}/{unit}/{interval}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetIntraDayCandleResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/upstox_client/api/login_api.py b/upstox_client/api/login_api.py
index 41e42c4..309a5e5 100644
--- a/upstox_client/api/login_api.py
+++ b/upstox_client/api/login_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api/market_quote_api.py b/upstox_client/api/market_quote_api.py
index ce9b646..c2dc20f 100644
--- a/upstox_client/api/market_quote_api.py
+++ b/upstox_client/api/market_quote_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api/market_quote_v3_api.py b/upstox_client/api/market_quote_v3_api.py
new file mode 100644
index 0000000..0e0baff
--- /dev/null
+++ b/upstox_client/api/market_quote_v3_api.py
@@ -0,0 +1,314 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from upstox_client.api_client import ApiClient
+
+
+class MarketQuoteV3Api(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def get_ltp(self, **kwargs): # noqa: E501
+ """Market quotes and instruments - LTP quotes. # noqa: E501
+
+ This API provides the functionality to retrieve the LTP quotes for one or more instruments.This API returns the LTPs of up to 500 instruments in one go. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_ltp(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Comma separated list of instrument keys
+ :return: GetMarketQuoteLastTradedPriceResponseV3
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_ltp_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_ltp_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_ltp_with_http_info(self, **kwargs): # noqa: E501
+ """Market quotes and instruments - LTP quotes. # noqa: E501
+
+ This API provides the functionality to retrieve the LTP quotes for one or more instruments.This API returns the LTPs of up to 500 instruments in one go. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_ltp_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Comma separated list of instrument keys
+ :return: GetMarketQuoteLastTradedPriceResponseV3
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_ltp" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'instrument_key' in params:
+ query_params.append(('instrument_key', params['instrument_key'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v3/market-quote/ltp', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetMarketQuoteLastTradedPriceResponseV3', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_market_quote_ohlc(self, interval, **kwargs): # noqa: E501
+ """Market quotes and instruments - OHLC quotes # noqa: E501
+
+ This API provides the functionality to retrieve the OHLC quotes for one or more instruments.This API returns the OHLC snapshots of up to 500 instruments in one go. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_market_quote_ohlc(interval, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str interval: Interval to get ohlc data (required)
+ :param str instrument_key: Comma separated list of instrument keys
+ :return: GetMarketQuoteOHLCResponseV3
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_market_quote_ohlc_with_http_info(interval, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_market_quote_ohlc_with_http_info(interval, **kwargs) # noqa: E501
+ return data
+
+ def get_market_quote_ohlc_with_http_info(self, interval, **kwargs): # noqa: E501
+ """Market quotes and instruments - OHLC quotes # noqa: E501
+
+ This API provides the functionality to retrieve the OHLC quotes for one or more instruments.This API returns the OHLC snapshots of up to 500 instruments in one go. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_market_quote_ohlc_with_http_info(interval, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str interval: Interval to get ohlc data (required)
+ :param str instrument_key: Comma separated list of instrument keys
+ :return: GetMarketQuoteOHLCResponseV3
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['interval', 'instrument_key'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_market_quote_ohlc" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'interval' is set
+ if ('interval' not in params or
+ params['interval'] is None):
+ raise ValueError("Missing the required parameter `interval` when calling `get_market_quote_ohlc`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'instrument_key' in params:
+ query_params.append(('instrument_key', params['instrument_key'])) # noqa: E501
+ if 'interval' in params:
+ query_params.append(('interval', params['interval'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v3/market-quote/ohlc', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetMarketQuoteOHLCResponseV3', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_market_quote_option_greek(self, **kwargs): # noqa: E501
+ """Market quotes and instruments - Option Greek # noqa: E501
+
+ This API provides the functionality to retrieve the Option Greek data for one or more instruments.This API returns the Option Greek data of up to 500 instruments in one go. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_market_quote_option_greek(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Comma separated list of instrument keys
+ :return: GetMarketQuoteOptionGreekResponseV3
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_market_quote_option_greek_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_market_quote_option_greek_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_market_quote_option_greek_with_http_info(self, **kwargs): # noqa: E501
+ """Market quotes and instruments - Option Greek # noqa: E501
+
+ This API provides the functionality to retrieve the Option Greek data for one or more instruments.This API returns the Option Greek data of up to 500 instruments in one go. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_market_quote_option_greek_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str instrument_key: Comma separated list of instrument keys
+ :return: GetMarketQuoteOptionGreekResponseV3
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['instrument_key'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_market_quote_option_greek" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'instrument_key' in params:
+ query_params.append(('instrument_key', params['instrument_key'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v3/market-quote/option-greek', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetMarketQuoteOptionGreekResponseV3', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/upstox_client/api/order_api.py b/upstox_client/api/order_api.py
index bc472e7..9327fd5 100644
--- a/upstox_client/api/order_api.py
+++ b/upstox_client/api/order_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api/portfolio_api.py b/upstox_client/api/portfolio_api.py
index 467a7a5..f099fa4 100644
--- a/upstox_client/api/portfolio_api.py
+++ b/upstox_client/api/portfolio_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
@@ -234,7 +234,94 @@ def get_holdings_with_http_info(self, api_version, **kwargs): # noqa: E501
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
- def get_positions(self, api_version, **kwargs): # noqa: E501
+ def get_mtf_positions(self, **kwargs): # noqa: E501
+ """Get MTF positions # noqa: E501
+
+ This API allows you to get MTF positions. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_mtf_positions(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: GetPositionResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_mtf_positions_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.get_mtf_positions_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def get_mtf_positions_with_http_info(self, **kwargs): # noqa: E501
+ """Get MTF positions # noqa: E501
+
+ This API allows you to get MTF positions. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_mtf_positions_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :return: GetPositionResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = [] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_mtf_positions" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['*/*', 'application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['OAUTH2'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v3/portfolio/mtf-positions', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GetPositionResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_positions(self, **kwargs): # noqa: E501
"""Get Positions # noqa: E501
Fetches the current positions for the user for the current day. # noqa: E501
diff --git a/upstox_client/api/trade_profit_and_loss_api.py b/upstox_client/api/trade_profit_and_loss_api.py
index 3d42912..8523054 100644
--- a/upstox_client/api/trade_profit_and_loss_api.py
+++ b/upstox_client/api/trade_profit_and_loss_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api/user_api.py b/upstox_client/api/user_api.py
index 8b85d6e..397a75b 100644
--- a/upstox_client/api/user_api.py
+++ b/upstox_client/api/user_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api/websocket_api.py b/upstox_client/api/websocket_api.py
index 5988c14..a17de28 100644
--- a/upstox_client/api/websocket_api.py
+++ b/upstox_client/api/websocket_api.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/api_client.py b/upstox_client/api_client.py
index 957d2ff..554f853 100644
--- a/upstox_client/api_client.py
+++ b/upstox_client/api_client.py
@@ -2,7 +2,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
@@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/1.0.0/python'
self.default_headers["X-Upstox-SDK-Language"] = "python"
- self.default_headers["X-Upstox-SDK-Version"] = "2.14.0"
+ self.default_headers["X-Upstox-SDK-Version"] = "2.15.0"
def __del__(self):
try:
diff --git a/upstox_client/configuration.py b/upstox_client/configuration.py
index 37f768f..857ad7d 100644
--- a/upstox_client/configuration.py
+++ b/upstox_client/configuration.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/feeder/market_data_feeder_v3.py b/upstox_client/feeder/market_data_feeder_v3.py
index a6fa8ed..b62fadb 100644
--- a/upstox_client/feeder/market_data_feeder_v3.py
+++ b/upstox_client/feeder/market_data_feeder_v3.py
@@ -10,7 +10,8 @@ class MarketDataFeederV3(Feeder):
Mode = {
"LTPC": "ltpc",
"FULL": "full",
- "OPTION": "option_greeks"
+ "OPTION": "option_greeks",
+ "D30": "full_d30"
}
Method = {
diff --git a/upstox_client/feeder/market_data_streamer_v3.py b/upstox_client/feeder/market_data_streamer_v3.py
index 2e93cba..bd56bc5 100644
--- a/upstox_client/feeder/market_data_streamer_v3.py
+++ b/upstox_client/feeder/market_data_streamer_v3.py
@@ -8,7 +8,8 @@ class MarketDataStreamerV3(Streamer):
Mode = {
"LTPC": "ltpc",
"FULL": "full",
- "OPTION": "option_greeks"
+ "OPTION": "option_greeks",
+ "D30": "full_d30"
}
def __init__(self, api_client=None, instrumentKeys=[], mode="ltpc"):
super().__init__(api_client)
@@ -19,7 +20,8 @@ def __init__(self, api_client=None, instrumentKeys=[], mode="ltpc"):
self.subscriptions = {
self.Mode["LTPC"]: set(),
self.Mode["FULL"]: set(),
- self.Mode["OPTION"]: set()
+ self.Mode["OPTION"]: set(),
+ self.Mode["D30"]: set(),
}
if mode not in self.Mode.values():
raise Exception(f"Invalid mode provided {mode}")
diff --git a/upstox_client/models/__init__.py b/upstox_client/models/__init__.py
index 386bf1d..5d63b87 100644
--- a/upstox_client/models/__init__.py
+++ b/upstox_client/models/__init__.py
@@ -4,7 +4,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
@@ -33,8 +33,11 @@
from upstox_client.models.depth_map import DepthMap
from upstox_client.models.dp_plan import DpPlan
from upstox_client.models.exchange_timing_data import ExchangeTimingData
+from upstox_client.models.expired_future_data import ExpiredFutureData
from upstox_client.models.get_brokerage_response import GetBrokerageResponse
from upstox_client.models.get_exchange_timing_response import GetExchangeTimingResponse
+from upstox_client.models.get_expired_futures_contract_response import GetExpiredFuturesContractResponse
+from upstox_client.models.get_expiries import GetExpiriesResponse
from upstox_client.models.get_full_market_quote_response import GetFullMarketQuoteResponse
from upstox_client.models.get_gtt_order_response import GetGttOrderResponse
from upstox_client.models.get_historical_candle_response import GetHistoricalCandleResponse
@@ -42,7 +45,10 @@
from upstox_client.models.get_holiday_response import GetHolidayResponse
from upstox_client.models.get_intra_day_candle_response import GetIntraDayCandleResponse
from upstox_client.models.get_market_quote_last_traded_price_response import GetMarketQuoteLastTradedPriceResponse
+from upstox_client.models.get_market_quote_last_traded_price_response_v3 import GetMarketQuoteLastTradedPriceResponseV3
from upstox_client.models.get_market_quote_ohlc_response import GetMarketQuoteOHLCResponse
+from upstox_client.models.get_market_quote_ohlc_response_v3 import GetMarketQuoteOHLCResponseV3
+from upstox_client.models.get_market_quote_option_greek_response_v3 import GetMarketQuoteOptionGreekResponseV3
from upstox_client.models.get_market_status_response import GetMarketStatusResponse
from upstox_client.models.get_option_chain_response import GetOptionChainResponse
from upstox_client.models.get_option_contract_response import GetOptionContractResponse
@@ -78,8 +84,11 @@
from upstox_client.models.margin_request import MarginRequest
from upstox_client.models.market_data import MarketData
from upstox_client.models.market_quote_ohlc import MarketQuoteOHLC
+from upstox_client.models.market_quote_ohlcv3 import MarketQuoteOHLCV3
+from upstox_client.models.market_quote_option_greek_v3 import MarketQuoteOptionGreekV3
from upstox_client.models.market_quote_symbol import MarketQuoteSymbol
from upstox_client.models.market_quote_symbol_ltp import MarketQuoteSymbolLtp
+from upstox_client.models.market_quote_symbol_ltp_v3 import MarketQuoteSymbolLtpV3
from upstox_client.models.market_status_data import MarketStatusData
from upstox_client.models.modify_order_data import ModifyOrderData
from upstox_client.models.modify_order_request import ModifyOrderRequest
@@ -96,6 +105,7 @@
from upstox_client.models.o_auth_client_exception_cause_stack_trace import OAuthClientExceptionCauseStackTrace
from upstox_client.models.o_auth_client_exception_cause_suppressed import OAuthClientExceptionCauseSuppressed
from upstox_client.models.ohlc import Ohlc
+from upstox_client.models.ohlc_v3 import OhlcV3
from upstox_client.models.option_strike_data import OptionStrikeData
from upstox_client.models.order_book_data import OrderBookData
from upstox_client.models.order_data import OrderData
diff --git a/upstox_client/models/api_gateway_error_response.py b/upstox_client/models/api_gateway_error_response.py
index 5ce2f65..e23dd67 100644
--- a/upstox_client/models/api_gateway_error_response.py
+++ b/upstox_client/models/api_gateway_error_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/brokerage_data.py b/upstox_client/models/brokerage_data.py
index a4b84c6..9c63612 100644
--- a/upstox_client/models/brokerage_data.py
+++ b/upstox_client/models/brokerage_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/brokerage_taxes.py b/upstox_client/models/brokerage_taxes.py
index c8e325b..4fdac73 100644
--- a/upstox_client/models/brokerage_taxes.py
+++ b/upstox_client/models/brokerage_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/brokerage_wrapper_data.py b/upstox_client/models/brokerage_wrapper_data.py
index 0172bfe..a27eb5d 100644
--- a/upstox_client/models/brokerage_wrapper_data.py
+++ b/upstox_client/models/brokerage_wrapper_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/cancel_order_data.py b/upstox_client/models/cancel_order_data.py
index b0575af..faa2edb 100644
--- a/upstox_client/models/cancel_order_data.py
+++ b/upstox_client/models/cancel_order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/cancel_order_response.py b/upstox_client/models/cancel_order_response.py
index 7e75919..ed0f877 100644
--- a/upstox_client/models/cancel_order_response.py
+++ b/upstox_client/models/cancel_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/convert_position_data.py b/upstox_client/models/convert_position_data.py
index cd910ed..974b0dc 100644
--- a/upstox_client/models/convert_position_data.py
+++ b/upstox_client/models/convert_position_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/convert_position_request.py b/upstox_client/models/convert_position_request.py
index da67268..55c15a9 100644
--- a/upstox_client/models/convert_position_request.py
+++ b/upstox_client/models/convert_position_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/convert_position_response.py b/upstox_client/models/convert_position_response.py
index 78a9d4d..048f466 100644
--- a/upstox_client/models/convert_position_response.py
+++ b/upstox_client/models/convert_position_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/depth.py b/upstox_client/models/depth.py
index 10d57ab..24828dd 100644
--- a/upstox_client/models/depth.py
+++ b/upstox_client/models/depth.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/depth_map.py b/upstox_client/models/depth_map.py
index 2842799..dba595d 100644
--- a/upstox_client/models/depth_map.py
+++ b/upstox_client/models/depth_map.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/dp_plan.py b/upstox_client/models/dp_plan.py
index 7d7705d..14409dd 100644
--- a/upstox_client/models/dp_plan.py
+++ b/upstox_client/models/dp_plan.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/expired_future_data.py b/upstox_client/models/expired_future_data.py
new file mode 100644
index 0000000..72311f0
--- /dev/null
+++ b/upstox_client/models/expired_future_data.py
@@ -0,0 +1,504 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ExpiredFutureData(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'name': 'str',
+ 'segment': 'str',
+ 'exchange': 'str',
+ 'expiry': 'str',
+ 'instrument_key': 'str',
+ 'exchange_token': 'str',
+ 'trading_symbol': 'str',
+ 'tick_size': 'float',
+ 'lot_size': 'int',
+ 'instrument_type': 'str',
+ 'freeze_quantity': 'float',
+ 'underlying_key': 'str',
+ 'underlying_type': 'str',
+ 'underlying_symbol': 'str',
+ 'minimum_lot': 'int'
+ }
+
+ attribute_map = {
+ 'name': 'name',
+ 'segment': 'segment',
+ 'exchange': 'exchange',
+ 'expiry': 'expiry',
+ 'instrument_key': 'instrument_key',
+ 'exchange_token': 'exchange_token',
+ 'trading_symbol': 'trading_symbol',
+ 'tick_size': 'tick_size',
+ 'lot_size': 'lot_size',
+ 'instrument_type': 'instrument_type',
+ 'freeze_quantity': 'freeze_quantity',
+ 'underlying_key': 'underlying_key',
+ 'underlying_type': 'underlying_type',
+ 'underlying_symbol': 'underlying_symbol',
+ 'minimum_lot': 'minimum_lot'
+ }
+
+ def __init__(self, name=None, segment=None, exchange=None, expiry=None, instrument_key=None, exchange_token=None, trading_symbol=None, tick_size=None, lot_size=None, instrument_type=None, freeze_quantity=None, underlying_key=None, underlying_type=None, underlying_symbol=None, minimum_lot=None): # noqa: E501
+ """ExpiredFutureData - a model defined in Swagger""" # noqa: E501
+ self._name = None
+ self._segment = None
+ self._exchange = None
+ self._expiry = None
+ self._instrument_key = None
+ self._exchange_token = None
+ self._trading_symbol = None
+ self._tick_size = None
+ self._lot_size = None
+ self._instrument_type = None
+ self._freeze_quantity = None
+ self._underlying_key = None
+ self._underlying_type = None
+ self._underlying_symbol = None
+ self._minimum_lot = None
+ self.discriminator = None
+ if name is not None:
+ self.name = name
+ if segment is not None:
+ self.segment = segment
+ if exchange is not None:
+ self.exchange = exchange
+ if expiry is not None:
+ self.expiry = expiry
+ if instrument_key is not None:
+ self.instrument_key = instrument_key
+ if exchange_token is not None:
+ self.exchange_token = exchange_token
+ if trading_symbol is not None:
+ self.trading_symbol = trading_symbol
+ if tick_size is not None:
+ self.tick_size = tick_size
+ if lot_size is not None:
+ self.lot_size = lot_size
+ if instrument_type is not None:
+ self.instrument_type = instrument_type
+ if freeze_quantity is not None:
+ self.freeze_quantity = freeze_quantity
+ if underlying_key is not None:
+ self.underlying_key = underlying_key
+ if underlying_type is not None:
+ self.underlying_type = underlying_type
+ if underlying_symbol is not None:
+ self.underlying_symbol = underlying_symbol
+ if minimum_lot is not None:
+ self.minimum_lot = minimum_lot
+
+ @property
+ def name(self):
+ """Gets the name of this ExpiredFutureData. # noqa: E501
+
+ Name of the instrument # noqa: E501
+
+ :return: The name of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this ExpiredFutureData.
+
+ Name of the instrument # noqa: E501
+
+ :param name: The name of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def segment(self):
+ """Gets the segment of this ExpiredFutureData. # noqa: E501
+
+ Segment of the instrument # noqa: E501
+
+ :return: The segment of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._segment
+
+ @segment.setter
+ def segment(self, segment):
+ """Sets the segment of this ExpiredFutureData.
+
+ Segment of the instrument # noqa: E501
+
+ :param segment: The segment of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._segment = segment
+
+ @property
+ def exchange(self):
+ """Gets the exchange of this ExpiredFutureData. # noqa: E501
+
+ Exchange of the instrument # noqa: E501
+
+ :return: The exchange of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._exchange
+
+ @exchange.setter
+ def exchange(self, exchange):
+ """Sets the exchange of this ExpiredFutureData.
+
+ Exchange of the instrument # noqa: E501
+
+ :param exchange: The exchange of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._exchange = exchange
+
+ @property
+ def expiry(self):
+ """Gets the expiry of this ExpiredFutureData. # noqa: E501
+
+ Expiry date of the instrument # noqa: E501
+
+ :return: The expiry of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._expiry
+
+ @expiry.setter
+ def expiry(self, expiry):
+ """Sets the expiry of this ExpiredFutureData.
+
+ Expiry date of the instrument # noqa: E501
+
+ :param expiry: The expiry of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._expiry = expiry
+
+ @property
+ def instrument_key(self):
+ """Gets the instrument_key of this ExpiredFutureData. # noqa: E501
+
+ Unique key identifying the instrument # noqa: E501
+
+ :return: The instrument_key of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._instrument_key
+
+ @instrument_key.setter
+ def instrument_key(self, instrument_key):
+ """Sets the instrument_key of this ExpiredFutureData.
+
+ Unique key identifying the instrument # noqa: E501
+
+ :param instrument_key: The instrument_key of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._instrument_key = instrument_key
+
+ @property
+ def exchange_token(self):
+ """Gets the exchange_token of this ExpiredFutureData. # noqa: E501
+
+ Token assigned by the exchange # noqa: E501
+
+ :return: The exchange_token of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._exchange_token
+
+ @exchange_token.setter
+ def exchange_token(self, exchange_token):
+ """Sets the exchange_token of this ExpiredFutureData.
+
+ Token assigned by the exchange # noqa: E501
+
+ :param exchange_token: The exchange_token of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._exchange_token = exchange_token
+
+ @property
+ def trading_symbol(self):
+ """Gets the trading_symbol of this ExpiredFutureData. # noqa: E501
+
+ Symbol used for trading # noqa: E501
+
+ :return: The trading_symbol of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._trading_symbol
+
+ @trading_symbol.setter
+ def trading_symbol(self, trading_symbol):
+ """Sets the trading_symbol of this ExpiredFutureData.
+
+ Symbol used for trading # noqa: E501
+
+ :param trading_symbol: The trading_symbol of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._trading_symbol = trading_symbol
+
+ @property
+ def tick_size(self):
+ """Gets the tick_size of this ExpiredFutureData. # noqa: E501
+
+ Minimum price movement # noqa: E501
+
+ :return: The tick_size of this ExpiredFutureData. # noqa: E501
+ :rtype: float
+ """
+ return self._tick_size
+
+ @tick_size.setter
+ def tick_size(self, tick_size):
+ """Sets the tick_size of this ExpiredFutureData.
+
+ Minimum price movement # noqa: E501
+
+ :param tick_size: The tick_size of this ExpiredFutureData. # noqa: E501
+ :type: float
+ """
+
+ self._tick_size = tick_size
+
+ @property
+ def lot_size(self):
+ """Gets the lot_size of this ExpiredFutureData. # noqa: E501
+
+ Number of units per lot # noqa: E501
+
+ :return: The lot_size of this ExpiredFutureData. # noqa: E501
+ :rtype: int
+ """
+ return self._lot_size
+
+ @lot_size.setter
+ def lot_size(self, lot_size):
+ """Sets the lot_size of this ExpiredFutureData.
+
+ Number of units per lot # noqa: E501
+
+ :param lot_size: The lot_size of this ExpiredFutureData. # noqa: E501
+ :type: int
+ """
+
+ self._lot_size = lot_size
+
+ @property
+ def instrument_type(self):
+ """Gets the instrument_type of this ExpiredFutureData. # noqa: E501
+
+ Type of the instrument # noqa: E501
+
+ :return: The instrument_type of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._instrument_type
+
+ @instrument_type.setter
+ def instrument_type(self, instrument_type):
+ """Sets the instrument_type of this ExpiredFutureData.
+
+ Type of the instrument # noqa: E501
+
+ :param instrument_type: The instrument_type of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._instrument_type = instrument_type
+
+ @property
+ def freeze_quantity(self):
+ """Gets the freeze_quantity of this ExpiredFutureData. # noqa: E501
+
+ Maximum allowed quantity # noqa: E501
+
+ :return: The freeze_quantity of this ExpiredFutureData. # noqa: E501
+ :rtype: float
+ """
+ return self._freeze_quantity
+
+ @freeze_quantity.setter
+ def freeze_quantity(self, freeze_quantity):
+ """Sets the freeze_quantity of this ExpiredFutureData.
+
+ Maximum allowed quantity # noqa: E501
+
+ :param freeze_quantity: The freeze_quantity of this ExpiredFutureData. # noqa: E501
+ :type: float
+ """
+
+ self._freeze_quantity = freeze_quantity
+
+ @property
+ def underlying_key(self):
+ """Gets the underlying_key of this ExpiredFutureData. # noqa: E501
+
+ Key of the underlying asset # noqa: E501
+
+ :return: The underlying_key of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._underlying_key
+
+ @underlying_key.setter
+ def underlying_key(self, underlying_key):
+ """Sets the underlying_key of this ExpiredFutureData.
+
+ Key of the underlying asset # noqa: E501
+
+ :param underlying_key: The underlying_key of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._underlying_key = underlying_key
+
+ @property
+ def underlying_type(self):
+ """Gets the underlying_type of this ExpiredFutureData. # noqa: E501
+
+ Type of the underlying asset # noqa: E501
+
+ :return: The underlying_type of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._underlying_type
+
+ @underlying_type.setter
+ def underlying_type(self, underlying_type):
+ """Sets the underlying_type of this ExpiredFutureData.
+
+ Type of the underlying asset # noqa: E501
+
+ :param underlying_type: The underlying_type of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._underlying_type = underlying_type
+
+ @property
+ def underlying_symbol(self):
+ """Gets the underlying_symbol of this ExpiredFutureData. # noqa: E501
+
+ Symbol of the underlying asset # noqa: E501
+
+ :return: The underlying_symbol of this ExpiredFutureData. # noqa: E501
+ :rtype: str
+ """
+ return self._underlying_symbol
+
+ @underlying_symbol.setter
+ def underlying_symbol(self, underlying_symbol):
+ """Sets the underlying_symbol of this ExpiredFutureData.
+
+ Symbol of the underlying asset # noqa: E501
+
+ :param underlying_symbol: The underlying_symbol of this ExpiredFutureData. # noqa: E501
+ :type: str
+ """
+
+ self._underlying_symbol = underlying_symbol
+
+ @property
+ def minimum_lot(self):
+ """Gets the minimum_lot of this ExpiredFutureData. # noqa: E501
+
+ Minimum lot size # noqa: E501
+
+ :return: The minimum_lot of this ExpiredFutureData. # noqa: E501
+ :rtype: int
+ """
+ return self._minimum_lot
+
+ @minimum_lot.setter
+ def minimum_lot(self, minimum_lot):
+ """Sets the minimum_lot of this ExpiredFutureData.
+
+ Minimum lot size # noqa: E501
+
+ :param minimum_lot: The minimum_lot of this ExpiredFutureData. # noqa: E501
+ :type: int
+ """
+
+ self._minimum_lot = minimum_lot
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ExpiredFutureData, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ExpiredFutureData):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/get_brokerage_response.py b/upstox_client/models/get_brokerage_response.py
index 1764877..f41628d 100644
--- a/upstox_client/models/get_brokerage_response.py
+++ b/upstox_client/models/get_brokerage_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_expired_futures_contract_response.py b/upstox_client/models/get_expired_futures_contract_response.py
new file mode 100644
index 0000000..a5f2b7b
--- /dev/null
+++ b/upstox_client/models/get_expired_futures_contract_response.py
@@ -0,0 +1,142 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GetExpiredFuturesContractResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'status': 'str',
+ 'data': 'list[ExpiredFutureData]'
+ }
+
+ attribute_map = {
+ 'status': 'status',
+ 'data': 'data'
+ }
+
+ def __init__(self, status=None, data=None): # noqa: E501
+ """GetExpiredFuturesContractResponse - a model defined in Swagger""" # noqa: E501
+ self._status = None
+ self._data = None
+ self.discriminator = None
+ if status is not None:
+ self.status = status
+ if data is not None:
+ self.data = data
+
+ @property
+ def status(self):
+ """Gets the status of this GetExpiredFuturesContractResponse. # noqa: E501
+
+
+ :return: The status of this GetExpiredFuturesContractResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """Sets the status of this GetExpiredFuturesContractResponse.
+
+
+ :param status: The status of this GetExpiredFuturesContractResponse. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["success", "error", "partial_success"] # noqa: E501
+ if status not in allowed_values:
+ raise ValueError(
+ "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
+ .format(status, allowed_values)
+ )
+
+ self._status = status
+
+ @property
+ def data(self):
+ """Gets the data of this GetExpiredFuturesContractResponse. # noqa: E501
+
+
+ :return: The data of this GetExpiredFuturesContractResponse. # noqa: E501
+ :rtype: list[ExpiredFutureData]
+ """
+ return self._data
+
+ @data.setter
+ def data(self, data):
+ """Sets the data of this GetExpiredFuturesContractResponse.
+
+
+ :param data: The data of this GetExpiredFuturesContractResponse. # noqa: E501
+ :type: list[ExpiredFutureData]
+ """
+
+ self._data = data
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GetExpiredFuturesContractResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GetExpiredFuturesContractResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/get_expiries.py b/upstox_client/models/get_expiries.py
new file mode 100644
index 0000000..64d10d3
--- /dev/null
+++ b/upstox_client/models/get_expiries.py
@@ -0,0 +1,142 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GetExpiriesResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'status': 'str',
+ 'data': 'list[str]'
+ }
+
+ attribute_map = {
+ 'status': 'status',
+ 'data': 'data'
+ }
+
+ def __init__(self, status=None, data=None): # noqa: E501
+ """GetExpiriesResponse - a model defined in Swagger""" # noqa: E501
+ self._status = None
+ self._data = None
+ self.discriminator = None
+ if status is not None:
+ self.status = status
+ if data is not None:
+ self.data = data
+
+ @property
+ def status(self):
+ """Gets the status of this GetExpiriesResponse. # noqa: E501
+
+
+ :return: The status of this GetExpiriesResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """Sets the status of this GetExpiriesResponse.
+
+
+ :param status: The status of this GetExpiriesResponse. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["success", "error", "partial_success"] # noqa: E501
+ if status not in allowed_values:
+ raise ValueError(
+ "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
+ .format(status, allowed_values)
+ )
+
+ self._status = status
+
+ @property
+ def data(self):
+ """Gets the data of this GetExpiriesResponse. # noqa: E501
+
+
+ :return: The data of this GetExpiriesResponse. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._data
+
+ @data.setter
+ def data(self, data):
+ """Sets the data of this GetExpiriesResponse.
+
+
+ :param data: The data of this GetExpiriesResponse. # noqa: E501
+ :type: list[str]
+ """
+
+ self._data = data
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GetExpiriesResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GetExpiriesResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/get_full_market_quote_response.py b/upstox_client/models/get_full_market_quote_response.py
index b4589f6..21e0ba4 100644
--- a/upstox_client/models/get_full_market_quote_response.py
+++ b/upstox_client/models/get_full_market_quote_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_historical_candle_response.py b/upstox_client/models/get_historical_candle_response.py
index 27f51d5..88bbdec 100644
--- a/upstox_client/models/get_historical_candle_response.py
+++ b/upstox_client/models/get_historical_candle_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_holdings_response.py b/upstox_client/models/get_holdings_response.py
index 117bf03..de179c2 100644
--- a/upstox_client/models/get_holdings_response.py
+++ b/upstox_client/models/get_holdings_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_intra_day_candle_response.py b/upstox_client/models/get_intra_day_candle_response.py
index 9ada3c2..d9b14f5 100644
--- a/upstox_client/models/get_intra_day_candle_response.py
+++ b/upstox_client/models/get_intra_day_candle_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_market_quote_last_traded_price_response.py b/upstox_client/models/get_market_quote_last_traded_price_response.py
index bb7881c..e22f310 100644
--- a/upstox_client/models/get_market_quote_last_traded_price_response.py
+++ b/upstox_client/models/get_market_quote_last_traded_price_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_market_quote_last_traded_price_response_v3.py b/upstox_client/models/get_market_quote_last_traded_price_response_v3.py
new file mode 100644
index 0000000..d2484ae
--- /dev/null
+++ b/upstox_client/models/get_market_quote_last_traded_price_response_v3.py
@@ -0,0 +1,142 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GetMarketQuoteLastTradedPriceResponseV3(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'status': 'str',
+ 'data': 'dict(str, MarketQuoteSymbolLtpV3)'
+ }
+
+ attribute_map = {
+ 'status': 'status',
+ 'data': 'data'
+ }
+
+ def __init__(self, status=None, data=None): # noqa: E501
+ """GetMarketQuoteLastTradedPriceResponseV3 - a model defined in Swagger""" # noqa: E501
+ self._status = None
+ self._data = None
+ self.discriminator = None
+ if status is not None:
+ self.status = status
+ if data is not None:
+ self.data = data
+
+ @property
+ def status(self):
+ """Gets the status of this GetMarketQuoteLastTradedPriceResponseV3. # noqa: E501
+
+
+ :return: The status of this GetMarketQuoteLastTradedPriceResponseV3. # noqa: E501
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """Sets the status of this GetMarketQuoteLastTradedPriceResponseV3.
+
+
+ :param status: The status of this GetMarketQuoteLastTradedPriceResponseV3. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["success", "error", "partial_success"] # noqa: E501
+ if status not in allowed_values:
+ raise ValueError(
+ "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
+ .format(status, allowed_values)
+ )
+
+ self._status = status
+
+ @property
+ def data(self):
+ """Gets the data of this GetMarketQuoteLastTradedPriceResponseV3. # noqa: E501
+
+
+ :return: The data of this GetMarketQuoteLastTradedPriceResponseV3. # noqa: E501
+ :rtype: dict(str, MarketQuoteSymbolLtpV3)
+ """
+ return self._data
+
+ @data.setter
+ def data(self, data):
+ """Sets the data of this GetMarketQuoteLastTradedPriceResponseV3.
+
+
+ :param data: The data of this GetMarketQuoteLastTradedPriceResponseV3. # noqa: E501
+ :type: dict(str, MarketQuoteSymbolLtpV3)
+ """
+
+ self._data = data
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GetMarketQuoteLastTradedPriceResponseV3, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GetMarketQuoteLastTradedPriceResponseV3):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/get_market_quote_ohlc_response.py b/upstox_client/models/get_market_quote_ohlc_response.py
index 20a6ad7..d866c29 100644
--- a/upstox_client/models/get_market_quote_ohlc_response.py
+++ b/upstox_client/models/get_market_quote_ohlc_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_market_quote_ohlc_response_v3.py b/upstox_client/models/get_market_quote_ohlc_response_v3.py
new file mode 100644
index 0000000..6336c19
--- /dev/null
+++ b/upstox_client/models/get_market_quote_ohlc_response_v3.py
@@ -0,0 +1,142 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GetMarketQuoteOHLCResponseV3(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'status': 'str',
+ 'data': 'dict(str, MarketQuoteOHLCV3)'
+ }
+
+ attribute_map = {
+ 'status': 'status',
+ 'data': 'data'
+ }
+
+ def __init__(self, status=None, data=None): # noqa: E501
+ """GetMarketQuoteOHLCResponseV3 - a model defined in Swagger""" # noqa: E501
+ self._status = None
+ self._data = None
+ self.discriminator = None
+ if status is not None:
+ self.status = status
+ if data is not None:
+ self.data = data
+
+ @property
+ def status(self):
+ """Gets the status of this GetMarketQuoteOHLCResponseV3. # noqa: E501
+
+
+ :return: The status of this GetMarketQuoteOHLCResponseV3. # noqa: E501
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """Sets the status of this GetMarketQuoteOHLCResponseV3.
+
+
+ :param status: The status of this GetMarketQuoteOHLCResponseV3. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["success", "error", "partial_success"] # noqa: E501
+ if status not in allowed_values:
+ raise ValueError(
+ "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
+ .format(status, allowed_values)
+ )
+
+ self._status = status
+
+ @property
+ def data(self):
+ """Gets the data of this GetMarketQuoteOHLCResponseV3. # noqa: E501
+
+
+ :return: The data of this GetMarketQuoteOHLCResponseV3. # noqa: E501
+ :rtype: dict(str, MarketQuoteOHLCV3)
+ """
+ return self._data
+
+ @data.setter
+ def data(self, data):
+ """Sets the data of this GetMarketQuoteOHLCResponseV3.
+
+
+ :param data: The data of this GetMarketQuoteOHLCResponseV3. # noqa: E501
+ :type: dict(str, MarketQuoteOHLCV3)
+ """
+
+ self._data = data
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GetMarketQuoteOHLCResponseV3, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GetMarketQuoteOHLCResponseV3):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/get_market_quote_option_greek_response_v3.py b/upstox_client/models/get_market_quote_option_greek_response_v3.py
new file mode 100644
index 0000000..47d3c48
--- /dev/null
+++ b/upstox_client/models/get_market_quote_option_greek_response_v3.py
@@ -0,0 +1,142 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GetMarketQuoteOptionGreekResponseV3(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'status': 'str',
+ 'data': 'dict(str, MarketQuoteOptionGreekV3)'
+ }
+
+ attribute_map = {
+ 'status': 'status',
+ 'data': 'data'
+ }
+
+ def __init__(self, status=None, data=None): # noqa: E501
+ """GetMarketQuoteOptionGreekResponseV3 - a model defined in Swagger""" # noqa: E501
+ self._status = None
+ self._data = None
+ self.discriminator = None
+ if status is not None:
+ self.status = status
+ if data is not None:
+ self.data = data
+
+ @property
+ def status(self):
+ """Gets the status of this GetMarketQuoteOptionGreekResponseV3. # noqa: E501
+
+
+ :return: The status of this GetMarketQuoteOptionGreekResponseV3. # noqa: E501
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """Sets the status of this GetMarketQuoteOptionGreekResponseV3.
+
+
+ :param status: The status of this GetMarketQuoteOptionGreekResponseV3. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["success", "error", "partial_success"] # noqa: E501
+ if status not in allowed_values:
+ raise ValueError(
+ "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
+ .format(status, allowed_values)
+ )
+
+ self._status = status
+
+ @property
+ def data(self):
+ """Gets the data of this GetMarketQuoteOptionGreekResponseV3. # noqa: E501
+
+
+ :return: The data of this GetMarketQuoteOptionGreekResponseV3. # noqa: E501
+ :rtype: dict(str, MarketQuoteOptionGreekV3)
+ """
+ return self._data
+
+ @data.setter
+ def data(self, data):
+ """Sets the data of this GetMarketQuoteOptionGreekResponseV3.
+
+
+ :param data: The data of this GetMarketQuoteOptionGreekResponseV3. # noqa: E501
+ :type: dict(str, MarketQuoteOptionGreekV3)
+ """
+
+ self._data = data
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GetMarketQuoteOptionGreekResponseV3, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GetMarketQuoteOptionGreekResponseV3):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/get_order_book_response.py b/upstox_client/models/get_order_book_response.py
index bd843c0..b17065e 100644
--- a/upstox_client/models/get_order_book_response.py
+++ b/upstox_client/models/get_order_book_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_order_response.py b/upstox_client/models/get_order_response.py
index a1816d0..5d0db77 100644
--- a/upstox_client/models/get_order_response.py
+++ b/upstox_client/models/get_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_position_response.py b/upstox_client/models/get_position_response.py
index 36eab93..6d36a15 100644
--- a/upstox_client/models/get_position_response.py
+++ b/upstox_client/models/get_position_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_profile_response.py b/upstox_client/models/get_profile_response.py
index 4fd2720..ccd590e 100644
--- a/upstox_client/models/get_profile_response.py
+++ b/upstox_client/models/get_profile_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_profit_and_loss_charges_response.py b/upstox_client/models/get_profit_and_loss_charges_response.py
index 40c110f..9a87974 100644
--- a/upstox_client/models/get_profit_and_loss_charges_response.py
+++ b/upstox_client/models/get_profit_and_loss_charges_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_trade_response.py b/upstox_client/models/get_trade_response.py
index ddccbcb..cbac4ac 100644
--- a/upstox_client/models/get_trade_response.py
+++ b/upstox_client/models/get_trade_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py b/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py
index d6f4f83..fc2b795 100644
--- a/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py
+++ b/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py b/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py
index 80d1067..8c2ca3d 100644
--- a/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py
+++ b/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/get_user_fund_margin_response.py b/upstox_client/models/get_user_fund_margin_response.py
index bc25c7a..df9a2ca 100644
--- a/upstox_client/models/get_user_fund_margin_response.py
+++ b/upstox_client/models/get_user_fund_margin_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/historical_candle_data.py b/upstox_client/models/historical_candle_data.py
index 6cebd43..a95258e 100644
--- a/upstox_client/models/historical_candle_data.py
+++ b/upstox_client/models/historical_candle_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/holdings_data.py b/upstox_client/models/holdings_data.py
index 860239b..9fb954b 100644
--- a/upstox_client/models/holdings_data.py
+++ b/upstox_client/models/holdings_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/intra_day_candle_data.py b/upstox_client/models/intra_day_candle_data.py
index 92bd538..028ef5d 100644
--- a/upstox_client/models/intra_day_candle_data.py
+++ b/upstox_client/models/intra_day_candle_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/logout_response.py b/upstox_client/models/logout_response.py
index 4920355..3c34f18 100644
--- a/upstox_client/models/logout_response.py
+++ b/upstox_client/models/logout_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/market_quote_ohlc.py b/upstox_client/models/market_quote_ohlc.py
index 2470f95..0e538e2 100644
--- a/upstox_client/models/market_quote_ohlc.py
+++ b/upstox_client/models/market_quote_ohlc.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/market_quote_ohlcv3.py b/upstox_client/models/market_quote_ohlcv3.py
new file mode 100644
index 0000000..863e706
--- /dev/null
+++ b/upstox_client/models/market_quote_ohlcv3.py
@@ -0,0 +1,190 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MarketQuoteOHLCV3(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'last_price': 'float',
+ 'instrument_token': 'str',
+ 'prev_ohlc': 'OhlcV3',
+ 'live_ohlc': 'OhlcV3'
+ }
+
+ attribute_map = {
+ 'last_price': 'last_price',
+ 'instrument_token': 'instrument_token',
+ 'prev_ohlc': 'prev_ohlc',
+ 'live_ohlc': 'live_ohlc'
+ }
+
+ def __init__(self, last_price=None, instrument_token=None, prev_ohlc=None, live_ohlc=None): # noqa: E501
+ """MarketQuoteOHLCV3 - a model defined in Swagger""" # noqa: E501
+ self._last_price = None
+ self._instrument_token = None
+ self._prev_ohlc = None
+ self._live_ohlc = None
+ self.discriminator = None
+ if last_price is not None:
+ self.last_price = last_price
+ if instrument_token is not None:
+ self.instrument_token = instrument_token
+ if prev_ohlc is not None:
+ self.prev_ohlc = prev_ohlc
+ if live_ohlc is not None:
+ self.live_ohlc = live_ohlc
+
+ @property
+ def last_price(self):
+ """Gets the last_price of this MarketQuoteOHLCV3. # noqa: E501
+
+ The last traded price of symbol # noqa: E501
+
+ :return: The last_price of this MarketQuoteOHLCV3. # noqa: E501
+ :rtype: float
+ """
+ return self._last_price
+
+ @last_price.setter
+ def last_price(self, last_price):
+ """Sets the last_price of this MarketQuoteOHLCV3.
+
+ The last traded price of symbol # noqa: E501
+
+ :param last_price: The last_price of this MarketQuoteOHLCV3. # noqa: E501
+ :type: float
+ """
+
+ self._last_price = last_price
+
+ @property
+ def instrument_token(self):
+ """Gets the instrument_token of this MarketQuoteOHLCV3. # noqa: E501
+
+
+ :return: The instrument_token of this MarketQuoteOHLCV3. # noqa: E501
+ :rtype: str
+ """
+ return self._instrument_token
+
+ @instrument_token.setter
+ def instrument_token(self, instrument_token):
+ """Sets the instrument_token of this MarketQuoteOHLCV3.
+
+
+ :param instrument_token: The instrument_token of this MarketQuoteOHLCV3. # noqa: E501
+ :type: str
+ """
+
+ self._instrument_token = instrument_token
+
+ @property
+ def prev_ohlc(self):
+ """Gets the prev_ohlc of this MarketQuoteOHLCV3. # noqa: E501
+
+
+ :return: The prev_ohlc of this MarketQuoteOHLCV3. # noqa: E501
+ :rtype: OhlcV3
+ """
+ return self._prev_ohlc
+
+ @prev_ohlc.setter
+ def prev_ohlc(self, prev_ohlc):
+ """Sets the prev_ohlc of this MarketQuoteOHLCV3.
+
+
+ :param prev_ohlc: The prev_ohlc of this MarketQuoteOHLCV3. # noqa: E501
+ :type: OhlcV3
+ """
+
+ self._prev_ohlc = prev_ohlc
+
+ @property
+ def live_ohlc(self):
+ """Gets the live_ohlc of this MarketQuoteOHLCV3. # noqa: E501
+
+
+ :return: The live_ohlc of this MarketQuoteOHLCV3. # noqa: E501
+ :rtype: OhlcV3
+ """
+ return self._live_ohlc
+
+ @live_ohlc.setter
+ def live_ohlc(self, live_ohlc):
+ """Sets the live_ohlc of this MarketQuoteOHLCV3.
+
+
+ :param live_ohlc: The live_ohlc of this MarketQuoteOHLCV3. # noqa: E501
+ :type: OhlcV3
+ """
+
+ self._live_ohlc = live_ohlc
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MarketQuoteOHLCV3, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MarketQuoteOHLCV3):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/market_quote_option_greek_v3.py b/upstox_client/models/market_quote_option_greek_v3.py
new file mode 100644
index 0000000..adc89ae
--- /dev/null
+++ b/upstox_client/models/market_quote_option_greek_v3.py
@@ -0,0 +1,370 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MarketQuoteOptionGreekV3(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'last_price': 'float',
+ 'instrument_token': 'str',
+ 'ltq': 'int',
+ 'volume': 'int',
+ 'cp': 'float',
+ 'iv': 'float',
+ 'vega': 'float',
+ 'gamma': 'float',
+ 'theta': 'float',
+ 'delta': 'float',
+ 'oi': 'float'
+ }
+
+ attribute_map = {
+ 'last_price': 'last_price',
+ 'instrument_token': 'instrument_token',
+ 'ltq': 'ltq',
+ 'volume': 'volume',
+ 'cp': 'cp',
+ 'iv': 'iv',
+ 'vega': 'vega',
+ 'gamma': 'gamma',
+ 'theta': 'theta',
+ 'delta': 'delta',
+ 'oi': 'oi'
+ }
+
+ def __init__(self, last_price=None, instrument_token=None, ltq=None, volume=None, cp=None, iv=None, vega=None, gamma=None, theta=None, delta=None, oi=None): # noqa: E501
+ """MarketQuoteOptionGreekV3 - a model defined in Swagger""" # noqa: E501
+ self._last_price = None
+ self._instrument_token = None
+ self._ltq = None
+ self._volume = None
+ self._cp = None
+ self._iv = None
+ self._vega = None
+ self._gamma = None
+ self._theta = None
+ self._delta = None
+ self._oi = None
+ self.discriminator = None
+ if last_price is not None:
+ self.last_price = last_price
+ if instrument_token is not None:
+ self.instrument_token = instrument_token
+ if ltq is not None:
+ self.ltq = ltq
+ if volume is not None:
+ self.volume = volume
+ if cp is not None:
+ self.cp = cp
+ if iv is not None:
+ self.iv = iv
+ if vega is not None:
+ self.vega = vega
+ if gamma is not None:
+ self.gamma = gamma
+ if theta is not None:
+ self.theta = theta
+ if delta is not None:
+ self.delta = delta
+ if oi is not None:
+ self.oi = oi
+
+ @property
+ def last_price(self):
+ """Gets the last_price of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The last_price of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._last_price
+
+ @last_price.setter
+ def last_price(self, last_price):
+ """Sets the last_price of this MarketQuoteOptionGreekV3.
+
+
+ :param last_price: The last_price of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._last_price = last_price
+
+ @property
+ def instrument_token(self):
+ """Gets the instrument_token of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The instrument_token of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: str
+ """
+ return self._instrument_token
+
+ @instrument_token.setter
+ def instrument_token(self, instrument_token):
+ """Sets the instrument_token of this MarketQuoteOptionGreekV3.
+
+
+ :param instrument_token: The instrument_token of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: str
+ """
+
+ self._instrument_token = instrument_token
+
+ @property
+ def ltq(self):
+ """Gets the ltq of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The ltq of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: int
+ """
+ return self._ltq
+
+ @ltq.setter
+ def ltq(self, ltq):
+ """Sets the ltq of this MarketQuoteOptionGreekV3.
+
+
+ :param ltq: The ltq of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: int
+ """
+
+ self._ltq = ltq
+
+ @property
+ def volume(self):
+ """Gets the volume of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The volume of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: int
+ """
+ return self._volume
+
+ @volume.setter
+ def volume(self, volume):
+ """Sets the volume of this MarketQuoteOptionGreekV3.
+
+
+ :param volume: The volume of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: int
+ """
+
+ self._volume = volume
+
+ @property
+ def cp(self):
+ """Gets the cp of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The cp of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._cp
+
+ @cp.setter
+ def cp(self, cp):
+ """Sets the cp of this MarketQuoteOptionGreekV3.
+
+
+ :param cp: The cp of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._cp = cp
+
+ @property
+ def iv(self):
+ """Gets the iv of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The iv of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._iv
+
+ @iv.setter
+ def iv(self, iv):
+ """Sets the iv of this MarketQuoteOptionGreekV3.
+
+
+ :param iv: The iv of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._iv = iv
+
+ @property
+ def vega(self):
+ """Gets the vega of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The vega of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._vega
+
+ @vega.setter
+ def vega(self, vega):
+ """Sets the vega of this MarketQuoteOptionGreekV3.
+
+
+ :param vega: The vega of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._vega = vega
+
+ @property
+ def gamma(self):
+ """Gets the gamma of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The gamma of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._gamma
+
+ @gamma.setter
+ def gamma(self, gamma):
+ """Sets the gamma of this MarketQuoteOptionGreekV3.
+
+
+ :param gamma: The gamma of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._gamma = gamma
+
+ @property
+ def theta(self):
+ """Gets the theta of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The theta of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._theta
+
+ @theta.setter
+ def theta(self, theta):
+ """Sets the theta of this MarketQuoteOptionGreekV3.
+
+
+ :param theta: The theta of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._theta = theta
+
+ @property
+ def delta(self):
+ """Gets the delta of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The delta of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._delta
+
+ @delta.setter
+ def delta(self, delta):
+ """Sets the delta of this MarketQuoteOptionGreekV3.
+
+
+ :param delta: The delta of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._delta = delta
+
+ @property
+ def oi(self):
+ """Gets the oi of this MarketQuoteOptionGreekV3. # noqa: E501
+
+
+ :return: The oi of this MarketQuoteOptionGreekV3. # noqa: E501
+ :rtype: float
+ """
+ return self._oi
+
+ @oi.setter
+ def oi(self, oi):
+ """Sets the oi of this MarketQuoteOptionGreekV3.
+
+
+ :param oi: The oi of this MarketQuoteOptionGreekV3. # noqa: E501
+ :type: float
+ """
+
+ self._oi = oi
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MarketQuoteOptionGreekV3, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MarketQuoteOptionGreekV3):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/market_quote_symbol.py b/upstox_client/models/market_quote_symbol.py
index 67fbd25..c8cf40e 100644
--- a/upstox_client/models/market_quote_symbol.py
+++ b/upstox_client/models/market_quote_symbol.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/market_quote_symbol_ltp.py b/upstox_client/models/market_quote_symbol_ltp.py
index e6e2e64..ff97216 100644
--- a/upstox_client/models/market_quote_symbol_ltp.py
+++ b/upstox_client/models/market_quote_symbol_ltp.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/market_quote_symbol_ltp_v3.py b/upstox_client/models/market_quote_symbol_ltp_v3.py
new file mode 100644
index 0000000..ee0651d
--- /dev/null
+++ b/upstox_client/models/market_quote_symbol_ltp_v3.py
@@ -0,0 +1,214 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MarketQuoteSymbolLtpV3(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'last_price': 'float',
+ 'instrument_token': 'str',
+ 'ltq': 'int',
+ 'volume': 'int',
+ 'cp': 'float'
+ }
+
+ attribute_map = {
+ 'last_price': 'last_price',
+ 'instrument_token': 'instrument_token',
+ 'ltq': 'ltq',
+ 'volume': 'volume',
+ 'cp': 'cp'
+ }
+
+ def __init__(self, last_price=None, instrument_token=None, ltq=None, volume=None, cp=None): # noqa: E501
+ """MarketQuoteSymbolLtpV3 - a model defined in Swagger""" # noqa: E501
+ self._last_price = None
+ self._instrument_token = None
+ self._ltq = None
+ self._volume = None
+ self._cp = None
+ self.discriminator = None
+ if last_price is not None:
+ self.last_price = last_price
+ if instrument_token is not None:
+ self.instrument_token = instrument_token
+ if ltq is not None:
+ self.ltq = ltq
+ if volume is not None:
+ self.volume = volume
+ if cp is not None:
+ self.cp = cp
+
+ @property
+ def last_price(self):
+ """Gets the last_price of this MarketQuoteSymbolLtpV3. # noqa: E501
+
+
+ :return: The last_price of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :rtype: float
+ """
+ return self._last_price
+
+ @last_price.setter
+ def last_price(self, last_price):
+ """Sets the last_price of this MarketQuoteSymbolLtpV3.
+
+
+ :param last_price: The last_price of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :type: float
+ """
+
+ self._last_price = last_price
+
+ @property
+ def instrument_token(self):
+ """Gets the instrument_token of this MarketQuoteSymbolLtpV3. # noqa: E501
+
+
+ :return: The instrument_token of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :rtype: str
+ """
+ return self._instrument_token
+
+ @instrument_token.setter
+ def instrument_token(self, instrument_token):
+ """Sets the instrument_token of this MarketQuoteSymbolLtpV3.
+
+
+ :param instrument_token: The instrument_token of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :type: str
+ """
+
+ self._instrument_token = instrument_token
+
+ @property
+ def ltq(self):
+ """Gets the ltq of this MarketQuoteSymbolLtpV3. # noqa: E501
+
+
+ :return: The ltq of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :rtype: int
+ """
+ return self._ltq
+
+ @ltq.setter
+ def ltq(self, ltq):
+ """Sets the ltq of this MarketQuoteSymbolLtpV3.
+
+
+ :param ltq: The ltq of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :type: int
+ """
+
+ self._ltq = ltq
+
+ @property
+ def volume(self):
+ """Gets the volume of this MarketQuoteSymbolLtpV3. # noqa: E501
+
+
+ :return: The volume of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :rtype: int
+ """
+ return self._volume
+
+ @volume.setter
+ def volume(self, volume):
+ """Sets the volume of this MarketQuoteSymbolLtpV3.
+
+
+ :param volume: The volume of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :type: int
+ """
+
+ self._volume = volume
+
+ @property
+ def cp(self):
+ """Gets the cp of this MarketQuoteSymbolLtpV3. # noqa: E501
+
+
+ :return: The cp of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :rtype: float
+ """
+ return self._cp
+
+ @cp.setter
+ def cp(self, cp):
+ """Sets the cp of this MarketQuoteSymbolLtpV3.
+
+
+ :param cp: The cp of this MarketQuoteSymbolLtpV3. # noqa: E501
+ :type: float
+ """
+
+ self._cp = cp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MarketQuoteSymbolLtpV3, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MarketQuoteSymbolLtpV3):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/modify_order_data.py b/upstox_client/models/modify_order_data.py
index 0d1474e..2daf710 100644
--- a/upstox_client/models/modify_order_data.py
+++ b/upstox_client/models/modify_order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/modify_order_request.py b/upstox_client/models/modify_order_request.py
index dc0d370..e2269ed 100644
--- a/upstox_client/models/modify_order_request.py
+++ b/upstox_client/models/modify_order_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/modify_order_response.py b/upstox_client/models/modify_order_response.py
index d3db824..6bcac6b 100644
--- a/upstox_client/models/modify_order_response.py
+++ b/upstox_client/models/modify_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/multi_order_request.py b/upstox_client/models/multi_order_request.py
index 948cdf2..cc8a17e 100644
--- a/upstox_client/models/multi_order_request.py
+++ b/upstox_client/models/multi_order_request.py
@@ -137,7 +137,7 @@ def product(self, product):
"""
if product is None:
raise ValueError("Invalid value for `product`, must not be `None`") # noqa: E501
- allowed_values = ["I", "D"] # noqa: E501
+ allowed_values = ["I", "D","MTF"] # noqa: E501
if product not in allowed_values:
raise ValueError(
"Invalid value for `product` ({0}), must be one of {1}" # noqa: E501
diff --git a/upstox_client/models/o_auth_client_exception.py b/upstox_client/models/o_auth_client_exception.py
index 3d7be92..3bf0d45 100644
--- a/upstox_client/models/o_auth_client_exception.py
+++ b/upstox_client/models/o_auth_client_exception.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/o_auth_client_exception_cause.py b/upstox_client/models/o_auth_client_exception_cause.py
index 62f89bd..6dca993 100644
--- a/upstox_client/models/o_auth_client_exception_cause.py
+++ b/upstox_client/models/o_auth_client_exception_cause.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/o_auth_client_exception_cause_stack_trace.py b/upstox_client/models/o_auth_client_exception_cause_stack_trace.py
index 4ef417c..19794a6 100644
--- a/upstox_client/models/o_auth_client_exception_cause_stack_trace.py
+++ b/upstox_client/models/o_auth_client_exception_cause_stack_trace.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/o_auth_client_exception_cause_suppressed.py b/upstox_client/models/o_auth_client_exception_cause_suppressed.py
index aac377f..2fbd2ae 100644
--- a/upstox_client/models/o_auth_client_exception_cause_suppressed.py
+++ b/upstox_client/models/o_auth_client_exception_cause_suppressed.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/ohlc.py b/upstox_client/models/ohlc.py
index 033d395..de7a018 100644
--- a/upstox_client/models/ohlc.py
+++ b/upstox_client/models/ohlc.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/ohlc_v3.py b/upstox_client/models/ohlc_v3.py
new file mode 100644
index 0000000..c3464e4
--- /dev/null
+++ b/upstox_client/models/ohlc_v3.py
@@ -0,0 +1,252 @@
+# coding: utf-8
+
+"""
+ OpenAPI definition
+
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
+
+ OpenAPI spec version: v0
+
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OhlcV3(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'open': 'float',
+ 'high': 'float',
+ 'low': 'float',
+ 'close': 'float',
+ 'volume': 'int',
+ 'ts': 'int'
+ }
+
+ attribute_map = {
+ 'open': 'open',
+ 'high': 'high',
+ 'low': 'low',
+ 'close': 'close',
+ 'volume': 'volume',
+ 'ts': 'ts'
+ }
+
+ def __init__(self, open=None, high=None, low=None, close=None, volume=None, ts=None): # noqa: E501
+ """OhlcV3 - a model defined in Swagger""" # noqa: E501
+ self._open = None
+ self._high = None
+ self._low = None
+ self._close = None
+ self._volume = None
+ self._ts = None
+ self.discriminator = None
+ if open is not None:
+ self.open = open
+ if high is not None:
+ self.high = high
+ if low is not None:
+ self.low = low
+ if close is not None:
+ self.close = close
+ if volume is not None:
+ self.volume = volume
+ if ts is not None:
+ self.ts = ts
+
+ @property
+ def open(self):
+ """Gets the open of this OhlcV3. # noqa: E501
+
+ The open price of the trading session # noqa: E501
+
+ :return: The open of this OhlcV3. # noqa: E501
+ :rtype: float
+ """
+ return self._open
+
+ @open.setter
+ def open(self, open):
+ """Sets the open of this OhlcV3.
+
+ The open price of the trading session # noqa: E501
+
+ :param open: The open of this OhlcV3. # noqa: E501
+ :type: float
+ """
+
+ self._open = open
+
+ @property
+ def high(self):
+ """Gets the high of this OhlcV3. # noqa: E501
+
+ The high price of the trading session # noqa: E501
+
+ :return: The high of this OhlcV3. # noqa: E501
+ :rtype: float
+ """
+ return self._high
+
+ @high.setter
+ def high(self, high):
+ """Sets the high of this OhlcV3.
+
+ The high price of the trading session # noqa: E501
+
+ :param high: The high of this OhlcV3. # noqa: E501
+ :type: float
+ """
+
+ self._high = high
+
+ @property
+ def low(self):
+ """Gets the low of this OhlcV3. # noqa: E501
+
+ The low price of the trading session # noqa: E501
+
+ :return: The low of this OhlcV3. # noqa: E501
+ :rtype: float
+ """
+ return self._low
+
+ @low.setter
+ def low(self, low):
+ """Sets the low of this OhlcV3.
+
+ The low price of the trading session # noqa: E501
+
+ :param low: The low of this OhlcV3. # noqa: E501
+ :type: float
+ """
+
+ self._low = low
+
+ @property
+ def close(self):
+ """Gets the close of this OhlcV3. # noqa: E501
+
+ The close price of the symbol from the previous session of trading # noqa: E501
+
+ :return: The close of this OhlcV3. # noqa: E501
+ :rtype: float
+ """
+ return self._close
+
+ @close.setter
+ def close(self, close):
+ """Sets the close of this OhlcV3.
+
+ The close price of the symbol from the previous session of trading # noqa: E501
+
+ :param close: The close of this OhlcV3. # noqa: E501
+ :type: float
+ """
+
+ self._close = close
+
+ @property
+ def volume(self):
+ """Gets the volume of this OhlcV3. # noqa: E501
+
+ The volume of the symbol traded in the session # noqa: E501
+
+ :return: The volume of this OhlcV3. # noqa: E501
+ :rtype: int
+ """
+ return self._volume
+
+ @volume.setter
+ def volume(self, volume):
+ """Sets the volume of this OhlcV3.
+
+ The volume of the symbol traded in the session # noqa: E501
+
+ :param volume: The volume of this OhlcV3. # noqa: E501
+ :type: int
+ """
+
+ self._volume = volume
+
+ @property
+ def ts(self):
+ """Gets the ts of this OhlcV3. # noqa: E501
+
+ Starting timestamp of candle # noqa: E501
+
+ :return: The ts of this OhlcV3. # noqa: E501
+ :rtype: int
+ """
+ return self._ts
+
+ @ts.setter
+ def ts(self, ts):
+ """Sets the ts of this OhlcV3.
+
+ Starting timestamp of candle # noqa: E501
+
+ :param ts: The ts of this OhlcV3. # noqa: E501
+ :type: int
+ """
+
+ self._ts = ts
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OhlcV3, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OhlcV3):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/upstox_client/models/order_book_data.py b/upstox_client/models/order_book_data.py
index c272006..d5817e5 100644
--- a/upstox_client/models/order_book_data.py
+++ b/upstox_client/models/order_book_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/order_data.py b/upstox_client/models/order_data.py
index 61f68d5..3417446 100644
--- a/upstox_client/models/order_data.py
+++ b/upstox_client/models/order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/other_taxes.py b/upstox_client/models/other_taxes.py
index 8881319..dbe9a10 100644
--- a/upstox_client/models/other_taxes.py
+++ b/upstox_client/models/other_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/place_order_data.py b/upstox_client/models/place_order_data.py
index 5220d9e..659559d 100644
--- a/upstox_client/models/place_order_data.py
+++ b/upstox_client/models/place_order_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/place_order_request.py b/upstox_client/models/place_order_request.py
index c7f3643..adc9977 100644
--- a/upstox_client/models/place_order_request.py
+++ b/upstox_client/models/place_order_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/place_order_response.py b/upstox_client/models/place_order_response.py
index d2e3f21..f25d5cd 100644
--- a/upstox_client/models/place_order_response.py
+++ b/upstox_client/models/place_order_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/place_order_v3_request.py b/upstox_client/models/place_order_v3_request.py
index 3062b10..36e8857 100644
--- a/upstox_client/models/place_order_v3_request.py
+++ b/upstox_client/models/place_order_v3_request.py
@@ -134,7 +134,7 @@ def product(self, product):
"""
if product is None:
raise ValueError("Invalid value for `product`, must not be `None`") # noqa: E501
- allowed_values = ["I", "D"] # noqa: E501
+ allowed_values = ["I", "D", "MTF"] # noqa: E501
if product not in allowed_values:
raise ValueError(
"Invalid value for `product` ({0}), must be one of {1}" # noqa: E501
diff --git a/upstox_client/models/position_data.py b/upstox_client/models/position_data.py
index f40c711..8b5896f 100644
--- a/upstox_client/models/position_data.py
+++ b/upstox_client/models/position_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/problem.py b/upstox_client/models/problem.py
index e795362..281e5d3 100644
--- a/upstox_client/models/problem.py
+++ b/upstox_client/models/problem.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/profile_data.py b/upstox_client/models/profile_data.py
index 35dc2cc..2e2aa7a 100644
--- a/upstox_client/models/profile_data.py
+++ b/upstox_client/models/profile_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/profit_and_loss_charges_data.py b/upstox_client/models/profit_and_loss_charges_data.py
index 054846c..2bd3e36 100644
--- a/upstox_client/models/profit_and_loss_charges_data.py
+++ b/upstox_client/models/profit_and_loss_charges_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/profit_and_loss_charges_taxes.py b/upstox_client/models/profit_and_loss_charges_taxes.py
index f52af40..0f2fe82 100644
--- a/upstox_client/models/profit_and_loss_charges_taxes.py
+++ b/upstox_client/models/profit_and_loss_charges_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/profit_and_loss_charges_wrapper_data.py b/upstox_client/models/profit_and_loss_charges_wrapper_data.py
index 3b24f86..8b2b50d 100644
--- a/upstox_client/models/profit_and_loss_charges_wrapper_data.py
+++ b/upstox_client/models/profit_and_loss_charges_wrapper_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/profit_and_loss_meta_data.py b/upstox_client/models/profit_and_loss_meta_data.py
index 3e6b91d..ffe21c9 100644
--- a/upstox_client/models/profit_and_loss_meta_data.py
+++ b/upstox_client/models/profit_and_loss_meta_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/profit_and_loss_meta_data_wrapper.py b/upstox_client/models/profit_and_loss_meta_data_wrapper.py
index fa5b290..db40853 100644
--- a/upstox_client/models/profit_and_loss_meta_data_wrapper.py
+++ b/upstox_client/models/profit_and_loss_meta_data_wrapper.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/profit_and_loss_other_charges_taxes.py b/upstox_client/models/profit_and_loss_other_charges_taxes.py
index 5b0400c..ddea39e 100644
--- a/upstox_client/models/profit_and_loss_other_charges_taxes.py
+++ b/upstox_client/models/profit_and_loss_other_charges_taxes.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/token_request.py b/upstox_client/models/token_request.py
index e4b51f2..b2d6776 100644
--- a/upstox_client/models/token_request.py
+++ b/upstox_client/models/token_request.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/token_response.py b/upstox_client/models/token_response.py
index 9b38659..25c7446 100644
--- a/upstox_client/models/token_response.py
+++ b/upstox_client/models/token_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/trade_data.py b/upstox_client/models/trade_data.py
index 7a206d0..4b54c96 100644
--- a/upstox_client/models/trade_data.py
+++ b/upstox_client/models/trade_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/trade_wise_meta_data.py b/upstox_client/models/trade_wise_meta_data.py
index 5a7e851..ca6f072 100644
--- a/upstox_client/models/trade_wise_meta_data.py
+++ b/upstox_client/models/trade_wise_meta_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/trade_wise_profit_and_loss_data.py b/upstox_client/models/trade_wise_profit_and_loss_data.py
index 5f09278..ceada78 100644
--- a/upstox_client/models/trade_wise_profit_and_loss_data.py
+++ b/upstox_client/models/trade_wise_profit_and_loss_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/user_fund_margin_data.py b/upstox_client/models/user_fund_margin_data.py
index 237d74a..31f721d 100644
--- a/upstox_client/models/user_fund_margin_data.py
+++ b/upstox_client/models/user_fund_margin_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/websocket_auth_redirect_response.py b/upstox_client/models/websocket_auth_redirect_response.py
index 6c786e9..65aff7c 100644
--- a/upstox_client/models/websocket_auth_redirect_response.py
+++ b/upstox_client/models/websocket_auth_redirect_response.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/models/websocket_auth_redirect_response_data.py b/upstox_client/models/websocket_auth_redirect_response_data.py
index 1e2d946..586b597 100644
--- a/upstox_client/models/websocket_auth_redirect_response_data.py
+++ b/upstox_client/models/websocket_auth_redirect_response_data.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2
diff --git a/upstox_client/rest.py b/upstox_client/rest.py
index 713ec7d..753c2d2 100644
--- a/upstox_client/rest.py
+++ b/upstox_client/rest.py
@@ -3,7 +3,7 @@
"""
Upstox Developer API
- Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
+ Build your App on the Upstox platform  # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to account.upstox.com/developer/apps. If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
OpenAPI spec version: v2