rearrange market config fields

This commit is contained in:
c9s 2020-10-14 10:39:14 +08:00
parent 2b41f76082
commit 88461396f1
2 changed files with 8 additions and 4 deletions

View File

@ -58,6 +58,7 @@ func (e *Exchange) QueryMarkets(ctx context.Context) (types.MarketMap, error) {
if f := symbol.MinNotionalFilter() ; f != nil {
market.MinNotional = util.MustParseFloat(f.MinNotional)
market.MinAmount = util.MustParseFloat(f.MinNotional)
}
// The LOT_SIZE filter defines the quantity (aka "lots" in auction terms) rules for a symbol.

View File

@ -14,13 +14,16 @@ type Market struct {
QuoteCurrency string
BaseCurrency string
// 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
MinNotional float64
MinAmount float64
// The LOT_SIZE filter defines the quantity
MinLot float64
MinQuantity float64
MaxQuantity float64
MinAmount float64
MinNotional float64
MinLot float64
MinPrice float64
MaxPrice float64
TickSize float64