peterszombati / xapi-node

xStation5 Trading API for NodeJS/JS
https://peterszombati.github.io/xapi-node/
Other
58 stars 19 forks source link

[question] getPriceHistory "start" parametters #31

Closed dawadam closed 1 year ago

dawadam commented 1 year ago

Hi, thanks for great job. How get candles from the past with "start" time ?

peterszombati commented 1 year ago

Hi,

https://github.com/peterszombati/xapi-node/blob/a9a9be76b6f702831ebafb2d57474f42eddbcf6c/src/v2/core/XAPI.ts#LL145C4-L155C7

simple startUTC as number like example

startUTC: new Date('2023-06-01T18:00:00.000Z').getTime()

dawadam commented 1 year ago

Ok, thanks, why this method is not on documentation ?