It looks like you're new here. If you want to get involved, click one of these buttons!
from kiteconnect import KiteConnect
kite = KiteConnect(api_key = "euisomethingi1nttriq9")
try:
user = kite.request_access_token(request_token="djyraqksomethingywo8f4h9ye6qsk16s", secret = "somethinghbwuzu292s4mhwvvbi0y")
kite.set_access_token(user["access_token"])
except Exception as e:
print("Authentication failed", str(e))
raise
print(user["user_id"], "has logged in")
# Get the list of positions.
print(kite.positions())
# Place an order.
order_id = kite.order_place(
tradingsymbol = "INFY",
exchange = "NSE",
quantity = 1,
transaction_type = "BUY",
order_type = "MARKET"
)
C:\Users\admin\Desktop>python login.py
('Authentication failed', 'That API call is not allowed for the authenticated user')
Traceback (most recent call last):
File "login.py", line 4, in <module>
user = kite.request_access_token(request_token="djyraqksomethingywo8f4h9ye6qsk16s", secret = "somethinghbwuzu292s4mhwvvbi0y")
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 214, in request_access_token
"checksum": checksum
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 443, in _post
return self._request(route, "POST", params)
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 525, in _request
raise(exp(data["message"], code=r.status_code))
kiteconnect.exceptions.PermissionException: That API call is not allowed for the authenticated user
Please revert ASAP,
But are there any other services that can be used by my Publisher App ?
You can embed buttons and render an offsite order basket, but there is no API access which is possible with publisher.