Documentation ¶
Index ¶
- Variables
- type Pool
- func (p *Pool) Cancel(partyID string, orderID string) ([]*types.StopOrder, error)
- func (p *Pool) CountForParty(party string) uint64
- func (p *Pool) GetStopOrderCount() uint64
- func (p *Pool) Insert(order *types.StopOrder)
- func (p *Pool) PriceUpdated(newPrice *num.Uint) (triggered, cancelled []*types.StopOrder)
- func (p *Pool) RemoveExpired(orderIDs []string) []*types.StopOrder
- func (p *Pool) Settled() []*types.StopOrder
- func (p *Pool) ToProto() *v1.StopOrders
- type PricedStopOrders
- func (p *PricedStopOrders) DumpFallsBelow() string
- func (p *PricedStopOrders) DumpRisesAbove() string
- func (p *PricedStopOrders) Insert(id string, price *num.Uint, direction types.StopOrderTriggerDirection)
- func (p *PricedStopOrders) PriceUpdated(newPrice *num.Uint) []string
- func (p *PricedStopOrders) Remove(id string) error
- func (p *PricedStopOrders) ToProto() *v1.PricedStopOrders
- type TrailingStopOrders
- func (p *TrailingStopOrders) DumpFallsBelow() string
- func (p *TrailingStopOrders) DumpRisesAbove() string
- func (p *TrailingStopOrders) Insert(id string, offset num.Decimal, direction types.StopOrderTriggerDirection)
- func (p *TrailingStopOrders) PriceUpdated(newPrice *num.Uint) []string
- func (p *TrailingStopOrders) Remove(id string) error
- func (p *TrailingStopOrders) ToProto() *v1.TrailingStopOrders
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func NewFromProto ¶
func NewFromProto(log *logging.Logger, p *v1.StopOrders) *Pool
func (*Pool) CountForParty ¶
func (*Pool) GetStopOrderCount ¶
func (*Pool) PriceUpdated ¶
func (*Pool) ToProto ¶
func (p *Pool) ToProto() *v1.StopOrders
type PricedStopOrders ¶
type PricedStopOrders struct {
// contains filtered or unexported fields
}
func NewPricedStopOrders ¶
func NewPricedStopOrders() *PricedStopOrders
func NewPricedStopOrdersFromProto ¶
func NewPricedStopOrdersFromProto(p *v1.PricedStopOrders) *PricedStopOrders
func (*PricedStopOrders) DumpFallsBelow ¶
func (p *PricedStopOrders) DumpFallsBelow() string
func (*PricedStopOrders) DumpRisesAbove ¶
func (p *PricedStopOrders) DumpRisesAbove() string
func (*PricedStopOrders) Insert ¶
func (p *PricedStopOrders) Insert( id string, price *num.Uint, direction types.StopOrderTriggerDirection, )
func (*PricedStopOrders) PriceUpdated ¶
func (p *PricedStopOrders) PriceUpdated(newPrice *num.Uint) []string
func (*PricedStopOrders) Remove ¶
func (p *PricedStopOrders) Remove(id string) error
func (*PricedStopOrders) ToProto ¶
func (p *PricedStopOrders) ToProto() *v1.PricedStopOrders
type TrailingStopOrders ¶
type TrailingStopOrders struct {
// contains filtered or unexported fields
}
func NewTrailingStopOrders ¶
func NewTrailingStopOrders() *TrailingStopOrders
func NewTrailingStopOrdersFromProto ¶
func NewTrailingStopOrdersFromProto(p *v1.TrailingStopOrders) *TrailingStopOrders
func (*TrailingStopOrders) DumpFallsBelow ¶
func (p *TrailingStopOrders) DumpFallsBelow() string
func (*TrailingStopOrders) DumpRisesAbove ¶
func (p *TrailingStopOrders) DumpRisesAbove() string
func (*TrailingStopOrders) Insert ¶
func (p *TrailingStopOrders) Insert( id string, offset num.Decimal, direction types.StopOrderTriggerDirection, )
func (*TrailingStopOrders) PriceUpdated ¶
func (p *TrailingStopOrders) PriceUpdated(newPrice *num.Uint) []string
func (*TrailingStopOrders) Remove ¶
func (p *TrailingStopOrders) Remove(id string) error
func (*TrailingStopOrders) ToProto ¶
func (p *TrailingStopOrders) ToProto() *v1.TrailingStopOrders
Click to show internal directories.
Click to hide internal directories.