bitbns-official / node-bitbns-api

This is Official Bitbns API nodeJs Library.
16 stars 20 forks source link

getOHLCData API not working #28

Closed varsubham closed 3 years ago

varsubham commented 3 years ago

getOHLCData API is producing this error message when using it:-

"status": 0, "msg": "Invalid market or coin passed"

sanket-buyhatke commented 3 years ago

hi, could you please specify for which pair you are receiving this response for ?

varsubham commented 3 years ago

@sanket-buyhatke Its not working for any pair. For eg,.. if I am using BTC INR pair its showing the same error message

bitbns.getOHLCData("BTC", "INR", 0, function (error, data) {
  if (!error) {
    console.log("Data ::", data);
  } else {
    console.log("Error ::", error);
  }
});

Its giving the same error message:

Data :: { status: 0, msg: 'Invalid market or coin passed' }
sanket-buyhatke commented 3 years ago

noted, thanks for raising the issue will look into it

sanket-buyhatke commented 3 years ago

hi, @varsubham, could update to the latest version and pls try again ?

varsubham commented 3 years ago

Yes working fine now 👍