You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 16, 2026. It is now read-only.
No information where to put auth information for the user account #9
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.
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
Activity
revilwang commentedon Jan 10, 2022
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
adam-hom commentedon Jan 10, 2022
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.
revilwang commentedon Jan 10, 2022
Are you using the plain JavaScript version here which has no private endpoints enabled. Try to install with
npm install gate-apiwhich has all the functions you need. The difference is described at the beginning of README and the npm package basic information