Documentation ¶
Index ¶
- type BookRes
- type BookResItem
- type RedisBlock
- func (rb RedisBlock) BlockHeight() int64
- func (rb *RedisBlock) Clear()
- func (rb RedisBlock) DataType() types.StreamDataKind
- func (rb *RedisBlock) Empty() bool
- func (rb *RedisBlock) SetData(ctx sdk.Context, orderKeeper types.OrderKeeper, tokenKeeper types.TokenKeeper, ...)
- func (rb RedisBlock) String() string
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookRes ¶
type BookRes struct { Asks [][]string `json:"asks"` Bids [][]string `json:"bids"` Product string `json:"instrument_id"` Timestamp string `json:"timestamp"` }
func ConvertBookRes ¶
type BookResItem ¶
type RedisBlock ¶
type RedisBlock struct { Height int64 `json:"height"` // blockHeight OrdersMap map[string][]backend.Order `json:"orders"` // key: address DepthBooksMap map[string]BookRes `json:"depthBooks"` // key: product AccountsMap map[string]token.CoinInfo `json:"accounts"` // key: instrument_id:<address> Instruments map[string]struct{} `json:"instruments"` // P3K:spot:instruments MatchesMap map[string]backend.MatchResult `json:"matches"` // key: product }
func NewRedisBlock ¶
func NewRedisBlock() *RedisBlock
func (RedisBlock) BlockHeight ¶
func (rb RedisBlock) BlockHeight() int64
BlockHeight impl IsStreamData interface
func (*RedisBlock) Clear ¶
func (rb *RedisBlock) Clear()
func (RedisBlock) DataType ¶
func (rb RedisBlock) DataType() types.StreamDataKind
func (*RedisBlock) Empty ¶
func (rb *RedisBlock) Empty() bool
func (*RedisBlock) SetData ¶
func (rb *RedisBlock) SetData(ctx sdk.Context, orderKeeper types.OrderKeeper, tokenKeeper types.TokenKeeper, dexKeeper types.DexKeeper, cache *common.Cache)
func (RedisBlock) String ¶
func (rb RedisBlock) String() string
Click to show internal directories.
Click to hide internal directories.