mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 15:10:54 +00:00
Binance websocket: Order Detail Execution Report (#750)
* * Binance websocket: set commission of order Detail * * Binance websocket: set commissionAsset of order.Detail * * Binance websocket: change CostAsset to type currency.Code * * Binance websocket: call NewCode after checking CommissionAsset is not empty. This guarantees that NULL CommissionAsset is mapped to an empty order.Detail.CostAsset. Otherwise, reflect.DeepEqual will fail on test. Update TestWsOrderExecutionReport json message to BTC commission. * * Binance websocket: binance websocket "ExecutionReport" only provides "trade" status (partially filled), so check that executed amount == total amount before change status to filled
This commit is contained in:
@@ -133,6 +133,7 @@ type Detail struct {
|
||||
ExecutedAmount float64
|
||||
RemainingAmount float64
|
||||
Cost float64
|
||||
CostAsset currency.Code
|
||||
Fee float64
|
||||
Exchange string
|
||||
InternalOrderID string
|
||||
|
||||
Reference in New Issue
Block a user