Fix binance trade transaction time convertion

This commit is contained in:
c9s 2020-10-25 18:30:06 +08:00
parent 308427416a
commit 391767953a

View File

@ -93,7 +93,7 @@ func (e *ExecutionReportEvent) Trade() (*types.Trade, error) {
return nil, errors.New("execution report is not a trade")
}
tt := time.Unix(0, e.TransactionTime/1000000)
tt := time.Unix(0, e.TransactionTime * int64(time.Millisecond))
return &types.Trade{
ID: e.TradeID,
Symbol: e.Symbol,