Kotak-Neo / kotak-neo-api

120 stars 112 forks source link

Search Scrip return incorrect symbols in response #221

Open builder35abhishek opened 3 months ago

builder35abhishek commented 3 months ago

Hi Team,

I was trying to get NIFTY scrip codes but response returns FINNIFTY. Below I was trying script_data = neoapi_obj.search_scrip(exchange_segment = "nse_fo", symbol = "NIFTY", strike_price="24000",expiry="14AUG2024")

Response

[{'pSymbol': '44818', 'pGroup': 'XX', 'pExchSeg': 'nse_fo', 'pInstType': 'OPTIDX', 'pSymbolName': 'FINNIFTY', 'pTrdSymbol': 'FINNIFTY2481324000CE', 'pOptionType': 'CE', 'pScripRefKey': 'FINNIFTY13AUG2424000.00CE', 'pISIN': None, 'pAssetCode': 26037.0, 'pSubGroup': None, 'pCombinedSymbol': None, 'pDesc': None, 'pAmcCode': None, 'pContractId': None, 'dTickSize': 5, 'lLotSize': 25, 'lExpiryDate': 1408026600, 'lMultiplier': -1, 'lPrecision': 2, 'dStrikePrice;': 2400000.0, 'pExchange': 'NSE', 'pInstName': 'OPTIDX', 'pExpiryDate': '14Aug2024', 'pIssueDate': 1405036800.0, 'pMaturityDate': 1408026600.0, 'pListingDate': 1405036800.0, 'pNoDelStartDate': 0.0, 'pNoDelEndDate': 0.0, 'pBookClsStartDate': 0.0, 'pBookClsEndDate': 0.0, 'pRecordDate': 0.0, 'pCreditRating': ' ', 'pReAdminDate': 0.0, 'pExpulsionDate': 0.0, 'pLocalUpdateTime': 1407690493.0, 'pDeliveryUnits': None, 'pPriceUnits': None, 'pLastTradingDate': None, 'pTenderPeridEndDate': None, 'pTenderPeridStartDate': None, 'pSellVarMargin': None, 'pBuyVarMargin': None, 'pInstrumentInfo': None, 'pRemarksText': None, 'pSegment': 'FO', 'pNav': None, 'pNavDate': None, 'pMfAmt': None, 'pSipSecurity': None, 'pFaceValue': None, 'pTrdUnits': None, 'pExerciseStartDate': 1407974400.0, 'pExerciseEndDate': 1408026600.0, 'pElmMargin': None, 'pVarMargin': None, 'pTotProposedLimitValue': None, 'pScripBasePrice': 105, 'pSettlementType': 'Cash', 'pCurrectionTime': None, 'iPermittedToTrade': 0, 'iBoardLotQty': 1, 'iMaxOrderSize': 1801, 'iLotSize': 25, 'dOpenInterest': 1190920.0, 'dHighPriceRange': 2105.0, 'dLowPriceRange': 5.0, 'dPriceNum': 1, 'dGenDen': 1, 'dGenNum': 1, 'dPriceQuatation': 0, 'dIssuerate': 0, 'dPriceDen': 1, 'dWarningQty': 0, 'dIssueCapital': 1000000000000.0, 'dExposureMargin': 2.0, 'dMinRedemptionQty': 0, 'lFreezeQty': 1801}, {'pSymbol': '44824', 'pGroup': 'XX', 'pExchSeg': 'nse_fo', 'pInstType': 'OPTIDX', 'pSymbolName': 'FINNIFTY', 'pTrdSymbol': 'FINNIFTY2481324000PE', 'pOptionType': 'PE', 'pScripRefKey': 'FINNIFTY13AUG2424000.00PE', 'pISIN': None, 'pAssetCode': 26037.0, 'pSubGroup': None, 'pCombinedSymbol': None, 'pDesc': None, 'pAmcCode': None, 'pContractId': None, 'dTickSize': 5, 'lLotSize': 25, 'lExpiryDate': 1408026600, 'lMultiplier': -1, 'lPrecision': 2, 'dStrikePrice;': 2400000.0, 'pExchange': 'NSE', 'pInstName': 'OPTIDX', 'pExpiryDate': '14Aug2024', 'pIssueDate': 1405036800.0, 'pMaturityDate': 1408026600.0, 'pListingDate': 1405036800.0, 'pNoDelStartDate': 0.0, 'pNoDelEndDate': 0.0, 'pBookClsStartDate': 0.0, 'pBookClsEndDate': 0.0, 'pRecordDate': 0.0, 'pCreditRating': ' ', 'pReAdminDate': 0.0, 'pExpulsionDate': 0.0, 'pLocalUpdateTime': 1407690493.0, 'pDeliveryUnits': None, 'pPriceUnits': None, 'pLastTradingDate': None, 'pTenderPeridEndDate': None, 'pTenderPeridStartDate': None, 'pSellVarMargin': None, 'pBuyVarMargin': None, 'pInstrumentInfo': None, 'pRemarksText': None, 'pSegment': 'FO', 'pNav': None, 'pNavDate': None, 'pMfAmt': None, 'pSipSecurity': None, 'pFaceValue': None, 'pTrdUnits': None, 'pExerciseStartDate': 1407974400.0, 'pExerciseEndDate': 1408026600.0, 'pElmMargin': None, 'pVarMargin': None, 'pTotProposedLimitValue': None, 'pScripBasePrice': 100330, 'pSettlementType': 'Cash', 'pCurrectionTime': None, 'iPermittedToTrade': 0, 'iBoardLotQty': 1, 'iMaxOrderSize': 1801, 'iLotSize': 25, 'dOpenInterest': 225.0, 'dHighPriceRange': 175620.0, 'dLowPriceRange': 25040.0, 'dPriceNum': 1, 'dGenDen': 1, 'dGenNum': 1, 'dPriceQuatation': 0, 'dIssuerate': 0, 'dPriceDen': 1, 'dWarningQty': 0, 'dIssueCapital': 1000000000000.0, 'dExposureMargin': 2.0, 'dMinRedemptionQty': 0, 'lFreezeQty': 1801}]

Expected response -

No data found with the given search information." "Please try with other combinations.

RajanGoyal1002 commented 3 months ago

Are you able to get data using quotes?

builder35abhishek commented 3 months ago

Yes, tried same result