Skip to content

Commit

Permalink
convert: trade price/volume to string
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Apr 13, 2022
1 parent d9617b5 commit 606a7b3
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 280 deletions.
6 changes: 3 additions & 3 deletions pkg/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ func transMarketTrade(session *bbgo.ExchangeSession, marketTrade types.Trade) *p
Exchange: marketTrade.Exchange.String(),
Symbol: marketTrade.Symbol,
Id: strconv.FormatUint(marketTrade.ID, 10),
Price: marketTrade.Price.Float64(),
Volume: marketTrade.Quantity.Float64(),
Price: marketTrade.Price.String(),
Quantity: marketTrade.Quantity.String(),
CreatedAt: marketTrade.Time.UnixMilli(),
Side: transSide(marketTrade.Side),
Fee: marketTrade.Fee.Float64(),
FeeCurrency: marketTrade.FeeCurrency,
Fee: marketTrade.Fee.String(),
Maker: marketTrade.IsMaker,
},
},
Expand Down
Loading

0 comments on commit 606a7b3

Please sign in to comment.