zerodha / phpkiteconnect

The official PHP client library for the Kite Connect trading APIs
MIT License
43 stars 30 forks source link

"That API call is not allowed for the authenticated user" #1

Closed gopi-ar closed 8 years ago

gopi-ar commented 8 years ago

I get this error while trying to access the API with your library, right after the user authenticates successfully and generates a request token:

"That API call is not allowed for the authenticated user"

Is there something that needs to be enabled on my personal Zerodha a/c to sort this out?

vividvilla commented 8 years ago

Please read the documentation carefully. We have mentioned that publisher type apps are only for basket order execution and you won't get full api access. Please create a app of type Full kite connect to access all apis.

gopi-ar commented 8 years ago

Can you point me to the documentation where this line is mentioned? The point of an API Doc is to state such things explicitly.

Also, how do you expect a developer who's simply testing an API to pay 2000 credits? Shouldn't the API come with the Kite account?

rainmattertech commented 8 years ago

@gopi-ar Not sure I understand your question, but Publisher is free of cost. Kite Connect APIs have a monthly subscription fee. The actual API docs (obviously) only deal with technical and not pricing or business details.

But, the difference between various kinds of APIs are clearly explained on the Kite homepage https://kite.trade

Please refer to the various sections -- "Kite Connect for individuals", "Kite Connect for startups", and "Kite Publisher".

Underneath each section, the details are further broken down with concise explanations (how, what, why ..). There's also an "Are there any fees?" sub-section underneath each API's section, which is what you seem to be referring to.