Missing Historical Bar Data: TimeFrame.Minute

I’m using python 3.10. For example, this what I have for BTC/USD:

    # no keys required for crypto data
    client = CryptoHistoricalDataClient()
    # set end time if provided (default is current time)
    request_params = CryptoBarsRequest(
        symbol_or_symbols=['BTC/USD'],
        timeframe=TimeFrame.Minute,
        start=start
    )
    bars = client.get_crypto_bars(request_params)

And some output records are missing, like it starts missing a lot starting from certain point of time, for example:
2023-06-14 08:05:00+00:00,26320.63,26320.63,26320.63,26320.63,0.00032
2023-06-14 08:06:00+00:00,26326.86,26326.86,25926.65178,26312.99,0.06025
2023-06-14 08:08:00+00:00,26326.38,26326.42,26326.38,26326.42,0.00228
2023-06-14 08:09:00+00:00,26319.98,26330.0,26312.99,26330.0,0.43039
2023-06-14 08:12:00+00:00,25921.7995017,25921.7995017,25917.23718,25917.23718,0.004030623
2023-06-14 08:14:00+00:00,26326.12,26326.12,26315.58,26315.58,0.00089
2023-06-14 08:15:00+00:00,26325.55,26325.61,26317.23,26321.25,0.11174
2023-06-14 08:16:00+00:00,26325.4,26325.41,26312.99,26324.24,0.02989
2023-06-14 08:17:00+00:00,26324.94,26324.94,26324.94,26324.94,3e-05
2023-06-14 08:18:00+00:00,26321.15,26321.15,26321.15,26321.15,0.002
2023-06-14 08:19:00+00:00,26323.64,26323.64,26323.64,26323.64,0.002
2023-06-14 08:20:00+00:00,26319.48,26326.74,25881.744,25881.744,0.009200623

What Am I missing? Do I use correct API to get the data?

PS: Does Alpaca have active discord server?

1 Like

You should no longer experience this issue.

PS: Alpaca uses Slack.

1 Like