rename Symbol field to Market

This commit is contained in:
c9s 2020-06-16 16:55:42 +08:00
parent 88c7049a99
commit 1102fd0a1e
2 changed files with 8 additions and 8 deletions

View File

@ -90,7 +90,7 @@ func (e *ExecutionReportEvent) Trade() (*Trade, error) {
tt := time.Unix(0, e.TransactionTime/1000000)
return &Trade{
ID: e.TradeID,
Symbol: e.Symbol,
Market: e.Symbol,
Price: MustParseFloat(e.LastExecutedPrice),
Volume: MustParseFloat(e.LastExecutedQuantity),
IsBuyer: e.Side == "BUY",

View File

@ -9,13 +9,13 @@ import (
)
type Trade struct {
ID int64
Price float64
Volume float64
IsBuyer bool
IsMaker bool
Time time.Time
Symbol string
ID int64
Price float64
Volume float64
IsBuyer bool
IsMaker bool
Time time.Time
Market string
Fee float64
FeeCurrency string
}