Error Code: AB1019, Message: Entered trading symbol and symbol token is mismatch
-
Re: Entered trading symbol and symbol token is mismatch : errorcode: 'AB1019'
Hi @admin
I'm getting error on placing order for the script "token":"49853", "symbol":"NIFTY21JANFUT",Error Message:
{
message: 'Entered trading symbol and symbol token is mismatch',
errorcode: 'AB1019',
status: false,
data: null
}smart_api.placeOrder({
"variety": "NORMAL", "tradingsymbol": "NIFTY21JANFUT", "symboltoken": "49853", "transactiontype": "BUY", "exchange": "NFO", "ordertype": "MARKET", "producttype": "INTRADAY", "duration": "DAY", "triggerprice": "0", "squareoff": "0", "stoploss": "0", "quantity": 1 })
-
Hi @PandaTrade , thank you for sharing your system on remote. The query is now solved.
-
Hello @admin,
fyi the code posted is in python.
i have referred to https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
to get the symbol token. -
@tcmstunner @admin
I am giving the right token number along with the symbol code but i still get the error.{"message":"Entered trading symbol and symbol token is mismatch","errorcode":"AB1019","status":false,"data":null}
placeSLorder_payload = "{\n\"exchange\": \"NFO\",\n\"tradingsymbol\": \"BANKNIFTY21JAN2132600PE\",\n\ \"quantity\": 25, \ \n\"disclosedquantity\": 25,\ \n\"symboltoken\": 58068,\ \n \"transactiontype\": \"BUY\",\ \n \"ordertype\": \"LIMIT\",\ \n \"duration\": \"DAY\",\ \n \"variety\": \"STOPLOSS_LIMIT\",\ \n \"triggerprice\": \"800\",\ \n \"price\": \"805\",\ \n \"producttype\": \"INTRADAY\"\ \n}" conn.request("POST", "/rest/secure/angelbroking/order/v1/placeOrder",\ placeSLorder_payload,\ headers) res = conn.getresponse() data = res.read()
what is the issue could you please point me out?
-
@admin
How can find correct trading symbol & symbol token. I always follow https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
Please help me to find out the correct information related to scripts -
@tcmstunner said in Error Code: AB1019, Message: Entered trading symbol and symbol token is mismatch:
NIFTY21JANFUT
Hi, trading symbol input should be NIFTY28JAN21FUT
Please refer - https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
-
@PandaTrade said in Error Code: AB1019, Message: Entered trading symbol and symbol token is mismatch:
49853
We searched in - https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
here you can find the token and symbol -
@tcmstunner How did you get 49853 is the token number?