mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
add json struct tags
This commit is contained in:
parent
617f5119fd
commit
09d712416f
|
@ -6,9 +6,9 @@ import (
|
|||
)
|
||||
|
||||
type Position struct {
|
||||
Base fixedpoint.Value
|
||||
Quote fixedpoint.Value
|
||||
AverageCost fixedpoint.Value
|
||||
Base fixedpoint.Value `json:"base"`
|
||||
Quote fixedpoint.Value `json:"quote"`
|
||||
AverageCost fixedpoint.Value `json:"averageCost"`
|
||||
}
|
||||
|
||||
func (p *Position) AddTrade(t types.Trade) (fixedpoint.Value, bool) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user