bbgo icon indicating copy to clipboard operation
bbgo copied to clipboard

Add support for "amount" instead of "quantity" for more strategies.

Open arthurwolf opened this issue 2 years ago • 3 comments

Currently, only Grid among the strategies I have tried ( tried 5 just now ) supports specifying "amount" instead of "quantity".

I can't use strategies that use "amount", it's too complicated figuring out the price of the crypto to know how much fiat I can spend at any time etc, so I really need to be able to specify the amount in Fiat instead of the quantity in Crypto.

This issue is a feature request to ask for this to be fixed for more strategies.

arthurwolf avatar Jan 10 '22 22:01 arthurwolf

Even better would be to have support for "balancePercentage" on all strategies.

arthurwolf avatar Jan 10 '22 22:01 arthurwolf

Note: just discovered that "Schedule" also supports "amount"

arthur@aquarelle:/tmp/bbgo$ ack "amount,om"
pkg/strategy/schedule/strategy.go
41:	Amount fixedpoint.Value `json:"amount,omitempty"`

pkg/strategy/grid/strategy.go
84:	FixedAmount fixedpoint.Value `json:"amount,omitempty" yaml:"amount"`

arthurwolf avatar Jan 10 '22 22:01 arthurwolf

The schedule strategy is updated. @arthurwolf

c9s avatar Feb 18 '22 07:02 c9s