Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrencySettings ¶
type CurrencySettings struct { MaximumOrdersWithLeverageRatio decimal.Decimal MaxLeverageRate decimal.Decimal MaximumHoldingRatio decimal.Decimal }
CurrencySettings contains relevant limits to assess risk
type Handler ¶
type Handler interface {
EvaluateOrder(order.Event, []holdings.Holding, compliance.Snapshot) (*order.Order, error)
}
Handler defines what is expected to be able to assess risk of an order
type Risk ¶
type Risk struct { CurrencySettings map[key.ExchangePairAsset]*CurrencySettings CanUseLeverage bool MaximumLeverage decimal.Decimal }
Risk contains all currency settings in order to evaluate potential orders
Click to show internal directories.
Click to hide internal directories.