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

Added missing: used_derivative_buying_power data field #210

Conversation

JBlohm
Copy link
Contributor

@JBlohm JBlohm commented Feb 3, 2025

Description

As per tt api support
"used-derivative-buying-power": divided by "net-liquidating-value": is equal to your BP usage %.

The data field used_derivative_buying_power is missing in the AccountBalance and AccountBalanceSnapshot Classes

Related issue(s)

Fixes ...
used_derivative_buying_power added to both classes.

Pre-merge checklist

  • [x ] Code formatted correctly (check with make lint)
  • [x ] Code implemented for both sync and async
  • [x ] Passing tests locally (check with make test, make sure you have TT_USERNAME, TT_PASSWORD, and TT_ACCOUNT environment variables set)
  • New tests added (if applicable)

Please note that, in order to pass the tests, you'll need to set up your Tastytrade credentials as repository secrets on your local fork. Read more at CONTRIBUTING.md.

@Graeme22 Graeme22 merged commit bcbb811 into tastyware:master Feb 3, 2025
1 check failed
@Graeme22
Copy link
Contributor

Graeme22 commented Feb 3, 2025

Thanks!

@JBlohm JBlohm deleted the feature/AccountBalance-add-used_derivative_buying_power branch February 3, 2025 19:50
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.

2 participants