Kaktana / kaktana-react-lightweight-charts

A simple react wrapper for the tradingview lightweight charts module
MIT License
107 stars 55 forks source link

How to use UTC UNIX timestamp or ISO time format, to input candlestick data? #15

Closed anuraagbarde closed 3 years ago

anuraagbarde commented 3 years ago

Works { time: '2018-10-25', open: 177.52, high: 180.50, low: 176.83, close: 179.07 },

Does not work, { time: '2018-10-21T19:20', open: 180.34, high: 180.99, low: 178.57, close: 179.85 },

Also does not work, { time: '1612729136', open: 180.34, high: 180.99, low: 178.57, close: 179.85 }

Thanks.

ParanoidAndroid19 commented 3 years ago

Hey, this works for me: {time: 1614189239.965, open: 4.1196, high: 4.128, low: 4.119, close: 4.1226}

anuraagbarde commented 3 years ago

It expects as an number and not a string.

Thanks!