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

Balances Class - UnclearedFunds DataType #13

Open
timreninger opened this issue Mar 29, 2022 · 1 comment
Open

Balances Class - UnclearedFunds DataType #13

timreninger opened this issue Mar 29, 2022 · 1 comment

Comments

@timreninger
Copy link

Thank you for this code! It has made it super easy to throw together quick trading bots.

I'm having an issue when trying to invoke the 'GetBalances' method. It seems that the datatype for 'UnclearedFunds' class item in Models.Account.Balances is expecting an integer returned from Tradier - but I seem to be getting a float.

Newtonsoft.Json.JsonReaderException: 'Input string '25.00000000' is not a valid integer. Path 'balances.uncleared_funds', line 1, position 380.'

@schandra81
Copy link

Same problem. Why is uncleared_funds declared as int in the first place?

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