mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
Merge pull request #139 from crossgate10/main
add yaml tag for mapping basic risk control order executor.
This commit is contained in:
commit
8389056e80
|
@ -96,10 +96,10 @@ func (e *ExchangeOrderExecutor) SubmitOrders(ctx context.Context, orders ...type
|
|||
type BasicRiskController struct {
|
||||
Logger *log.Logger
|
||||
|
||||
MaxOrderAmount fixedpoint.Value `json:"maxOrderAmount,omitempty"`
|
||||
MinQuoteBalance fixedpoint.Value `json:"minQuoteBalance,omitempty"`
|
||||
MaxBaseAssetBalance fixedpoint.Value `json:"maxBaseAssetBalance,omitempty"`
|
||||
MinBaseAssetBalance fixedpoint.Value `json:"minBaseAssetBalance,omitempty"`
|
||||
MaxOrderAmount fixedpoint.Value `json:"maxOrderAmount,omitempty" yaml:"maxOrderAmount,omitempty"`
|
||||
MinQuoteBalance fixedpoint.Value `json:"minQuoteBalance,omitempty" yaml:"minQuoteBalance,omitempty"`
|
||||
MaxBaseAssetBalance fixedpoint.Value `json:"maxBaseAssetBalance,omitempty" yaml:"maxBaseAssetBalance,omitempty"`
|
||||
MinBaseAssetBalance fixedpoint.Value `json:"minBaseAssetBalance,omitempty" yaml:"minBaseAssetBalance,omitempty"`
|
||||
}
|
||||
|
||||
// ProcessOrders filters and modifies the submit order objects by:
|
||||
|
|
Loading…
Reference in New Issue
Block a user