You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For cancelled trades, you automatically set
amount = total / price;
However, this is invalid as some trades can be partially complete, such as 5% or 90% before they are cancelled. If this case happens, then the amount and total are set as if it was 100% completed.
In the makes array, there can be a trades array. You can get a total filled_amount and want_amount by summing up these variables for each element in the trades array.
The text was updated successfully, but these errors were encountered:
Actually, I just realized that even canceled trades that are 0% complete still display the amount as if they were 100% complete. A 0% complete cancelled trade should be akin to a failed trade
For cancelled trades, you automatically set
amount = total / price;
However, this is invalid as some trades can be partially complete, such as 5% or 90% before they are cancelled. If this case happens, then the amount and total are set as if it was 100% completed.
In the makes array, there can be a trades array. You can get a total filled_amount and want_amount by summing up these variables for each element in the trades array.
The text was updated successfully, but these errors were encountered: