mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
not to omit empty all fields
This commit is contained in:
parent
634ce6180b
commit
5d6bd5a964
|
@ -23,12 +23,12 @@ type AverageCostPnlReport struct {
|
||||||
Profit fixedpoint.Value `json:"profit"`
|
Profit fixedpoint.Value `json:"profit"`
|
||||||
NetProfit fixedpoint.Value `json:"netProfit"`
|
NetProfit fixedpoint.Value `json:"netProfit"`
|
||||||
UnrealizedProfit fixedpoint.Value `json:"unrealizedProfit"`
|
UnrealizedProfit fixedpoint.Value `json:"unrealizedProfit"`
|
||||||
AverageCost float64 `json:"averageCost,omitempty"`
|
AverageCost float64 `json:"averageCost"`
|
||||||
BuyVolume float64 `json:"buyVolume,omitempty"`
|
BuyVolume float64 `json:"buyVolume,omitempty"`
|
||||||
SellVolume float64 `json:"sellVolume,omitempty"`
|
SellVolume float64 `json:"sellVolume,omitempty"`
|
||||||
FeeInUSD float64 `json:"feeInUSD,omitempty"`
|
FeeInUSD float64 `json:"feeInUSD,omitempty"`
|
||||||
Stock float64 `json:"stock,omitempty"`
|
Stock float64 `json:"stock"`
|
||||||
CurrencyFees map[string]float64 `json:"currencyFees,omitempty"`
|
CurrencyFees map[string]float64 `json:"currencyFees"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (report *AverageCostPnlReport) JSON() ([]byte, error) {
|
func (report *AverageCostPnlReport) JSON() ([]byte, error) {
|
||||||
|
|
|
@ -52,10 +52,10 @@ type Market struct {
|
||||||
Symbol string `json:"symbol"`
|
Symbol string `json:"symbol"`
|
||||||
LocalSymbol string `json:"localSymbol,omitempty" `// LocalSymbol is used for exchange's API
|
LocalSymbol string `json:"localSymbol,omitempty" `// LocalSymbol is used for exchange's API
|
||||||
|
|
||||||
PricePrecision int `json:"pricePrecision,omitempty"`
|
PricePrecision int `json:"pricePrecision"`
|
||||||
VolumePrecision int `json:"volumePrecision,omitempty"`
|
VolumePrecision int `json:"volumePrecision"`
|
||||||
QuoteCurrency string `json:"quoteCurrency,omitempty"`
|
QuoteCurrency string `json:"quoteCurrency"`
|
||||||
BaseCurrency string `json:"baseCurrency,omitempty"`
|
BaseCurrency string `json:"baseCurrency"`
|
||||||
|
|
||||||
// The MIN_NOTIONAL filter defines the minimum notional value allowed for an order on a symbol.
|
// The MIN_NOTIONAL filter defines the minimum notional value allowed for an order on a symbol.
|
||||||
// An order's notional value is the price * quantity
|
// An order's notional value is the price * quantity
|
||||||
|
|
Loading…
Reference in New Issue
Block a user