Function getBarsInTheLast

  • Returns bars in the last n milliseconds.

    Remarks

    See MS for a selection of millisecond constants.

    Example

    const args: BarsInTheLastArgs = {
    symbol: 'BTC/USD',
    inTheLast: 1 * MS.WEEK,
    timeframe: '1Hour',
    }

    for await (const bar of getBarsInTheLast(source, args)) {
    console.log(bar)
    }

    Parameters

    Returns AsyncIterable<Bar>

Generated using TypeDoc