add min notional check

This commit is contained in:
c9s 2020-08-07 09:27:17 +08:00
parent 695ab28246
commit a9a9c2744e

View File

@ -18,6 +18,7 @@ type Market struct {
BaseCurrency string BaseCurrency string
MinQuantity float64 MinQuantity float64
MinAmount float64 MinAmount float64
MinNotional float64
MinLot float64 MinLot float64
} }
@ -55,8 +56,9 @@ var MarketBTCUSDT = Market{
PricePrecision: 2, PricePrecision: 2,
VolumePrecision: 6, VolumePrecision: 6,
MinQuantity: 0.000001, MinQuantity: 0.000001,
MinAmount: 10.0,
MinLot: 0.000001, MinLot: 0.000001,
MinAmount: 10.0,
MinNotional: 10.0,
} }
var MarketETHUSDT = Market{ var MarketETHUSDT = Market{
@ -66,11 +68,11 @@ var MarketETHUSDT = Market{
PricePrecision: 2, PricePrecision: 2,
VolumePrecision: 5, VolumePrecision: 5,
MinQuantity: 0.01, MinQuantity: 0.01,
MinAmount: 10.0,
MinLot: 0.01, MinLot: 0.01,
MinAmount: 10.0,
MinNotional: 10.0,
} }
var MarketBNBUSDT = Market{ var MarketBNBUSDT = Market{
Symbol: "BNBUSDT", Symbol: "BNBUSDT",
BaseCurrency: "BNB", BaseCurrency: "BNB",
@ -78,8 +80,9 @@ var MarketBNBUSDT = Market{
PricePrecision: 4, PricePrecision: 4,
VolumePrecision: 2, VolumePrecision: 2,
MinQuantity: 0.01, MinQuantity: 0.01,
MinAmount: 10.0,
MinLot: 0.01, MinLot: 0.01,
MinAmount: 10.0,
MinNotional: 10.0,
} }
var Markets = map[string]Market{ var Markets = map[string]Market{