From 0d7236ca8a1f8ef94d1f3a6549414db8d4e1bac2 Mon Sep 17 00:00:00 2001 From: Yu-Cheng Date: Mon, 17 Jun 2024 17:44:50 +0800 Subject: [PATCH] add json tag to insertedAt field --- pkg/types/trade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/trade.go b/pkg/types/trade.go index eb5a51360..ca465656a 100644 --- a/pkg/types/trade.go +++ b/pkg/types/trade.go @@ -96,7 +96,7 @@ type Trade struct { // PnL is the profit and loss value of the executed trade PnL sql.NullFloat64 `json:"pnl" db:"pnl"` - InsertedAt Time `db:"inserted_at"` + InsertedAt Time `json:"insertedAt" db:"inserted_at"` } func (trade Trade) CsvHeader() []string {