bbgo
bbgo copied to clipboard
Add support for "amount" instead of "quantity" for more strategies.
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.
Even better would be to have support for "balancePercentage" on all strategies.
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"`
The schedule strategy is updated. @arthurwolf