alpacahq / alpacahq/alpaca-py

[Bug]: GetOrdersRequest() does not work properly

Open
#259 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.5k
Forks
398
Avg merge
1d 16h
Merged PRs (30d)
6

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

GetOrdersRequest() does not work properly.
You can't see `"closed short sell orders"`

### Expected Behavior

You should be able to see "closed short sell orders"

### SDK Version I encountered this issue in

alpaca-py0.7.2

### Steps To Reproduce

```markdown
1. Go short with any symbol
2. Try to use GetOrdersRequest() to closed short sell orders only.

For example:
SHORT = 'AAPL
SHORT_GOR = GetOrdersRequest(symbols=[SHORT], side='sell', status='closed')
SHORT_SO = API.get_orders(SHORT_GOR)
```

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

This is an old bug

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.