@qtsurfer/api-client
    Preparing search index...

    Function downloadKlines

    • Download one hour of klines for an instrument as a Lastra segment Same shape and semantics as /exchange/{exchangeId}/tickers/{base}/{quote}, but serves klines (aggregated bars) instead of raw ticks. One Lastra segment = one hour of klines at the exchange's native kline cadence, aligned to UTC.

      Klines use the same columnar layout as tickers — readers that handle one format read the other with the same code. Use this endpoint when a per-tick payload would be too large for the window of interest.

      The hours served (the last 7 days; the hour in progress and the last hours may be provisional), the timestamps (ts in microseconds, X-Ts-Unit: micros) and the errors are those of the tickers route.

      Type Parameters

      • ThrowOnError extends boolean = false

      Parameters

      Returns RequestResult<Blob | File, ResponseError, ThrowOnError>