### Options Quote Data Example Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD Retrieves quote information for an options contract on the NSE FO exchange. This example shows a contract with zero trading activity. ```json [ { "exchange_token": "65500", "display_symbol": "ABCAPITAL25JUN250PE", "exchange": "nse_fo", "lstup_time": "Mon Jan 01 1900 05:21:10 GMT+0521 (India Standard Time)", "ltp": "0", "last_traded_quantity": "0", "total_buy": "0", "total_sell": "0", "last_volume": "0", "avg_cost": "", "open_int": "0", "change": "0", "per_change": "0", "low_price_range": "37.5", "high_price_range": "77.5", "year_high": "0", "year_low": "0", "ohlc": { "open": "0", "high": "0", "low": "0", "close": "0" }, "depth": { "buy": [ { "price": "0", "quantity": "0", "orders": "0" }, { "price": "0", "quantity": "0", "orders": "0" }, { "price": "0", "quantity": "0", "orders": "0" }, { "price": "0", "quantity": "0", "orders": "0" }, { "price": "0", "quantity": "0", "orders": "0" } ], "sell": [ { "price": "0", "quantity": "0", "orders": "0" }, { "price": "0", "quantity": "0", "orders": "0" }, { "price": "0", "quantity": "0", "orders": "0" }, { "price": "0", "quantity": "0", "orders": "0" } ] } } ] ``` -------------------------------- ### POSTLimits Response Example Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD#intro This JSON object represents the response from the POSTLimits endpoint, detailing various financial limits and their current values. ```json { "AddPreExpMrgnMisPrsnt": "0.00", "CurExpMrgnNrmlPrsnt": "0.00", "CurPremiumNrmlPrsnt": "0.00", "RmsPayOutAmt": "0.00", "AdhocMargin": "0.00", "MrgnScrpBsktCncPrsnt": "0.00", "FoPremiumMisPrsnt": "0.00", "MrgnVarNrmlPrsnt": "0.00", "AmountUtilizedPrsnt": "0.00", "SplMrgnMisPrsnt": "0.00", "CurSpanMrgnNrmlPrsnt": "0.00", "SlbmVarElm": "0.00", "AuxRmsCollateral": "0.00", "FoUnRlsMtomPrsnt": "0.00", "AuxNotionalCash": "0.00", "AuxAdhocMargin": "0.00", "DaneLimit": "0.00", "RmsMutualFundAmt": "0.00", "RmsPayInAmt": "0.00", "CurPremiumMisPrsnt": "0.00", "SlbmLimit": "0.00", "MarginWarningPrcntPrsnt": "0.00", "MrgnVarMisPrsnt": "0.00", "CurRlsMtomPrsnt": "0.00", "ExposureMarginPrsnt": "0.00", "NfospreadBenefit": "0.00", "stCode": 200, "CollateralValue": "0.00", "AddMrgnNrmlPrsnt": "0.00", "RmsCollateralMult": "0.00", "CncMrgnVarPrsnt": "0.00", "BoardLotLimit": "0", "ComRlsMtomPrsnt": "0.00", "MarginVarPrsnt": "0.00", "DeliveryMarginPresent": "0.00", "RmsCollateral": "0.00", "ComExpsrMrgnMisPrsnt": "0.00", "CollateralValueMult": "0.00", "FoSpanrgnMisPrsnt": "0.00", "Category": "NA", "CurUnRlsMtomPrsnt": "0.00", "SpanMarginPrsnt": "0.00", "CncSellcrdPresent": "0.00", "Collateral": "0.00", "MrgnScrpBsktNrmlPrsnt": "0.00", "UnrealizedMtomPrsnt": "0.00", "MrgnScrpBsktMisPrsnt": "0.00", "RealizedMtomPrsnt": "0.00", "MtomWarningPrcntPrsnt": "0.00", "ComSpanMrgnNrmlPrsnt": "0.00", "DeliveryMrgnNrmlPrsnt": "0.00", "AdhocLimitMult": "0.00", "FoPremiumNrmlPrsnt": "0.00", "SpecialMarginPrsnt": "0.00", "SplMrgnNrmlPrsnt": "0.00", "MtomSquareOffWarningPrcntPrsnt": "0.00", "MarginUsedPrsnt": "0.00", "FoRlsMtomPrsnt": "0.00", "stat": "Ok", "NationalCashMult": "0.00", "FoSpanrgnNrmlPrsnt": "0.00", "AmtUntilizedPrsnt": "0.00", "PremiumPrsnt": "0.00", "AddMrgnMisPrsnt": "0.00", "DeliveryMrgnMisPrsnt": "0.00", "SlbmMtom": "0.00", "CdsSpreadBenefit": "0.00", "ComExpsrMrgnNrmlPrsnt": "0.00", "FoExpMrgnNrmlPrsnt": "0.00", "BrokeragePrsnt": "0.00", "CashUnRlsMtomPrsnt": "0.00", "AddPreExpMrgnNrmlPrsnt": "0.00", "CurSpanMrgnMisPrsnt": "0.00", "ComUnRlsMtomPrsnt": "0.00", "CashRlsMtomPrsnt": "0.00", "NotionalCash": "0.00", "CurExpMrgnMisPrsnt": "0.00", "MarginUsed": "0.00", "LendingFee": "0.00", "Net": "0.00", "TenderMrgnMisPrsnt": "0.00", "FoExpMrgnMisPrsnt": "0.00", "TenderMrgnNrmlPrsnt": "0.00", "MarginScripBasketPrsnt": "0.00", "ComSpanMrgnMisPrsnt": "0.00" } ``` -------------------------------- ### Example Access Token Response Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD#intro This is a sample JSON response when successfully generating an access token. It includes the token itself, its type, scope, and expiration time. ```json { "access_token": "eyJ4NXQiOiJNbUprWWpVMlpETmpNelpqTURBM05UZ3pObUUxTm1NNU1qTXpNR1kyWm1OaFpHUTFNakE1TmciLCJraWQiOiJaalJqTUdRek9URmhPV1EwTm1WallXWTNZemRtWkdOa1pUUmpaVEUxTlRnMFkyWTBZVEUyTlRCV1lURTRNak5tWkRVeE5qZ3pPVGM0TWpGbFkyWXpOUV9SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJjbGllbnQxNjcxIiwiYXV0IjoiQVBQTElDQVRJT04iLCJhdWQiOiIxbUtrVVhxbEh1NmU0TDQ0NHpGaW5HN2M2dHNhIiwibmJmIjoxNzQyMzc2ODg5LCJhenAiOiIxbUtrVVhxbEh1NmU0TDQ0NHpGaW5HN2M2dHNhIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cHM6XC9cL25hcGkua290YWtzZWN1cml0aWVzLmNvbTo0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjI2MDYzNzY4ODksImlhdCI6MTc0MjM3Njg4OSwianRpIjoiYWY5Nzc0ZTItM2I2Ny00MDA0LThlMTMtMzQ0NjJlYWJhNjM1In0.Ez9KbNkmWktM0C2VuRq5pmvbW13yOPmsFR-Ss3n4EWuhztXCmes27JHTIT0HMzlW7xmxmdlkvBJSiRyMGIyvD2IfTRGf70-PALH43BsUJtAvwREPzQt9Nw9P523m0LnWVA-_5UM5whsZgJ_sFD0e0Uan6BSj5xPZ2cZI4jUv3Yj_vRDll1Ff4GfGDKshpr9APwN9G_oIVv0gvxgAlNHvpHiRmhvIinM_5YmAMO5TdynyuH-cK3yaS8cur9TzFFD8Pm9XBgm4uYB6jP_R97hYsQV0f0UrymeQHryWyBp_GIaPN_-cfTsPqLAHMhSEg2z60YzpGA3xt_j8fAeMznQEgQ", "scope": "default", "token_type": "Bearer", "expires_in": 864000000 } ``` -------------------------------- ### Get User Limits Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD#intro Use this endpoint to retrieve user-specific trading limits. Ensure all required headers and the jData parameter are correctly formatted. ```shell curl --location 'https://gw-napi.kotaksecurities.com/Orders/2.0/quick/user/limits' \ --header 'accept: application/json' \ --header 'Sid: b3ebb6af-7205-43e9-8513-189472393cab' \ --header 'Auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJUcmFkZSJdLCJleHAiOjE2NTU4MDY1MTEsImp0aSI6ImQ5NTliNDY3LTY0NjEtNGYyNC05MjRlLTA4Zjc1ZjZiZDU3MiIsImlhdCI6MTY1NTgwMjkxMSwiaXNzIjoibG9naW4tc2VydmljZSIsInN1YiI6IlRFU1RZQTI0IiwiZmV0Y2hjYWNoaW5ncnVsZSI6MCwiY2F0ZWdvcmlzYXRpb24iOiIifQ.YEnhDlz1PI_LWSaq8twJDuGF02sotp88GQgcpmtUymdQBB2vSrqGAZ1XKA9h1OK1WIfx7OUcF8JoKJKNuSFqxA3WjSzpKaoZ8LKGfogJnPjJcKPcpf-VlDOvSOGI4H2bSW0uDGMNdWAHWmj6U1wG10ibfE__-LlV2alTvtFD4T1x5AhQwAshAmbbh90wltjPi69AI0gf_P04IhGBciqTIVb886tha-10e1VtXKwCrhrafZAeUep-t-VlrhDEkJLEStZShUY0bXz5vA_V8vDPWMLf3Ag8KLND75Jw9g8_4fDqoJSDk7LRj9AX0DvOrnc9juEOTfkDCioOaHQnmgjRrw' \ --header 'neo-fin-key: f784e198-bda7-439e-a1a6-177f432460b9' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer eyJ4NXQiOiJNbUprWWpVMlpETmpNelpqTURBM05UZ3pObUUxTm1NNU1qTXpNR1kyWm1OaFpHUTFNakE1TmciLCJraWQiOiJaalJqTUdRek9URmhPV1EwTm1WallXWTNZemRtWkdOa1pUUmpaVEUxTlRnMFkyWTBZVEUyTlRCaVlURTRNak5tWkRVeE5qZ3pPVGM0TWpGbFkyWXpOUV9SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJrb3Rha2FkbWluIiwiYXV0IjoiQVBQTElDQVRJT04iLCJhdWQiOiJwNm5hYUt6MURPNDdSVnZta2I2MFhaYlhjNndhIiwibmJmIjoxNjU1ODAzNDMwLCJhenAiOiJwNm5hYUt6MURPNDdSVnZta2I2MFhaYlhjNndhIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cHM6XC9cL2FwaW0ua290YWtzZWN1cml0aWVzLm9ubGluZTo0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjE2OTE4MDM0MzAsImlhdCI6MTY1NTgwMzQzMCwianRpIjoiN2IwYjdhODYtMWJkNy00ZDc0LTkyMmItMGJiZTY5MjllYzIxIn0.GSs2-u2IJGxV4zA5R0vqBw9U3Mzj5lhtnyG_sWMND3zl8oufxEwigz1oMAS_COlYyI-DxqKFVvlCPMik0mz9PDH2N9ZCR1QDObZDg0sqefEMQzskGDxRFfvNs541nhZ9emhqphWdW0oIMOiWkRUt5jaXa0VW5JtOgs9sNY64OpYkUMcKV6UdOZPYdmUhSFJiI_ZVj91jg70U3252OXQ10smY_6HgCjDKCMTQKjX1fURp_wa8UZZ6jCagCN7iG5bRsVH-Py2fhVw1R0hj86q5bqq9roIEmvcUQjl44oNQuRXzeTaSgvJLEv8UZWxxtf9c4QMDebQKOqIl15E_t96oFQ' \ --data-urlencode 'jData={"seg":"CASH","exch":"NSE","prod":"ALL"}' ``` -------------------------------- ### POSTLimits Response Example Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD#intro This JSON object represents the response from the POSTLimits endpoint, detailing various margin, collateral, and limit values for a client. It includes status codes and category information. ```json { "AddPreExpMrgnMisPrsnt": "0.00", "CurExpMrgnNrmlPrsnt": "0.00", "CurPremiumNrmlPrsnt": "0.00", "RmsPayOutAmt": "0.00", "AdhocMargin": "0.00", "MrgnScrpBsktCncPrsnt": "0.00", "FoPremiumMisPrsnt": "0.00", "MrgnVarNrmlPrsnt": "0.00", "AmountUtilizedPrsnt": "0.00", "SplMrgnMisPrsnt": "0.00", "CurSpanMrgnNrmlPrsnt": "0.00", "AuxRmsCollateral": "0.00", "FoUnRlsMtomPrsnt": "0.00", "AuxNotionalCash": "0.00", "AuxAdhocMargin": "0.00", "DaneLimit": "0.00", "RmsPayInAmt": "0.00", "CurPremiumMisPrsnt": "0.00", "MarginWarningPrcntPrsnt": "0.00", "MrgnVarMisPrsnt": "0.00", "CurRlsMtomPrsnt": "0.00", "ExposureMarginPrsnt": "0.00", "NfospreadBenefit": "0.00", "stCode": 200, "CollateralValue": "0.00", "AddMrgnNrmlPrsnt": "0.00", "RmsCollateralMult": "0.00", "CncMrgnVarPrsnt": "0.00", "BoardLotLimit": "0", "ComRlsMtomPrsnt": "0.00", "MarginVarPrsnt": "0.00", "DeliveryMarginPresent": "0.00", "RmsCollateral": "0.00", "ComExpsrMrgnMisPrsnt": "0.00", "CollateralValueMult": "0.00", "FoSpanrgnMisPrsnt": "0.00", "Category": "CLIENT", "CurUnRlsMtomPrsnt": "0.00", "SpanMarginPrsnt": "0.00", "CncSellcrdPresent": "0.00", "Collateral": "0.00", "MrgnScrpBsktNrmlPrsnt": "0.00", "UnrealizedMtomPrsnt": "0.00", "MrgnScrpBsktMisPrsnt": "0.00", "RealizedMtomPrsnt": "0.00", "MtomWarningPrcntPrsnt": "0.00", "ComSpanMrgnNrmlPrsnt": "0.00", "DeliveryMrgnNrmlPrsnt": "0.00", "AdhocLimitMult": "0.00", "FoPremiumNrmlPrsnt": "0.00", "SpecialMarginPrsnt": "0.00", "SplMrgnNrmlPrsnt": "0.00", "MtomSquareOffWarningPrcntPrsnt": "0.00", "MarginUsedPrsnt": "0.00", "FoRlsMtomPrsnt": "0.00", "stat": "Ok", "NationalCashMult": "0.00", "FoSpanrgnNrmlPrsnt": "0.00", "AmtUntilizedPrsnt": "0.00", "PremiumPrsnt": "0.00", "AddMrgnMisPrsnt": "0.00", "DeliveryMrgnMisPrsnt": "0.00", "CdsSpreadBenefit": "0.00", "ComExpsrMrgnNrmlPrsnt": "0.00", "FoExpMrgnNrmlPrsnt": "0.00", "BrokeragePrsnt": "0.00", "CashUnRlsMtomPrsnt": "0.00", "AddPreExpMrgnNrmlPrsnt": "0.00", "CurSpanMrgnMisPrsnt": "0.00", "ComUnRlsMtomPrsnt": "0.00", "CashRlsMtomPrsnt": "0.00", "NotionalCash": "0.00", "CurExpMrgnMisPrsnt": "0.00", "MarginUsed": "0.00", "Net": "0.00", "TenderMrgnMisPrsnt": "0.00", "FoExpMrgnMisPrsnt": "0.00", "TenderMrgnNrmlPrsnt": "0.00", "MarginScripBasketPrsnt": "0.00", "ComSpanMrgnMisPrsnt": "0.00" } ``` -------------------------------- ### Stock Quote Data Example Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD Retrieves detailed quote information for stocks listed on NSE CM and BSE CM exchanges. Includes current price, volume, order book depth, and historical price ranges. ```json [ { "exchange_token": "2885", "display_symbol": "RELIANCE-EQ", "exchange": "nse_cm", "lstup_time": "1743652296", "ltp": "1244.1500", "last_traded_quantity": "22", "total_buy": "441407", "total_sell": "330754", "last_volume": "625712", "avg_cost": "1239.8500", "open_int": "0", "change": "-7.0000", "per_change": "-0.5600", "low_price_range": "1126.0500", "high_price_range": "1376.2500", "year_high": "3217.6", "year_low": "1156", "ohlc": { "open": "1233.0500", "high": "1245.0000", "low": "1233.0500", "close": "1251.1500" }, "depth": { "buy": [ { "price": "1244.0500", "quantity": "96", "orders": "1" }, { "price": "1244.0000", "quantity": "1440", "orders": "28" }, { "price": "1243.9500", "quantity": "74", "orders": "5" }, { "price": "1243.9000", "quantity": "604", "orders": "2" }, { "price": "1243.8500", "quantity": "4", "orders": "1" } ], "sell": [ { "price": "1244.1500", "quantity": "596", "orders": "3" }, { "price": "1244.2000", "quantity": "205", "orders": "2" }, { "price": "1244.2500", "quantity": "159", "orders": "1" }, { "price": "1244.3000", "quantity": "530", "orders": "1" }, { "price": "1244.4000", "quantity": "95", "orders": "2" } ] } }, { "exchange_token": "532174", "display_symbol": "ICICIBANK-A", "exchange": "bse_cm", "lstup_time": "1743652296", "ltp": "1325.2500", "last_traded_quantity": "1", "total_buy": "78511", "total_sell": "649789", "last_volume": "3432", "avg_cost": "1321.7900", "open_int": "0", "change": "-6.2000", "per_change": "-0.4700", "low_price_range": "1198.3500", "high_price_range": "1464.5500", "year_high": "1372.5", "year_low": "1048.35", "ohlc": { "open": "1306.5500", "high": "1328.0000", "low": "1306.5500", "close": "1331.4500" }, "depth": { "buy": [ { "price": "1324.8500", "quantity": "51", "orders": "3" }, { "price": "1324.8000", "quantity": "156", "orders": "3" }, { "price": "1324.7500", "quantity": "47", "orders": "3" }, { "price": "1324.7000", "quantity": "162", "orders": "6" }, { "price": "1324.6500", "quantity": "87", "orders": "4" } ], "sell": [ { "price": "1325.8500", "quantity": "7", "orders": "1" }, { "price": "1325.9000", "quantity": "33", "orders": "1" }, { "price": "1326.0000", "quantity": "116", "orders": "3" }, { "price": "1326.0500", "quantity": "15", "orders": "1" }, { "price": "1326.1000", "quantity": "30", "orders": "2" } ] } } ] ``` -------------------------------- ### Get Quotes using cURL Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD Use this cURL command to fetch stock quotes for specified neoSymbols and quote types. Ensure your Authorization header is correctly set. ```curl curl --location 'https://gw-napi.kotaksecurities.com/apim/quotes/1.0/quotes/neosymbol/nse_cm%7C2885%2Cbse_cm%7C532174%2Cnse_fo%7C65500%2Cbse_cm%7C540376/all' \ --header 'accept: application/json' \ --header 'Authorization: Bearer eyJ4NXQiOiJNbUprWWpVMlpETmpNelpqTURBM05UZ3pObUUxTm1NNU1qTXpNR1kyWm1OaFpHUTFNakE1TmciLCJraWQiOiJaalJqTUdRek9URmhPV1EwTm1WallXWTNZemRtWkdOa1pUUmpaVEUxTlRnMFkyWTBZVEUyTlRCaVlURTRNak5tWkRVeE5qZ3pPVGM0TWpGbFkyWXpOUV9SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJjbGllbnQxNjcxIiwiYXV0IjoiQVBQTElDQVRJT04iLCJhdWQiOiIxbUtrVVhxbEh1NmU0TDQ0NHpGaW5HN2M2dHNhIiwibmJmIjoxNzQzNjUyMjY0LCJhenAiOiIxbUtrVVhxbEh1NmU0TDQ0NHpGaW5HN2M2dHNhIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cHM6XC9cL25hcGkua290YWtzZWN1cml0aWVzLmNvbTo0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjI2MDc2NTIyNjQsImlhdCI6MTc0MzY1MjI2NCwianRpIjoiNDAzZTVkZjUtYjk1MS00MmMwLTlmZWMtODU5MzJmYWExYmY3In0.E1uSf0v4p4e11K7gZCLdo22oDrmJt5A4-ZU9feNHlCIDGkzi1vjBjDj_RLEEgW10YCqtgkTpewtNL89oCrpedoKhIPSTjwQXQ9jTRJNO0JLAdxyHnHd6nswd9iIaMF7OuCGOu4A2IpI4iDHslWW_B2auDd44VkiZcqF-ypCVL7cl7PZKttyvBvQVDV4iY3IVCHCtxqEIVaMsz8l4d6vgMWe2wf-ytLJFEuoAPj2DlFr8i0tqR6ctLMzrD45IGKaIv6esAFS9zFX4uQSkgNhLYxmQ_uAyq2x3-Hlv03KlBDy6OCYg_zZSrQUOte8d9aQSyoqQreOElfF5vgC5eMfbWQ' ``` -------------------------------- ### POST Access Token Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD#intro Generates an access token by providing client credentials. This is the initial step for authenticating API keys. ```APIDOC ## POST Access Token ### Description Generates an access token using client credentials. This token is required for subsequent API authentication. ### Method POST ### Endpoint https://napi.kotaksecurities.com/oauth2/token ### Parameters #### Query Parameters - **grant_type** (string) - Required - Must be 'client_credentials'. #### Headers - **Authorization** (string) - Required - Base64 encoded "consumer-key:consumer-secret". ### Request Example ```curl curl --location 'https://napi.kotaksecurities.com/oauth2/token' \ --header 'Authorization: Basic YOUR_BASE64_ENCODED_CREDENTIALS' \ --data-urlencode 'grant_type=client_credentials' ``` ### Response #### Success Response (200 OK) - **access_token** (string) - The generated access token. - **scope** (string) - The scope associated with the token. - **token_type** (string) - The type of the token (e.g., 'Bearer'). - **expires_in** (integer) - The token's expiration time in milliseconds. #### Response Example ```json { "access_token": "eyJ4NXQiOiJNbUprWWpVMlpETmpNelpqTURBM05UZ3pObUUxTm1NNU1qTXpNR1kyWm1OaFpHUTFNakE1TmciLCJraWQiOiJaalJqTUdRek9URmhPV1EwTm1WallXWTNZemRtWkdOa1pUUmpaVEUxTlRnMFkyWTBZVEUyTlRCV1lURTRNak5tWkRVeE5qZ3pPVGM0TWpGbFkyWXpOUV9SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJjbGllbnQxNjcxIiwiYXV0IjoiQVBQTElDQVRJT04iLCJhdWQiOiIxbUtrVVhxbEh1NmU0TDQ0NHpGaW5HN2M2dHNhIiwibmJmIjoxNzQyMzc2ODg5LCJhenAiOiIxbUtrVVhxbEh1NmU0TDQ0NHpGaW5HN2M2dHNhIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cHM6XC9cL25hcGkua290YWtzZWN1cml0aWVzLmNvbTo0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjI2MDYzNzY4ODksImlhdCI6MTc0MjM3Njg4OSwianRpIjoiYWY5Nzc0ZTItM2I2Ny00MDA0LThlMTMtMzQ0NjJlYWJhNjM1In0.Ez9KbNkmWktM0C2VuRq5pmvbW13yOPmsFR-Ss3n4EWuhztXCmes27JHTIT0HMzlW7xmxmdlkvBJSiRyMGIyvD2IfTRGf70-PALH43BsUJtAvwREPzQt9Nw9P523m0LnWVA-_5UM5whsZgJ_sFD0e0Uan6BSj5xPZ2cZI4jUv3Yj_vRDll1Ff4GfGDKshpr9APwN9G_oIVv0gvxgAlNHvpHiRmhvIinM_5YmAMO5TdynyuH-cK3yaS8cur9TzFFD8Pm9XBgm4uYB6jP_R97hYsQV0f0UrymeQHryWyBp_GIaPN_-cfTsPqLAHMhSEg2z60YzpGA3xt_j8fAeMznQEgQ", "scope": "default", "token_type": "Bearer", "expires_in": 864000000 } ``` ``` -------------------------------- ### Generate Access Token using cURL Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD#intro Use this cURL command to generate an access token by sending a POST request to the token endpoint. Ensure your Authorization header is correctly Base64 encoded. ```bash curl --location 'https://napi.kotaksecurities.com/oauth2/token' \ --header 'Authorization: Basic MW1La1VYcWxIdTZlNEw0NDR6RmluRzdjNnRzYTpENGV1bEZZOXc3X0ZBRWRTWW5vRWY4blI2emth' \ --data-urlencode 'grant_type=client_credentials' ``` -------------------------------- ### POSTLimits Source: https://documenter.getpostman.com/view/21534797/UzBnqmpD#intro Retrieves the user's trading limits. This endpoint requires specific headers for authentication and content type, and accepts URL-encoded data for specifying the segment, exchange, and product. ```APIDOC ## POST Limits ### Description Retrieves the user's trading limits based on provided parameters. ### Method POST ### Endpoint https://gw-napi.kotaksecurities.com/Orders/2.0/quick/user/limits ### Headers - **accept**: application/json - **Sid**: [Your Sid] - **Auth**: [Your Auth Token] - **neo-fin-key**: [Your neo-fin-key] - **Content-Type**: application/x-www-form-urlencoded - **Authorization**: Bearer [Your Bearer Token] ### Request Body - **jData** (string) - Required - JSON string containing 'seg', 'exch', and 'prod'. Example: `{"seg":"CASH","exch":"NSE","prod":"ALL"}` ### Request Example ```curl curl --location 'https://gw-napi.kotaksecurities.com/Orders/2.0/quick/user/limits' \ --header 'accept: application/json' \ --header 'Sid: b3ebb6af-7205-43e9-8513-189472393cab' \ --header 'Auth: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJUcmFkZSJdLCJleHAiOjE2NTU4MDY1MTEsImp0aSI6ImQ5NTliNDY3LTY0NjEtNGYyNC05MjRlLTA4Zjc1ZjZiZDU3MiIsImlhdCI6MTY1NTgwMjkxMSwiaXNzIjoibG9naW4tc2VydmljZSIsInN1YiI6IlRFU1RZQTI0IiwiZmV0Y2hjYWNoaW5ncnVsZSI6MCwiY2F0ZWdvcmlzYXRpb24iOiIifQ.YEnhDlz1PI_LWSaq8twJDuGF02sotp88GQgcpmtUymdQBB2vSrqGAZ1XKA9h1OK1WIfx7OUcF8JoKJKNuSFqxA3WjSzpKaoZ8LKGfogJnPjJcKPcpf-VlDOvSOGI4H2bSW0uDGMNdWAHWmj6U1wG10ibfE__-LlV2alTvtFD4T1x5AhQwAshAmbbh90wltjPi69AI0gf_P04IhGBciqTIVb886tha-10e1VtXKwCrhrafZAeUep-t-VlrhDEkJLEStZShUY0bXz5vA_V8vDPWMLf3Ag8KLND75Jw9g8_4fDqoJSDk7LRj9AX0DvOrnc9juEOTfkDCioOaHQnmgjRrw' \ --header 'neo-fin-key: f784e198-bda7-439e-a1a6-177f432460b9' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer eyJ4NXQiOiJNbUprWWpVMlpETmpNelpqTURBM05UZ3pObUUxTm1NNU1qTXpNR1kyWm1OaFpHUTFNakE1TmciLCJraWQiOiJaalJqTUdRek9URmhPV1EwTm1WallXWTNZemRtWkdOa1pUUmpaVEUxTlRnMFkyWTBZVEUyTlRCaVlURTRNak5tWkRVeE5qZ3pPVGM0TWpGbFkyWXpOUV9SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJrb3Rha2FkbWluIiwiYXV0IjoiQVBQTElDQVRJT04iLCJhdWQiOiJwNm5hYUt6MURPNDdSVnZta2I2MFhaYlhjNndhIiwibmJmIjoxNjU1ODAzNDMwLCJhenAiOiJwNm5hYUt6MURPNDdSVnZta2I2MFhaYlhjNndhIiwic2NvcGUiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cHM6XC9cL2FwaW0ua290YWtzZWN1cml0aWVzLm9ubGluZTo0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjE2OTE4MDM0MzAsImlhdCI6MTY1NTgwMzQzMCwianRpIjoiN2IwYjdhODYtMWJkNy00ZDc0LTkyMmItMGJiZTY5MjllYzIxIn0.GSs2-u2IJGxV4zA5R0vqBw9U3Mzj5lhtnyG_sWMND3zl8oufxEwigz1oMAS_COlYyI-DxqKFVvlCPMik0mz9PDH2N9ZCR1QDObZDg0sqefEMQzskGDxRFfvNs541nhZ9emhqphWdW0oIMOiWkRUt5jaXa0VW5JtOgs9sNY64OpYkUMcKV6UdOZPYdmUhSFJiI_ZVj91jg70U3252OXQ10smY_6HgCjDKCMTQKjX1fURp_wa8UZZ6jCagCN7iG5bRsVH-Py2fhVw1R0hj86q5bqq9roIEmvcUQjl44oNQuRXzeTaSgvJLEv8UZWxxtf9c4QMDebQKOqIl15E_t96oFQ' \ --data-urlencode 'jData={"seg":"CASH","exch":"NSE","prod":"ALL"}' ``` ### Response #### Success Response (200) - **Body**: Contains the trading limits information. - **Headers**: Includes 13 headers. ```