Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

How do I get response headers of rate limit? #57

@hardiksinh

Description

@hardiksinh

How do I get response headers with result on successful call?

apiV1KC.get('/timestamp', async function(req, res) {
   try {
    const getTimestampRl = await KucoinAPI.rest.Others.getTimestamp();
    //res.set(headers);
    res.send(getTimestampRl); // Send the response back to the requester
  } catch (error) {
    res.status(500).send(error); // Send error response in case of an error
  }
});

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions