gateio / gateapi-nodejs

TypeScript client SDK for Gate APIv4 used in NodeJS(can be compiled to javascript)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No information where to put auth information for the user account

adam-hom opened this issue · comments

Could You please provide information where to put auth information for us developers? Where should i pass username and password to ApiCLient? How?

edit: I found that setApiKeySecret() function is missing from ApiClient.js!
it is present in ts version , please fix this

Username and password authentication is not supported. You can only log into the web console and generate your APIv4 key and secret. As to how to use the key and secret, you can find code snippets for all the private endpoints down below the readme

Ok to be precise I have key and secret and where should i send it please?
I dont see setApiKeySecret() in ApiClient.js but still there is applyAuthToRequest() which looks like needs that information in some way.

For example in docs for getFee: https://github.com/gateio/gateapi-nodejs/blob/master/docs/SpotApi.md#getfee
there is client.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET"); but I dont see such function in ApiClient, I got error when I call setApiKeySecret()

Thank You for help.

Are you using the plain JavaScript version here which has no private endpoints enabled. Try to install with npm install gate-api which has all the functions you need. The difference is described at the beginning of README and the npm package basic information