Hi @admin ,
I have tried to implement websocket 2.0 in nodeJS. It's working fine for few seconds,but after few seconds data is not coming.
Please check and revert.
krunal96
@krunal96
Best posts made by krunal96
-
websocket 2.0 not working
-
RMS:Blocked for NON-INTRADAY BO Remarks
Tried Below mentioned option call :
{
"variety": "ROBO",
"tradingsymbol": "NIFTY22SEP2217550PE",
"symboltoken": 52677,
"transactiontype": "BUY",
"exchange": "NFO",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"price": 54,
"duration": "DAY",
"squareoff": 58,
"stoploss": 51,
"quantity": 50
}The API got success response along with order Id. But in app, I got below mentioned Error:
RMS:Blocked for NON-INTRADAY BO Remarks: Bracket order not allowed for non-intraday clients block type: NON-SQROFF
@rajanprabu @StocksDeveloper @rjbanna @PandaTrade @James-Bond : Can you help me on this?
-
RE: User Feedback - WebSocket 2.0 Beta Rollout – Python Language
Is websocket 2.0 working? As i am getting only ping data(subscribing to Options). @admin @rajanprabu @StocksDeveloper @rjbanna
-
RE: TOKEN LIST OF NSE EQ
Hi @hardip ,
One can get the list of tokens using the below Link. There is no need to list it down here.
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
Latest posts made by krunal96
-
Tick not working. Getting only tick data of morning
Hi @admin
from SmartApi import SmartConnect
import getpassAsk user input securely
api_key = input("API Key: ").strip()
client_code = input("Client Code: ").strip()
password = getpass.getpass("Password: ")
totp = getpass.getpass("TOTP (6 digits): ").strip()Create SmartConnect object
obj = SmartConnect(api_key=api_key)
Attempt to generate session
resp = obj.generateSession(client_code, password, totp)
Display full response
print("\nLogin Response:", resp)
Check and print the Bearer token if login is successful
if resp.get("status") and resp.get("data") and "jwtToken" in resp["data"]:
bearer_token = resp["data"]["jwtToken"]
print("\nYour Bearer Token:")
print(f"Authorization: Bearer {bearer_token}")
else:
print("\nLogin failed:", resp.get("message"))
I have generated the Bearer token using this code but while using it to get historical data it is showing following error
Candle Data Response:
{'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}
OI Data Response:
{'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''} -
RE: User Feedback - WebSocket 2.0 Beta Rollout – Python Language
Is websocket 2.0 working? As i am getting only ping data(subscribing to Options). @admin @rajanprabu @StocksDeveloper @rjbanna
-
websocket 2.0 not working
Hi @admin ,
I have tried to implement websocket 2.0 in nodeJS. It's working fine for few seconds,but after few seconds data is not coming.
Please check and revert. -
RE: RMS:Blocked for NON-INTRADAY BO Remarks
@rajanprabu Sure. Will check on this. Thank you.
-
RMS:Blocked for NON-INTRADAY BO Remarks
Tried Below mentioned option call :
{
"variety": "ROBO",
"tradingsymbol": "NIFTY22SEP2217550PE",
"symboltoken": 52677,
"transactiontype": "BUY",
"exchange": "NFO",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"price": 54,
"duration": "DAY",
"squareoff": 58,
"stoploss": 51,
"quantity": 50
}The API got success response along with order Id. But in app, I got below mentioned Error:
RMS:Blocked for NON-INTRADAY BO Remarks: Bracket order not allowed for non-intraday clients block type: NON-SQROFF
@rajanprabu @StocksDeveloper @rjbanna @PandaTrade @James-Bond : Can you help me on this?
-
RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"
@admin Any update on this? Let me know once the migration process is done at your end.
-
RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"
Hi @admin ,
Request you to migrate account: V74441.
Also have submitted the google form for the same.
-
RE: ECONNABORTED Error while placing GTT order
@admin Thank you for the prompt reply.
-
ECONNABORTED Error while placing GTT order
Hi Team,
We are getting ECONNABORTED Error while placing GTT order. Message is : 'timeout of 7000ms exceeded'
Please find the screenshot of the same
The exact Request packet is as below. (error.config)
{ "url": "/rest/secure/angelbroking/gtt/v1/createRule", "method": "post", "data": { "tradingsymbol": "SBIN-EQ", "symboltoken": "3045", "exchange": "NSE", "producttype": "DELIVERY", "transactiontype": "BUY", "disclosedqty": 1, "price": 410, "qty": 1, "triggerprice": "410", "timeperiod": "20" }, "headers": { "Accept": "application/json", "Content-Type": "application/json", "X-ClientLocalIP": "192.168.0.107", "X-ClientPublicIP": null, "X-MACAddress": "54:13:79:ba:68:69", "X-UserType": "USER", "X-SourceID": "WEB", "X-PrivateKey": "29YKelWB", "Authorization": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1cybmFtZSI6Iko4ODQ4OCIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJpYXQiOjE2MjEyMzQ0MTUsImV4cCI6MTcwNzYzNDQxNX0.0Yyn_5eAJpNqIjpv2mCBfPnATMUuExb4KLbvRcsm_ZoK_9gVbhTjDmuFsQzJchRULGsT0WFocUcCQ61aoOpY3w", "User-Agent": "axios/0.20.0", "Content-Length": 179 }, "baseURL": "https://apiconnect.angelbroking.com", "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 7000, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1 }