BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
graphene::market_history::detail::market_history_plugin_impl Class Reference

Public Member Functions

 market_history_plugin_impl (market_history_plugin &_plugin)
 
void update_market_histories (const signed_block &b)
 
void update_liquidity_pool_histories (time_point_sec time, const operation_history_object &oho, const lp_ticker_meta_object *&lp_meta)
 process all operations related to liquidity pools More...
 
graphene::chain::databasedatabase ()
 

Public Attributes

market_history_plugin_self
 
flat_set< uint32_t > _tracked_buckets
 
uint32_t _maximum_history_per_bucket_size = 1000
 
uint32_t _max_order_his_records_per_market = 1000
 
uint32_t _max_order_his_seconds_per_market = 259200
 

Detailed Description

Definition at line 43 of file market_history_plugin.cpp.

Constructor & Destructor Documentation

◆ market_history_plugin_impl()

graphene::market_history::detail::market_history_plugin_impl::market_history_plugin_impl ( market_history_plugin _plugin)
inlineexplicit

Definition at line 46 of file market_history_plugin.cpp.

Member Function Documentation

◆ database()

graphene::chain::database& graphene::market_history::detail::market_history_plugin_impl::database ( )
inline

Definition at line 58 of file market_history_plugin.cpp.

◆ update_liquidity_pool_histories()

void graphene::market_history::detail::market_history_plugin_impl::update_liquidity_pool_histories ( time_point_sec  time,
const operation_history_object oho,
const lp_ticker_meta_object *&  lp_meta 
)

process all operations related to liquidity pools

Definition at line 536 of file market_history_plugin.cpp.

◆ update_market_histories()

void graphene::market_history::detail::market_history_plugin_impl::update_market_histories ( const signed_block &  b)

this method is called as a callback after a block is applied and will process/index all operations that were applied in the block.

Definition at line 296 of file market_history_plugin.cpp.

Member Data Documentation

◆ _max_order_his_records_per_market

uint32_t graphene::market_history::detail::market_history_plugin_impl::_max_order_his_records_per_market = 1000

Definition at line 66 of file market_history_plugin.cpp.

◆ _max_order_his_seconds_per_market

uint32_t graphene::market_history::detail::market_history_plugin_impl::_max_order_his_seconds_per_market = 259200

Definition at line 67 of file market_history_plugin.cpp.

◆ _maximum_history_per_bucket_size

uint32_t graphene::market_history::detail::market_history_plugin_impl::_maximum_history_per_bucket_size = 1000

Definition at line 65 of file market_history_plugin.cpp.

◆ _self

market_history_plugin& graphene::market_history::detail::market_history_plugin_impl::_self

Definition at line 63 of file market_history_plugin.cpp.

◆ _tracked_buckets

flat_set<uint32_t> graphene::market_history::detail::market_history_plugin_impl::_tracked_buckets

Definition at line 64 of file market_history_plugin.cpp.


The documentation for this class was generated from the following file: