☰
Login
Signup
Home
›
General
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
14K
All Categories
0
Incidents
156
Node JS client
40
Go client
794
.Net API client
383
Kite Publisher
537
.Net / VBA / Excel (3rd party)
462
Algorithms and Strategies
1K
Java client
1.1K
API clients
405
PHP client
4K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
June 2020
tfKamran
June 2020
sujith
NodeJS library does not have getGTT method as shown in the samples
tfKamran
June 2020
in
General
I can see in the examples (
https://github.com/zerodhatech/kiteconnectjs/blob/master/examples/connect.js#L354
) that there is supposed to be methods to fetch and create GTT orders, although nothing as such is mentioned in the documentation.
Tagged:
Kite Connect NodeJS
GTT
sujith
June 2020
You can refer to the documentation
here
.
tfKamran
June 2020
edited June 2020
As I mentioned, I am using NodeJS library...
Are you suggesting I should use the API directly instead?
sujith
June 2020
No, I gave the reference to the API docs to know the param and response structure.
Why would you switch when it is already done in the nodejs library?
tfKamran
June 2020
Because I get an error saying function getGTT() does not exist.
sujith
June 2020
Are you sure you are using the latest version of nodejs library?
This is the latest version source code which has
getGTTs
method.
tfKamran
June 2020
I have v3.0.1.
sujith
June 2020
You can use
this version
. It is a new feature.
tfKamran
June 2020
edited June 2020
Thanks.
tfKamran
June 2020
Not sure why even after repeated npm installs it gives me v3.0.1. I hardcoded v3.1.0 in my package.json and tried npm install, now I have the latest version. Never experienced such weird behaviour on NPM before.
Anyway, that solves my issue!
Sign In
or
Register
to comment.
Are you suggesting I should use the API directly instead?
Why would you switch when it is already done in the nodejs library?
This is the latest version source code which has getGTTs method.
Anyway, that solves my issue!