zoeydawn / coin-ticker

Wrapper for bitcoin exchange apis. The easiest way to add cryptocurrency market data into your application!
https://www.npmjs.com/package/coin-ticker
45 stars 22 forks source link

surbtc certificate expired #19

Open thesolution90 opened 5 years ago

thesolution90 commented 5 years ago

Fetching information from the surbtc API gets you a TLS certificate expired error: Error fetching surbtc pairs: { Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1122:34) at TLSSocket.emit (events.js:182:13) at TLSSocket._finishInit (_tls_wrap.js:625:8) code: 'CERT_HAS_EXPIRED', config: { adapter: [Function: httpAdapter], transformRequest: { '0': [Function: transformRequest] }, transformResponse: { '0': [Function: transformResponse] }, timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'axios/0.15.3' }, method: 'get', url: 'https://www.surbtc.com/api/v2/markets', data: undefined }, response: undefined }

Entering following URL in the browser gets you the following: https://www.surbtc.com/api/v2/markets {"message":"Server error","code":"internal_error"}

Seems that surbtc API doesn't work any more. If so it would be best to remove this exchange