mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
Fix binance trade transaction time convertion
This commit is contained in:
parent
308427416a
commit
391767953a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user