Leo4815162342 / dukascopy-node

✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
https://dukascopy-node.app
MIT License
365 stars 68 forks source link

What unit is volume? #120

Closed makovez closed 1 year ago

makovez commented 1 year ago

I don't understand why data coming from MT4 from dukascopy has not same volume unit of data downloaded from this library

Leo4815162342 commented 1 year ago

@makovez the volume unit is in millions which corresponds to what Dukascopy historical data feed has here https://www.dukascopy.com/trading-tools/widgets/quotes/historical_data_feed

Screenshot 2023-02-17 at 20 17 05

We can add an option to specify the unit type ('Unit', 'Thousands' or 'Millions') similar to how they have it

makovez commented 1 year ago

Thanks for your quick answer. Yes it would be nice to have this option.

makovez commented 1 year ago

Another question, Is the default timezone GMT or UTC ?

Leo4815162342 commented 1 year ago

@makovez the date timestamps are in UTC which is the same as GMT

makovez commented 1 year ago

image Do you understand what does this mean then?

Leo4815162342 commented 1 year ago

To he honest I'm not sure what the purpose of that field is - I don't see any effect of changing Day start time either to EET or UTC in that widget 🤷

dukascopy-node returns data as unix timestamps in milliseconds, so you can use that output and convert them to any timezone you want.

makovez commented 1 year ago

Perfect! Thanks for your amazing library and your quick response's.