viabtc / viabtc_exchange_server

A trading engine with high-speed performance and real-time notification
MIT License
2.68k stars 1.48k forks source link

Fix a bug when executing market order #166

Closed en closed 5 years ago

en commented 5 years ago

The remaining amount of an order should be calculated by subtracting the amount of base currency that is filled.

haipome commented 5 years ago

On market bid order, the left means the money you want cost, not he amount of stock you want to buy.