mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
rename Symbol field to Market
This commit is contained in:
parent
88c7049a99
commit
1102fd0a1e
|
@ -90,7 +90,7 @@ func (e *ExecutionReportEvent) Trade() (*Trade, error) {
|
||||||
tt := time.Unix(0, e.TransactionTime/1000000)
|
tt := time.Unix(0, e.TransactionTime/1000000)
|
||||||
return &Trade{
|
return &Trade{
|
||||||
ID: e.TradeID,
|
ID: e.TradeID,
|
||||||
Symbol: e.Symbol,
|
Market: e.Symbol,
|
||||||
Price: MustParseFloat(e.LastExecutedPrice),
|
Price: MustParseFloat(e.LastExecutedPrice),
|
||||||
Volume: MustParseFloat(e.LastExecutedQuantity),
|
Volume: MustParseFloat(e.LastExecutedQuantity),
|
||||||
IsBuyer: e.Side == "BUY",
|
IsBuyer: e.Side == "BUY",
|
||||||
|
|
|
@ -9,13 +9,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Trade struct {
|
type Trade struct {
|
||||||
ID int64
|
ID int64
|
||||||
Price float64
|
Price float64
|
||||||
Volume float64
|
Volume float64
|
||||||
IsBuyer bool
|
IsBuyer bool
|
||||||
IsMaker bool
|
IsMaker bool
|
||||||
Time time.Time
|
Time time.Time
|
||||||
Symbol string
|
Market string
|
||||||
Fee float64
|
Fee float64
|
||||||
FeeCurrency string
|
FeeCurrency string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user