@lakshay-kh @admin Facing the same issue i registered my app using static ip i getting the error message while creating session Response: {'message': 'Invalid apiKey', 'errorcode': 'AB1053', 'status': False, 'data': None}
Posts made by hemanthkumar097
-
RE: Important Updates to SmartAPI in Compliance with SEBI Guidelines
-
RE: Important Updates to SmartAPI in Compliance with SEBI Guidelines
@admin Hi admin, I am a retail trader with rate limits less than 10 orders per second (Market, GTT, Limit, SL-Limit). I run my Python trading code in a local environment. Do I still need to have a static IP?
-
GTT order not getting placed
While placing GTT orders using the api got the following error. It was working fine till 30-08-2024
{'tradingsymbol': 'NIFTY26SEP24FUT`', 'symboltoken': '35000', 'exchange': 'NFO', 'producttype': 'CARRYFORWARD', 'transactiontype': 'BUY', 'price': '25450.0', 'qty': '200', 'triggerprice': '25440.0', 'timeperiod': '1'}
{'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
i tried retrieving the gtt rule list it is also not working
@admin @Moderator_1 @Moderator_2 @Moderator_3 -
RE: Error code AB1004 into gttlist() API for last 2 days
@Moderator_3 Hi i am also getting error while placing new gtt order
https://apiconnect.angelbroking.com/gtt-service/rest/secure/angelbroking/gtt/v1/createRule{'tradingsymbol': 'NIFTY26SEP24FUT`', 'symboltoken': '35000', 'exchange': 'NFO', 'producttype': 'CARRYFORWARD', 'transactiontype': 'BUY', 'price': '25450.0', 'qty': '200', 'triggerprice': '25440.0', 'timeperiod': '1'}
{'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
-
Historical data mismatch
def hist_data(ticker,st_date,end_date,interval,exchange="NFO"):
params = {
"exchange": exchange,
"symboltoken": ticker,
"interval": interval,
"fromdate": st_date,
"todate": end_date
}
print(params)
hist_data = obj.getCandleData(params)
print(hist_data)
df_data = pd.DataFrame(hist_data["data"],
columns = ["date","open","high","low","close","volume"])
df_data.set_index("date",inplace=True)
return df_databanknifty_data = hist_data("61627","2023-11-30 00:00", "2023-12-01 23:55", "ONE_DAY",)
The above code is used to return values of 30-11-23 and 01-12-13 for BANKNIFTY28DEC23FUT contract
the code returned the above data in which the values for 31-11-23 is from BANKNIFTY30NOV23FUT contract and values from 01-12-23 if from BANKNIFTY28DEC23FUT
Please help me to retrieve values of current month contract
-
Incorrect Historical Data For Banknifty Futrures
def hist_data(ticker,st_date,end_date,interval,exchange="NFO"):
params = {
"exchange": exchange,
"symboltoken": ticker,
"interval": interval,
"fromdate": st_date,
"todate": end_date
}
print(params)
hist_data = obj.getCandleData(params)
print(hist_data)
df_data = pd.DataFrame(hist_data["data"],
columns = ["date","open","high","low","close","volume"])
df_data.set_index("date",inplace=True)
return df_databanknifty_data = hist_data("61627","2023-11-30 00:00", "2023-12-01 23:55", "ONE_DAY",)
The above code is used to return values of 30-11-23 and 01-12-13 for BANKNIFTY28DEC23FUT contract
the code returned the above data in which the values for 31-11-23 is from BANKNIFTY30NOV23FUT contract and values from 01-12-23 if from BANKNIFTY28DEC23FUT
-
Data Discrepency when fetching Historic Data of nifty and banknifty futures
Data Discrepency when fetching nifty and banknifty futures contract for 23-DEC-2023 contract
def hist_data(ticker,st_date,end_date,interval,exchange="NFO"):
params = {
"exchange": exchange,
"symboltoken": ticker,
"interval": interval,
"fromdate": st_date,
"todate": end_date
}
print(params)
hist_data = obj.getCandleData(params)
print(hist_data)
df_data = pd.DataFrame(hist_data["data"],
columns = ["date","open","high","low","close","volume"])
df_data.set_index("date",inplace=True)
return df_datadata = hist_data("61627","2023-11-29 09:15", "2023-12-01 15:30", "ONE_DAY",)
the Data for 31-11-23 is from Nov month contract
the Data for 01-12-23 is from Dec month contractplease update