Documentation ¶
Index ¶
- type Manager
- func (m *Manager) AddOrder(order *types.Order)
- func (m *Manager) DelOrder(order *types.Order)
- func (m *Manager) GetAllOrders(baseSymbol, quoteSymbol sdk.Symbol) ([]*types.Order, []*types.Order)
- func (m *Manager) GetExpiredOrders(ctx sdk.Context) []*types.Order
- func (m *Manager) GetMarkets() []*Market
- func (m *Manager) Init(ctx sdk.Context)
- type Market
- func (e *Market) AddOrder(order *types.Order)
- func (e *Market) BaseSymbol() sdk.Symbol
- func (e *Market) BuyOrderBook() *Orderbook
- func (e *Market) DelOrder(order *types.Order)
- func (e *Market) GetAllOrders() ([]*types.Order, []*types.Order)
- func (e *Market) GetExpiredOrders(ctx sdk.Context) []*types.Order
- func (e *Market) GetHighestBuyOrder() *types.Order
- func (e *Market) GetLowestSellOrder() *types.Order
- func (e *Market) QuoteSymbol() sdk.Symbol
- func (e *Market) SellOrderBook() *Orderbook
- type OpenswapKeeper
- type OrderIterator
- type OrderReverseIterator
- type Orderbook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(openswapKeeper OpenswapKeeper) *Manager
func (*Manager) GetAllOrders ¶
func (*Manager) GetExpiredOrders ¶
func (*Manager) GetMarkets ¶
type Market ¶
type Market struct {
// contains filtered or unexported fields
}
func (*Market) BaseSymbol ¶
func (*Market) BuyOrderBook ¶
func (*Market) GetHighestBuyOrder ¶
func (*Market) GetLowestSellOrder ¶
func (*Market) QuoteSymbol ¶
func (*Market) SellOrderBook ¶
type OpenswapKeeper ¶
type OrderIterator ¶
type OrderIterator struct {
redblacktree.Iterator
}
func NewOrderIterator ¶
func NewOrderIterator(t *redblacktree.Tree) *OrderIterator
func (*OrderIterator) Value ¶
func (it *OrderIterator) Value() *types.Order
type OrderReverseIterator ¶
type OrderReverseIterator struct {
redblacktree.Iterator
}
func NewOrderReverseIterator ¶
func NewOrderReverseIterator(t *redblacktree.Tree) *OrderReverseIterator
func (*OrderReverseIterator) Next ¶
func (it *OrderReverseIterator) Next() bool
func (*OrderReverseIterator) Value ¶
func (it *OrderReverseIterator) Value() *types.Order
type Orderbook ¶
type Orderbook struct {
// contains filtered or unexported fields
}
func NewOrderbook ¶
func NewOrderbook() *Orderbook
func (*Orderbook) GetExpiredOrder ¶
func (*Orderbook) Iterator ¶
func (o *Orderbook) Iterator() *OrderIterator
func (*Orderbook) ReverseIterator ¶
func (o *Orderbook) ReverseIterator() *OrderReverseIterator
Click to show internal directories.
Click to hide internal directories.