another edge case bug i caught today.


the other day I was moving funds around, and apparently didn't left enough margin on an extended sub account.
as it was executing the positions, it ran out of margin, and partially filled positions were recorded as "complete" due to how that information is received from the exchange API.
i have a method to handle partially filled positions and they get appropriately categorized as such and I get warnings BUT when it comes to partials due to margin controls, it apparently breaks.
post-image
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pinned