alpacahq / alpacahq/alpaca-py

[Bug]: No Volume Data

Đang mở
#598 9 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.5k
Fork
397
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
6

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.