Symbol not found error AB1009
-
hi,
i have tried setting tradingsymbol as "RELIANCE" as well as "RELIANCE-EQ".
in both case getting symbol not found error.
please can you tell what to set in tradingsymbol ?
i am not sending "symboltoken" as shown in sample code in docs.
is sending "symboltoken" required ?
-
HI @pashriva You can find the symbol tokens on below url:
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json -
Hi @admin
What exactly is Symbol Token ? Is it something which is specific to Angel Broking Universe or is it something which is decided by the exchanges?Usually doing something like NSE:SBIN or BOM:500112 is sufficient for uniquely identifiying the SBI Equity stock. Then why is this Symbol token required.
And even if it is something specific to Angel Broking Universe, what is the right way of getting the Symbol token from NSE:SBIN or BOM:500112
Thanks,
P - topic:timeago_earlier,4 months
-
@admin thank you. got it. duration is required.
-
req:
{
"variety":"NORMAL",
"tradingsymbol":"RELIANCE-EQ",
"symboltoken":"2885",
"transactiontype":"BUY",
"exchange":"NSE",
"ordertype":"MARKET",
"producttype":"INTRADAY",
"duration":"DAY",
"price":"382",
"squareoff":"15",
"stoploss":"10",
"quantity":"1"
}
response:
{
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": {
"script": "RELIANCE-EQ",
"orderid": "210407000000062"
}
} -
@admin {"exchange":"NSE","tradingsymbol":"RELIANCE-EQ","symboltoken":"2885","transactiontype":"BUY","ordertype":"LIMIT","variety":"NORMAL","producttype":"INTRADAY","quantity":1,"disclosedquantity":1,"price":2000}
-
Hi @kunaljvyas post your code snip here.
-
@kunaljvyas this is my order request data.
{"exchange":"NSE","tradingsymbol":"RELIANCE-EQ","symboltoken":"2885","transactiontype":"BUY","ordertype":"LIMIT","variety":"NORMAL","producttype":"INTRADAY","quantity":1,"disclosedquantity":1,"price":2000}
what am i missing or sending wrong ?
-
@admin thanks . i tried with symboltoken= 2885 also
not getting {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null} -
Hi @kunaljvyas yes symbol token is mandatory.Please find the below link for various symbol tokens and instruments.
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json