Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add multi-leg options #552

Merged
merged 19 commits into from
Jan 20, 2025
Merged

feat: Add multi-leg options #552

merged 19 commits into from
Jan 20, 2025

Conversation

aarjaneiro
Copy link
Member

Closes #551.

feat: examples
feat: update model for mleg
feat: add missing qty test
feat: trailing stop limit validator separated
feat: emit warning with info upon validation test failing
feat: limit + mleg validation
feat: adds validation + tests for symbol repetition
feat: adds validation + tests
feat: add legs as parameter to order-type requests
refactor: cleanup

fix: to_request_fields empty detection

refactor: typing

refactor: prettiness
@aarjaneiro aarjaneiro requested a review from hiohiohio as a code owner January 17, 2025 18:33
Copy link
Contributor

@hiohiohio hiohiohio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! The notebook is fantastic! Left small comments.

alpaca/trading/models.py Outdated Show resolved Hide resolved
alpaca/trading/models.py Outdated Show resolved Hide resolved
alpaca/trading/models.py Outdated Show resolved Hide resolved
alpaca/trading/requests.py Show resolved Hide resolved
alpaca/trading/requests.py Outdated Show resolved Hide resolved
alpaca/trading/enums.py Outdated Show resolved Hide resolved
alpaca/trading/requests.py Outdated Show resolved Hide resolved
alpaca/trading/models.py Show resolved Hide resolved
aarjaneiro and others added 8 commits January 18, 2025 11:04
Co-authored-by: hiohiohio <hiohiohio@users.noreply.github.com>
Co-authored-by: hiohiohio <hiohiohio@users.noreply.github.com>
Co-authored-by: hiohiohio <hiohiohio@users.noreply.github.com>
Co-authored-by: hiohiohio <hiohiohio@users.noreply.github.com>
Co-authored-by: hiohiohio <hiohiohio@users.noreply.github.com>
Co-authored-by: hiohiohio <hiohiohio@users.noreply.github.com>
@aarjaneiro aarjaneiro requested a review from hiohiohio January 18, 2025 16:19
feat: typing for `leg` parameters
Copy link
Contributor

@hiohiohio hiohiohio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Left small comments.

alpaca/trading/models.py Show resolved Hide resolved
alpaca/trading/models.py Outdated Show resolved Hide resolved
examples/options-trading-mleg.ipynb Outdated Show resolved Hide resolved
fix: prefer !python3 -m pip install alpaca-py

refactor: ratio_qty docstring added

fix: implement suggestion re: validating api returns
Copy link
Contributor

@hiohiohio hiohiohio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@matebudai matebudai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@aarjaneiro aarjaneiro merged commit e2466ba into master Jan 20, 2025
12 checks passed
@aarjaneiro aarjaneiro deleted the feat-mleg-option-orders branch January 20, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add multi-leg options
3 participants