3s3s / opentrade

OpenTrade - Open Source Cryptocurrency Exchange
MIT License
396 stars 401 forks source link

Cancel the order without subtracting the commission #320

Closed ach-group closed 4 years ago

ach-group commented 5 years ago

Hello guys,

how can i customize it so that order cancellation does not cut commission trade charges and balance is back to normal.

If the deduction continues despite the canceled trade this is not comfortable for traders causing double the cost.

hope someone helps.

Best regards.

3s3s commented 4 years ago

After the order cancelation comissions should be returned and balance should go back to normal. https://github.com/3s3s/opentrade/blob/master/server/modules/users/orders.js#L75