mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
add json tag to insertedAt field
This commit is contained in:
parent
49d567c8f2
commit
0d7236ca8a
|
@ -96,7 +96,7 @@ type Trade struct {
|
||||||
// PnL is the profit and loss value of the executed trade
|
// PnL is the profit and loss value of the executed trade
|
||||||
PnL sql.NullFloat64 `json:"pnl" db:"pnl"`
|
PnL sql.NullFloat64 `json:"pnl" db:"pnl"`
|
||||||
|
|
||||||
InsertedAt Time `db:"inserted_at"`
|
InsertedAt Time `json:"insertedAt" db:"inserted_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (trade Trade) CsvHeader() []string {
|
func (trade Trade) CsvHeader() []string {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user