BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Namespaces | Macros | Typedefs | Enumerations
market_history_plugin.hpp File Reference
#include <graphene/app/plugin.hpp>
#include <graphene/chain/database.hpp>
#include <graphene/chain/operation_history_object.hpp>
#include <fc/thread/future.hpp>
#include <fc/uint128.hpp>
#include <boost/multi_index/composite_key.hpp>

Go to the source code of this file.

Classes

struct  graphene::market_history::bucket_key
 
struct  graphene::market_history::bucket_object
 
struct  graphene::market_history::history_key
 
struct  graphene::market_history::order_history_object
 
struct  graphene::market_history::order_history_object_key_base_extractor
 
struct  graphene::market_history::order_history_object_key_quote_extractor
 
struct  graphene::market_history::order_history_object_key_sequence_extractor
 
struct  graphene::market_history::market_ticker_object
 
struct  graphene::market_history::market_ticker_meta_object
 
struct  graphene::market_history::liquidity_pool_history_object
 
struct  graphene::market_history::lp_ticker_meta_object
 Stores meta data for liquidity pool tickers. More...
 
struct  graphene::market_history::liquidity_pool_ticker_object
 Stores ticker data for liquidity pools. More...
 
class  graphene::market_history::market_history_plugin
 

Namespaces

 graphene
 
 graphene::market_history
 
 graphene::market_history::detail
 

Macros

#define MARKET_HISTORY_SPACE_ID   5
 

Typedefs

using graphene::market_history::bucket_object_multi_index_type = multi_index_container< bucket_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_unique< tag< by_key >, member< bucket_object, bucket_key, &bucket_object::key > > > >
 
using graphene::market_history::order_history_multi_index_type = multi_index_container< order_history_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_unique< tag< by_key >, member< order_history_object, history_key, &order_history_object::key > >, ordered_unique< tag< by_market_time >, composite_key< order_history_object, order_history_object_key_base_extractor, order_history_object_key_quote_extractor, member< order_history_object, time_point_sec, &order_history_object::time >, order_history_object_key_sequence_extractor >, composite_key_compare< std::less< asset_id_type >, std::less< asset_id_type >, std::greater< time_point_sec >, std::less< int64_t > > > > >
 
using graphene::market_history::market_ticker_obj_mlti_idx_type = multi_index_container< market_ticker_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_non_unique< tag< by_volume >, member< market_ticker_object, fc::uint128_t, &market_ticker_object::base_volume > >, ordered_unique< tag< by_market >, composite_key< market_ticker_object, member< market_ticker_object, asset_id_type, &market_ticker_object::base >, member< market_ticker_object, asset_id_type, &market_ticker_object::quote > > > > >
 
using graphene::market_history::bucket_index = generic_index< bucket_object, bucket_object_multi_index_type >
 
using graphene::market_history::history_index = generic_index< order_history_object, order_history_multi_index_type >
 
using graphene::market_history::market_ticker_index = generic_index< market_ticker_object, market_ticker_obj_mlti_idx_type >
 
using graphene::market_history::lp_history_multi_index_type = multi_index_container< liquidity_pool_history_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, ordered_unique< tag< by_pool_seq >, composite_key< liquidity_pool_history_object, member< liquidity_pool_history_object, liquidity_pool_id_type, &liquidity_pool_history_object::pool >, member< liquidity_pool_history_object, uint64_t, &liquidity_pool_history_object::sequence > >, composite_key_compare< std::less< liquidity_pool_id_type >, std::greater< uint64_t > > >, ordered_unique< tag< by_pool_time >, composite_key< liquidity_pool_history_object, member< liquidity_pool_history_object, liquidity_pool_id_type, &liquidity_pool_history_object::pool >, member< liquidity_pool_history_object, time_point_sec, &liquidity_pool_history_object::time >, member< liquidity_pool_history_object, uint64_t, &liquidity_pool_history_object::sequence > >, composite_key_compare< std::less< liquidity_pool_id_type >, std::greater< time_point_sec >, std::greater< uint64_t > > >, ordered_unique< tag< by_pool_op_type_seq >, composite_key< liquidity_pool_history_object, member< liquidity_pool_history_object, liquidity_pool_id_type, &liquidity_pool_history_object::pool >, member< liquidity_pool_history_object, int64_t, &liquidity_pool_history_object::op_type >, member< liquidity_pool_history_object, uint64_t, &liquidity_pool_history_object::sequence > >, composite_key_compare< std::less< liquidity_pool_id_type >, std::less< int64_t >, std::greater< uint64_t > > >, ordered_unique< tag< by_pool_op_type_time >, composite_key< liquidity_pool_history_object, member< liquidity_pool_history_object, liquidity_pool_id_type, &liquidity_pool_history_object::pool >, member< liquidity_pool_history_object, int64_t, &liquidity_pool_history_object::op_type >, member< liquidity_pool_history_object, time_point_sec, &liquidity_pool_history_object::time >, member< liquidity_pool_history_object, uint64_t, &liquidity_pool_history_object::sequence > >, composite_key_compare< std::less< liquidity_pool_id_type >, std::less< int64_t >, std::greater< time_point_sec >, std::greater< uint64_t > > > > >
 
using graphene::market_history::liquidity_pool_history_index = generic_index< liquidity_pool_history_object, lp_history_multi_index_type >
 
using graphene::market_history::liquidity_pool_ticker_id_type = object_id< MARKET_HISTORY_SPACE_ID, lp_ticker_object_type >
 
using graphene::market_history::lp_ticker_multi_index_type = multi_index_container< liquidity_pool_ticker_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > > > >
 
using graphene::market_history::liquidity_pool_ticker_index = generic_index< liquidity_pool_ticker_object, lp_ticker_multi_index_type >
 

Enumerations

enum  graphene::market_history::market_history_object_type {
  graphene::market_history::order_history_object_type = 0, graphene::market_history::bucket_object_type = 1, graphene::market_history::market_ticker_object_type = 2, graphene::market_history::market_ticker_meta_object_type = 3,
  graphene::market_history::lp_history_object_type = 4, graphene::market_history::lp_ticker_meta_object_type = 5, graphene::market_history::lp_ticker_object_type = 6
}
 

Macro Definition Documentation

◆ MARKET_HISTORY_SPACE_ID

#define MARKET_HISTORY_SPACE_ID   5

Definition at line 49 of file market_history_plugin.hpp.