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

A trailing stop limit order with a percentage value fails GetClosedOrdersAsync call #121

Open
yukseljunk opened this issue Nov 13, 2024 · 0 comments

Comments

@yukseljunk
Copy link

Describe the bug

If i have a trailing stop limit order with a percentage, serialization fails because price is not decimal but a string, ending with a percent sign. Error description;

Deserialize JsonReaderException: Could not convert string to decimal: +1.0000%. Path 'result.closed.OIHV3J-4MME2-EVRQ6P.descr.price', line 1, position 6060., Path: result.closed.OIHV3J-4MME2-EVRQ6P.descr.price, LineNumber: 1, LinePosition: 6060 [Data only available in Trace LogLevel]}

To Reproduce
Create a trailing stop order with percentage, call GetClosedOrdersAsync method.

Expected behavior
It should skip these kind of orders, and report these ones in the errors

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

1 participant