Handle bad API data for trade quantity signage #2416
Reference in New Issue
Block a user
Delete Branch "zachgoll/maybe-884-plaid-returns-positive-signed-quantities-for-some-sell"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We have identified several cases where Plaid returns a positively signed
quantityfor investment trade transactions when they have atypeequal tosell. This behavior contradicts the official documentation and has caused incorrect historical graphs for users because we use this signage as the core mechanism for calculating historical balances.This PR adds some basic handling so that we can derive the correct signage in these scenarios where the data is incorrect.