ccxt: fetchTicker() is no longer available since 1.9.207

> const ccxt = require('ccxt');
undefined
> const ex = new ccxt['bitfinex2'] ();
undefined
> ex.fetchTicker('BTC/USD')
TypeError: ex.fetchTicker is not a function
    at repl:1:4
    at ContextifyScript.Script.runInThisContext (vm.js:50:33)
    at REPLServer.defaultEval (repl.js:239:29)
    at bound (domain.js:301:14)
    at REPLServer.runBound [as eval] (domain.js:314:12)
    at REPLServer.onLine (repl.js:440:10)
    at emitOne (events.js:120:20)
    at REPLServer.emit (events.js:210:7)
    at REPLServer.Interface._onLine (readline.js:282:10)
    at REPLServer.Interface._line (readline.js:631:8)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (16 by maintainers)

Commits related to this issue

Most upvoted comments

1.9.213 fixed the issue.

Thanks!

Just made a fresh install into a clean directory with npm. The same.

I’m positive these exact three lines will fail in your setup as well.

It looks like it does work when instantiating an exchange with parameters.

So if you authenticate then it works. And if you don’t then public methods are not available.

If this is true then my wild guess is that you run your testcases after authentication.