jchao01 / TradingView-data-scraper

Extract price and indicator data from TradingView charts to create ML datasets
Apache License 2.0
482 stars 112 forks source link

Date conversion problem #7

Open bugyip opened 5 years ago

bugyip commented 5 years ago

Hi,

I have found a problem in the following conversion: moment.unix(item['value'][0] * 1000, utc=True)

The first parameter should be in sec instead of millisec.

Test url: https://www.tradingview.com/chart/ADABTC/thKUZImc-test/