Returns bars in the last n milliseconds.
See MS for a selection of millisecond constants.
const args: BarsInTheLastArgs = { symbol: 'BTC/USD', inTheLast: 1 * MS.WEEK, timeframe: '1Hour',}for await (const bar of getBarsInTheLast(source, args)) { console.log(bar)}
Generated using TypeDoc
Returns bars in the last n milliseconds.
Remarks
See MS for a selection of millisecond constants.
Example