☰
Login
Signup
Home
›
Java client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
154
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
January 2021
anujrathi26
January 2021
sujith
Market quotes
anujrathi26
January 2021
edited January 2021
in
Java client
Question) we are using api key and using token at same time we have generated but not getting Success response.
we want to access Market quotes by using below curl
curl --location --request GET '
https://api.kite.trade/quote?i=NSE:INFY'
\
--header 'X-Kite-Version: 3' \
--header 'Authorization: token kp692ie90sj838i3y:fdZDfof44Le3HtoCpf63hQZZZbYDyJBu' \
--header 'Cookie: __cfduid=d4af7c2c9dd655992cf7886d86a6fd2b91610264669'
but not getting success response from API, we are getting below 40x forbidden
"status": "error",
"message": "Incorrect `api_key` or `access_token`.",
"data": null,
"error_type": "TokenException"
sujith
January 2021
@anujrathi26
,
Never post your app or client-specific token on a public thread.
You seem to be sending the wrong access token. You can check out more about the login flow
here
.
anujrathi26
January 2021
@sujith
We have issue during java code build error is gpg: no default secret key: No secret key
gpg: signing failed: No secret key when we run mvn clean install of given code
error_MVN.PNG
39.9K
sujith
January 2021
Are you running your code or are you trying to run the library itself?
sujith
January 2021
How are you including javakiteconnect in your project?
anujrathi26
January 2021
@sujith
I m trying to run the library itself and wants to run Test.java
sujith
January 2021
Those are just library files and java files. You need to create a new core java app and call javakiteconnect methods from there.
Sign In
or
Register
to comment.
Never post your app or client-specific token on a public thread.
You seem to be sending the wrong access token. You can check out more about the login flow here.
gpg: signing failed: No secret key when we run mvn clean install of given code