-
Notifications
You must be signed in to change notification settings - Fork 8
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
Wrong sale date with limited order #16
Comments
@RaNo99, unfortunately I don't have access to this sort of data. I'd need you to help me by providing some JSON files. |
Here you go: endpoint: /sw-ptpapi/v1/withdrawals/realtimeTransactions/* Response part of interest:
The order was placed on 2019-11-12. Then it waited until 2019-11-25 when the stock price finally grew high enough to match the ordered price. Then, in this particular case, it was sold in three parts (because not immediately there were enough buyers to buy all the stock units at the price I ordered). It's possible that a sale like this could extend over a few days (fortunately in my case all parts were sold on the same day), and that's where I think uniqueFillDate becomes helpful. |
It works fine for me now. Thanks @ncortines . |
When a sale originates from a limited order, a wrong date is used for the sale. The date when the order was placed is used. The actual sale date should be used instead.
The text was updated successfully, but these errors were encountered: