From a9a9c2744e0d0d459768641028adafbbe055bfd1 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 7 Aug 2020 09:27:17 +0800 Subject: [PATCH] add min notional check --- bbgo/types/market.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bbgo/types/market.go b/bbgo/types/market.go index 2a5abce3d..35aea8dcd 100644 --- a/bbgo/types/market.go +++ b/bbgo/types/market.go @@ -18,6 +18,7 @@ type Market struct { BaseCurrency string MinQuantity float64 MinAmount float64 + MinNotional float64 MinLot float64 } @@ -55,8 +56,9 @@ var MarketBTCUSDT = Market{ PricePrecision: 2, VolumePrecision: 6, MinQuantity: 0.000001, - MinAmount: 10.0, MinLot: 0.000001, + MinAmount: 10.0, + MinNotional: 10.0, } var MarketETHUSDT = Market{ @@ -66,11 +68,11 @@ var MarketETHUSDT = Market{ PricePrecision: 2, VolumePrecision: 5, MinQuantity: 0.01, - MinAmount: 10.0, MinLot: 0.01, + MinAmount: 10.0, + MinNotional: 10.0, } - var MarketBNBUSDT = Market{ Symbol: "BNBUSDT", BaseCurrency: "BNB", @@ -78,8 +80,9 @@ var MarketBNBUSDT = Market{ PricePrecision: 4, VolumePrecision: 2, MinQuantity: 0.01, - MinAmount: 10.0, MinLot: 0.01, + MinAmount: 10.0, + MinNotional: 10.0, } var Markets = map[string]Market{