Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.
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

Open

Description

@adam-hom

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

Activity

  1. revilwang commented on Jan 10, 2022

    @revilwang
    Collaborator

    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

  2. adam-hom commented on Jan 10, 2022

    @adam-hom
    Author

    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.

  3. revilwang commented on Jan 10, 2022

    @revilwang
    Collaborator

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions