websocket what is feed_token and client_code.
-
In below code what is Feed_token and client_code. In API i can only see api_key and secret_key
Where do I find this ?
WebSocket
from smartapi import WebSocket
FEED_TOKEN= "your feed token"
CLIENT_CODE="your client Id" -
@rajanprabu Thanks for the response.
-
Hi @aalokkeshri client code is the same which you use to login in to the angel broking trading platform Feed token need to be generated using the code which we have mentioned below.
from smartapi import SmartConnect
obj=SmartConnect(api_key="your api key")
data = obj.generateSession("Your Client ID","Your Password")
refreshToken= data['data']['refreshToken']#fetch the feedtoken
feedToken=obj.getfeedToken() -
you generate it like the following
# package import statement from smartapi import SmartConnect #or from smartapi.smartConnect import SmartConnect #import smartapi.smartExceptions(for smartExceptions) #create object of call obj=SmartConnect(api_key="your api key") #login api call data = obj.generateSession("Your Client ID","Your Password") refreshToken= data['data']['refreshToken'] #fetch the feedtoken feedToken=obj.getfeedToken()
-
@rajanprabu I have client code, and what is Feed_token
-
Are you a angel client ? then login code is your client code.