Kucoin / kucoin-node-sdk

KuCoin API SDK for Node.js language.
Apache License 2.0
106 stars 53 forks source link

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

Open hardiksinh opened 6 months ago

hardiksinh commented 6 months ago

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
  }
});