Skip to content

MinNotional and MinAmount are not been set correctly when the futures mode is enabled #1610

@981746

Description

@981746

When the futures mode is enabled and with bbgo run command, MinNotionalFilter() of go-binance returns a nil value, but other filter functions like LotSizeFilter() and PriceFilter() work fine.

I disabled markets cache in .env.local using DISABLE_MARKETS_CACHE=true.

Then run the "bbgo run" command
in the toGlobalFuturesMarket() function of pkg/exchange/binance/convert.go, the following code snippet's f shows nil:

if f := symbol.MinNotionalFilter(); f != nil {
	market.MinNotional = fixedpoint.MustNewFromString(f.Notional)
	market.MinAmount = fixedpoint.MustNewFromString(f.Notional)
}

I think market.MinNotional and market.MinAmount are not being set correctly, causing me to always get 0 from s.Market.MinNotional and s.Market.MinAmount in my strategy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions