[Bug]: No Volume Data
- 主要语言
- Python
- 星标
- 1.5k
- 派生
- 398
- 平均合并
- 1 天 16 小时
- 30 天内合并 PR
- 6
描述
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Current Behavior
```
(Pdb) crypto_bars_request = CryptoBarsRequest(symbol_or_symbols=[symbol],timeframe=TimeFrame.Minute, start=current_minute_dt, end=current_minute_dt + dt.timedelta(days=1), limit=1, sort=Sort.ASC,)
(Pdb) self.crypto_client.get_crypto_bars(crypto_bars_request)
{ 'data': { 'BTC/USD': [ { 'close': 44207.2545,
'high': 44207.2545,
'low': 44178.976,
'open': 44192.0,
'symbol': 'BTC/USD',
'timestamp': datetime.datetime(2024, 1, 2, 0, 0, tzinfo=TzInfo(UTC)),
'trade_count': 0.0,
'volume': 0.0,
'vwap': 0.0}]}}
```
Hi I'm noticing that the volume is always zero regardless of the start and end times I provide (happens if I use dt.timedelta(minutes=1) as well - any pointers?
### Expected Behavior
Expecting real volume data
### SDK Version I encountered this issue in
alpaca-py version 0.37.0
### Steps To Reproduce
```markdown
crypto_bars_request = CryptoBarsRequest(symbol_or_symbols=[symbol],timeframe=TimeFrame.Minute, start=current_minute_dt, end=current_minute_dt + dt.timedelta(days=1), limit=1, sort=Sort.ASC,)
self.crypto_client.get_crypto_bars(crypto_bars_request)
```
### Filled out the Steps to Reproduce section?
- [x] I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.
### Anything else?
_No response_
贡献指南
评估
这个 Issue 还没有评估数据。