question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kucoin fetchOHLCV results into 'TypeError: Cannot convert undefined or null to object'

See original GitHub issue

Trying to get the OHLCV data from Kucoin results to

TypeError: Cannot convert undefined or null to object
    at Function.values (<anonymous>)
    at kucoin.parseOHLCVs (/home/michael/nodebot/node_modules/ccxt/js/base/Exchange.js:777:25)
    at kucoin.fetchOHLCV (/home/michael/nodebot/node_modules/ccxt/js/kucoin.js:505:21)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
  • OS: Arch Linux
  • Programming Language: JavaScript
  • CCXT version: 1.10.579
  • Exchange: Kucoin
  • Method: fetchOHLCV
const ccxt = require('ccxt');

const kucoin = new ccxt.kucoin({ 'verbose': true });

async function main() {
  try{
    let ohlcv = await kucoin.fetchOHLCV('KCS/BTC', '5m');
    console.log(ohlcv);
  } catch(error) {
    console.log(error);
  }
}

main();

Raw programm output is here https://pastebin.com/raw/88PAPYDq (I hope linking pastebin is apropriate because the output is too long to past it into the message)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
miriticommented, Jan 7, 2018

Sure! It was me too fast to create an issues 😃

1reaction
kroitorcommented, Jan 7, 2018

I’ll look into this TradingView format issue and PR you if I’ll have any success 😃

That would be awesome! Make sure to read this:

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot convert undefined or null to object - Stack Overflow
Generic answer. This error is caused when you call a function that expects an Object as its argument, but pass undefined or null...
Read more >
Exchanges — ccxt 2.4.71 documentation
a value of undefined / None / null means the method is not currently implemented in ccxt (either ccxt has not unified it...
Read more >
ccxt Documentation - Read the Docs
Creates a global ccxt object: console.log (ccxt.exchanges) // print all available exchanges. 3.3 Python ccxt algotrading library in PyPI.
Read more >
Cannot convert undefined or null to object ( But we didn't ...
Hi Retool team, Since this morning, we have this error message that appears (Cannot convert undefined or null to object).
Read more >
Cannot convert undefined or null to object after compile
In order to segregate the sources of error, I have created an empty project with just one contract. environment. MacOS Big Sur 11.2.3...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found