Versions in this module Expand all Collapse all v0 v0.0.2 Oct 30, 2019 v0.0.1 Oct 30, 2019 Changes in this version + const CandleInterval15M + const CandleInterval1M + const CandleInterval30M + const CandleInterval5M + const CandleInterval60M + const EntityName + const MaxTicks + const QueryCandles + const QueryDaily + const QueryHistory + func NewQuerier(keeper Keeper) sdk.Querier + func RegisterRoutes(ctx context.CLIContext, r *mux.Router, cdc *codec.Codec) + type CandleEntry struct + Close sdk.Uint + Date time.Time + High sdk.Uint + Low sdk.Uint + Open sdk.Uint + type CandleInterval string + func NewCandleIntervalFromString(in string) (CandleInterval, error) + func (c *CandleInterval) UnmarshalJSON(data []byte) error + func (c CandleInterval) Delta() int64 + type CandleQueryParams struct + From time.Time + Interval CandleInterval + To time.Time + type CandleQueryResult struct + Candles []CandleEntry + MarketID store.EntityID + Pair string + type DailyQueryResult struct + Change sdk.Dec + High sdk.Uint + Last sdk.Uint + Low sdk.Uint + Pair string + Volume sdk.Uint + type IteratorCB func(tick Tick) bool + type Keeper struct + func NewKeeper(db dbm.DB, cdc *codec.Codec) Keeper + func (k Keeper) IteratorByMarketAndInterval(mktID store.EntityID, from time.Time, to time.Time, cb IteratorCB) + func (k Keeper) OnEvent(event interface{}) error + func (k Keeper) OnFillEvent(event types.Fill) + func (k Keeper) ReverseIteratorByMarket(mktID store.EntityID, cb IteratorCB) + func (k Keeper) ReverseIteratorByMarketFrom(mktID store.EntityID, from time.Time, cb IteratorCB) + type Tick struct + BlockNumber int64 + BlockTime int64 + MarketID store.EntityID + Pair string + Price sdk.Uint + type TickEntry struct + BlockNumber int64 + Price sdk.Uint + Timestamp int64 + type TickQueryResult struct + MarketID store.EntityID + Pair string + Ticks []TickEntry + func (t TickQueryResult) String() string