NodeJS library does not have getGTT method as shown in the samples

tfKamran
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.
  • sujith
    You can refer to the documentation here.
  • tfKamran
    tfKamran edited June 2020
    As I mentioned, I am using NodeJS library...

    Are you suggesting I should use the API directly instead?
  • sujith
    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
    Because I get an error saying function getGTT() does not exist.
  • sujith
    Are you sure you are using the latest version of nodejs library?
    This is the latest version source code which has getGTTs method.
  • tfKamran
    I have v3.0.1.
  • sujith
    You can use this version. It is a new feature.
  • tfKamran
    tfKamran edited June 2020
    Thanks.
  • tfKamran
    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.