mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
rearrange market config fields
This commit is contained in:
parent
2b41f76082
commit
88461396f1
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user