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

Retrieve full list of transactions #57

Open
ctasada opened this issue Feb 22, 2025 · 1 comment
Open

Retrieve full list of transactions #57

ctasada opened this issue Feb 22, 2025 · 1 comment

Comments

@ctasada
Copy link

ctasada commented Feb 22, 2025

Hello there,

First of all I wanted to congratulate the team for such a great library. I just started to use it with the addition of OAuth support and I'm loving how easy it is to use.

I'm building a dashboard to get some information about my investments, and one of the values I want to track are the transactions: buy, sell, deposits and withdrawals.

I found that I can use the transaction_history method to retrieve the transactions for a single contract. Not very convenient, but I can manage to retrieve it for all the contracts. But I cannot find how to retrieve data about my cash deposits and withdrawals.

Is there any way that it can be obtained?

Thank you and keep the good work

@Voyz
Copy link
Owner

Voyz commented Feb 22, 2025

hey @ctasada welcome to IBind and thanks for the kind words 👍

As for your question - consider using Flex Queries:

https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#flex-intro

Not sure about cash deposits and withdrawals but you can get quite a lot of info from these, so there's a chance you'll find it. Also easier to get trades for multiple tickers there. Keep in mind IBKR only make these available for the past 6 months of history, or something along these lines.

Other than that, I'd suggest you contact IBKR support and ask them directly - they're quite responsive.

Good luck!

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

No branches or pull requests

2 participants