mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
check min amount and min lot
This commit is contained in:
parent
79f9d078b6
commit
acb0807a37
|
@ -13,6 +13,7 @@ type Market struct {
|
||||||
BaseCurrency string
|
BaseCurrency string
|
||||||
MinQuantity float64
|
MinQuantity float64
|
||||||
MinAmount float64
|
MinAmount float64
|
||||||
|
MinLot float64
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m Market) FormatPrice(val float64) string {
|
func (m Market) FormatPrice(val float64) string {
|
||||||
|
@ -34,8 +35,9 @@ var MarketBTCUSDT = Market{
|
||||||
QuoteCurrency: "USDT",
|
QuoteCurrency: "USDT",
|
||||||
PricePrecision: 2,
|
PricePrecision: 2,
|
||||||
VolumePrecision: 6,
|
VolumePrecision: 6,
|
||||||
MinQuantity: 0.00000100,
|
MinQuantity: 0.000001,
|
||||||
MinAmount: 10.0,
|
MinAmount: 10.0,
|
||||||
|
MinLot: 0.000001,
|
||||||
}
|
}
|
||||||
|
|
||||||
var MarketBNBUSDT = Market{
|
var MarketBNBUSDT = Market{
|
||||||
|
@ -46,6 +48,7 @@ var MarketBNBUSDT = Market{
|
||||||
VolumePrecision: 2,
|
VolumePrecision: 2,
|
||||||
MinQuantity: 0.01,
|
MinQuantity: 0.01,
|
||||||
MinAmount: 10.0,
|
MinAmount: 10.0,
|
||||||
|
MinLot: 0.01,
|
||||||
}
|
}
|
||||||
|
|
||||||
var Markets = map[string]Market{
|
var Markets = map[string]Market{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user