Documentation
¶
Index ¶
- Variables
- func BoundQtyInDealt[T instr.Instrument](order *Limit[T], inventoryInDealt float64) error
- func GenerateClientOrderID() string
- func NormalizeMakerWithIncrement[T instr.Instrument](order *Limit[T], priceIncrement, qtyIncrement float64) error
- func NormalizeMakerWithPrecision[T instr.Instrument](order *Limit[T], pricePrecision, qtyPrecision int) error
- func NormalizeMakerWithRefData[T instr.Instrument](order *Limit[T], refData *refdata.Composite) error
- func NormalizeTakerWithIncrement[T instr.Instrument](order *Limit[T], priceIncrement, qtyIncrement float64) error
- func NormalizeTakerWithPrecision[T instr.Instrument](order *Limit[T], pricePrecision, qtyPrecision int) error
- func NormalizeTakerWithRefData[T instr.Instrument](order *Limit[T], refData *refdata.Composite) error
- func RoundPriceAggressiveWithIncrement[T instr.Instrument](order *Limit[T], increment float64) error
- func RoundPriceAggressiveWithPrecision[T instr.Instrument](order *Limit[T], precision int) error
- func RoundPricePassiveWithIncrement[T instr.Instrument](order *Limit[T], increment float64) error
- func RoundPricePassiveWithPrecision[T instr.Instrument](order *Limit[T], precision int) error
- func RoundQtyWithIncrement[T instr.Instrument](order *Limit[T], increment float64)
- func RoundQtyWithPrecision[T instr.Instrument](order *Limit[T], precision int)
- func Skew[T instr.Instrument](order *Limit[T], skewBps float64)
- func ValidateLimit[T instr.Instrument](order *Limit[T]) error
- func ValidateLimitWithBaseConstraints[T instr.Instrument](order *Limit[T], baseMinTradeSize, baseMaxTradeSize float64) error
- func ValidateLimitWithRefData[T instr.Instrument](order *Limit[T], refData *refdata.Composite) error
- func ValidateLimitWithTermConstraints[T instr.Instrument](order *Limit[T], termMinTradeSize, termMaxTradeSize float64) error
- type Limit
- type Market
Constants ¶
This section is empty.
Variables ¶
View Source
var NoExchangeError = errors.New("nil exchange metadata")
View Source
var NoOrderError = errors.New("nil order")
View Source
var NoSideError = errors.New("nil order side")
View Source
var NoTimeInForceError = errors.New("nil time in force")
View Source
var NonPositivePriceError = errors.New("non-positive order price")
View Source
var NonPositiveQtyError = errors.New("non-positive order qty")
Functions ¶
func BoundQtyInDealt ¶
func BoundQtyInDealt[T instr.Instrument](order *Limit[T], inventoryInDealt float64) error
func GenerateClientOrderID ¶
func GenerateClientOrderID() string
func NormalizeMakerWithIncrement ¶
func NormalizeMakerWithIncrement[T instr.Instrument](order *Limit[T], priceIncrement, qtyIncrement float64) error
func NormalizeMakerWithPrecision ¶
func NormalizeMakerWithPrecision[T instr.Instrument](order *Limit[T], pricePrecision, qtyPrecision int) error
func NormalizeTakerWithIncrement ¶
func NormalizeTakerWithIncrement[T instr.Instrument](order *Limit[T], priceIncrement, qtyIncrement float64) error
func NormalizeTakerWithPrecision ¶
func NormalizeTakerWithPrecision[T instr.Instrument](order *Limit[T], pricePrecision, qtyPrecision int) error
func RoundPriceAggressiveWithIncrement ¶
func RoundPriceAggressiveWithIncrement[T instr.Instrument](order *Limit[T], increment float64) error
func RoundPriceAggressiveWithPrecision ¶
func RoundPriceAggressiveWithPrecision[T instr.Instrument](order *Limit[T], precision int) error
func RoundPricePassiveWithIncrement ¶
func RoundPricePassiveWithIncrement[T instr.Instrument](order *Limit[T], increment float64) error
func RoundPricePassiveWithPrecision ¶
func RoundPricePassiveWithPrecision[T instr.Instrument](order *Limit[T], precision int) error
func RoundQtyWithIncrement ¶
func RoundQtyWithIncrement[T instr.Instrument](order *Limit[T], increment float64)
func RoundQtyWithPrecision ¶
func RoundQtyWithPrecision[T instr.Instrument](order *Limit[T], precision int)
func ValidateLimit ¶
func ValidateLimit[T instr.Instrument](order *Limit[T]) error
func ValidateLimitWithBaseConstraints ¶
func ValidateLimitWithBaseConstraints[T instr.Instrument](order *Limit[T], baseMinTradeSize, baseMaxTradeSize float64) error
func ValidateLimitWithTermConstraints ¶
func ValidateLimitWithTermConstraints[T instr.Instrument](order *Limit[T], termMinTradeSize, termMaxTradeSize float64) error
Types ¶
Click to show internal directories.
Click to hide internal directories.