Kucoin fetchOHLCV results into 'TypeError: Cannot convert undefined or null to object'
See original GitHub issueTrying 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:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sure! It was me too fast to create an issues 😃
That would be awesome! Make sure to read this:
Thank you!