Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Classes | Public Member Functions | Public Attributes | List of all members
golos::market_history::detail::market_history_api_impl Class Reference
Inheritance diagram for golos::market_history::detail::market_history_api_impl:

Classes

struct  operation_process_fill_order_visitor
 

Public Member Functions

 market_history_api_impl (golos::application::application &_app)
 
market_ticker get_ticker (const string &base, const string &quote) const
 
market_volume get_volume (const string &base, const string &quote) const
 
order_book get_order_book (const string &base, const string &quote, unsigned limit) const
 
vector< market_tradeget_trade_history (const string &base, const string &quote, fc::time_point_sec start, fc::time_point_sec stop, unsigned limit=100) const
 
vector< order_history_objectget_fill_order_history (const string &a, const string &b, uint32_t limit) const
 
vector< bucket_objectget_market_history (const string &a, const string &b, uint32_t bucket_seconds, fc::time_point_sec start, fc::time_point_sec end) const
 
flat_set< uint32_t > get_market_history_buckets () const
 
vector< limit_order_objectget_limit_orders (const string &a, const string &b, uint32_t limit) const
 
std::vector< golos::application::extended_limit_orderget_limit_orders_by_owner (const string &owner) const
 
std::vector< call_order_objectget_call_orders_by_owner (const string &owner) const
 
std::vector< force_settlement_objectget_settle_orders_by_owner (const string &owner) const
 
vector< call_order_objectget_call_orders (const string &a, uint32_t limit) const
 
vector< force_settlement_objectget_settle_orders (const string &a, uint32_t limit) const
 
vector< call_order_objectget_margin_positions (const account_name_type &name) const
 
vector< collateral_bid_objectget_collateral_bids (const asset_name_type asset, uint32_t limit, uint32_t start, uint32_t skip) const
 
void subscribe_to_market (std::function< void(const variant &)> callback, string a, string b)
 
void unsubscribe_from_market (string a, string b)
 
std::vector< liquidity_balanceget_liquidity_queue (const string &start_account, uint32_t limit) const
 
vector< optional< asset_object > > lookup_asset_symbols (const vector< asset_name_type > &asset_symbols) const
 
void set_subscribe_callback (std::function< void(const variant &)> cb, bool clear_filter)
 
void set_pending_transaction_callback (std::function< void(const variant &)> cb)
 
void set_block_applied_callback (std::function< void(const variant &block_id)> cb)
 
void cancel_all_subscriptions ()
 
void on_applied_block (const chain::signed_block &b)
 

Public Attributes

fc::bloom_filter _subscribe_filter
 
std::function< void(const fc::variant &)> _subscribe_callback
 
std::function< void(const fc::variant &)> _pending_trx_callback
 
std::function< void(const fc::variant &)> _block_applied_callback
 
boost::signals2::scoped_connection _block_applied_connection
 
map< pair< asset_name_type, asset_name_type >, std::function< void(const variant &)> > _market_subscriptions
 
golos::application::applicationapp
 

Detailed Description

Definition at line 15 of file market_history_api.cpp.

Constructor & Destructor Documentation

◆ market_history_api_impl()

golos::market_history::detail::market_history_api_impl::market_history_api_impl ( golos::application::application _app)
inline

Definition at line 17 of file market_history_api.cpp.

Member Function Documentation

◆ cancel_all_subscriptions()

void golos::market_history::detail::market_history_api_impl::cancel_all_subscriptions ( )

Definition at line 244 of file market_history_api.cpp.

◆ get_call_orders()

vector< call_order_object > golos::market_history::detail::market_history_api_impl::get_call_orders ( const string &  a,
uint32_t  limit 
) const

Definition at line 546 of file market_history_api.cpp.

◆ get_call_orders_by_owner()

std::vector< call_order_object > golos::market_history::detail::market_history_api_impl::get_call_orders_by_owner ( const string &  owner) const

Definition at line 676 of file market_history_api.cpp.

◆ get_collateral_bids()

vector< collateral_bid_object > golos::market_history::detail::market_history_api_impl::get_collateral_bids ( const asset_name_type  asset,
uint32_t  limit,
uint32_t  start,
uint32_t  skip 
) const

Definition at line 580 of file market_history_api.cpp.

◆ get_fill_order_history()

vector< order_history_object > golos::market_history::detail::market_history_api_impl::get_fill_order_history ( const string &  a,
const string &  b,
uint32_t  limit 
) const

Definition at line 446 of file market_history_api.cpp.

◆ get_limit_orders()

vector< limit_order_object > golos::market_history::detail::market_history_api_impl::get_limit_orders ( const string &  a,
const string &  b,
uint32_t  limit 
) const
Returns
the limit orders for both sides of the book for the two assets specified up to limit number on each side.

Definition at line 516 of file market_history_api.cpp.

◆ get_limit_orders_by_owner()

std::vector< golos::application::extended_limit_order > golos::market_history::detail::market_history_api_impl::get_limit_orders_by_owner ( const string &  owner) const

Definition at line 643 of file market_history_api.cpp.

◆ get_liquidity_queue()

std::vector< liquidity_balance > golos::market_history::detail::market_history_api_impl::get_liquidity_queue ( const string &  start_account,
uint32_t  limit 
) const

Definition at line 608 of file market_history_api.cpp.

◆ get_margin_positions()

vector< call_order_object > golos::market_history::detail::market_history_api_impl::get_margin_positions ( const account_name_type &  name) const

Definition at line 564 of file market_history_api.cpp.

◆ get_market_history()

vector< bucket_object > golos::market_history::detail::market_history_api_impl::get_market_history ( const string &  a,
const string &  b,
uint32_t  bucket_seconds,
fc::time_point_sec  start,
fc::time_point_sec  end 
) const

Definition at line 477 of file market_history_api.cpp.

◆ get_market_history_buckets()

flat_set< uint32_t > golos::market_history::detail::market_history_api_impl::get_market_history_buckets ( ) const

Definition at line 508 of file market_history_api.cpp.

◆ get_order_book()

order_book golos::market_history::detail::market_history_api_impl::get_order_book ( const string &  base,
const string &  quote,
unsigned  limit 
) const

Definition at line 343 of file market_history_api.cpp.

◆ get_settle_orders()

vector< force_settlement_object > golos::market_history::detail::market_history_api_impl::get_settle_orders ( const string &  a,
uint32_t  limit 
) const

Definition at line 555 of file market_history_api.cpp.

◆ get_settle_orders_by_owner()

std::vector< force_settlement_object > golos::market_history::detail::market_history_api_impl::get_settle_orders_by_owner ( const string &  owner) const

Definition at line 688 of file market_history_api.cpp.

◆ get_ticker()

market_ticker golos::market_history::detail::market_history_api_impl::get_ticker ( const string &  base,
const string &  quote 
) const

Definition at line 276 of file market_history_api.cpp.

◆ get_trade_history()

std::vector< market_trade > golos::market_history::detail::market_history_api_impl::get_trade_history ( const string &  base,
const string &  quote,
fc::time_point_sec  start,
fc::time_point_sec  stop,
unsigned  limit = 100 
) const

Definition at line 396 of file market_history_api.cpp.

◆ get_volume()

market_volume golos::market_history::detail::market_history_api_impl::get_volume ( const string &  base,
const string &  quote 
) const

Definition at line 331 of file market_history_api.cpp.

◆ lookup_asset_symbols()

vector< optional< asset_object > > golos::market_history::detail::market_history_api_impl::lookup_asset_symbols ( const vector< asset_name_type > &  asset_symbols) const

Definition at line 265 of file market_history_api.cpp.

◆ on_applied_block()

void golos::market_history::detail::market_history_api_impl::on_applied_block ( const chain::signed_block &  b)

Definition at line 228 of file market_history_api.cpp.

◆ set_block_applied_callback()

void golos::market_history::detail::market_history_api_impl::set_block_applied_callback ( std::function< void(const variant &block_id)>  cb)

Definition at line 236 of file market_history_api.cpp.

◆ set_pending_transaction_callback()

void golos::market_history::detail::market_history_api_impl::set_pending_transaction_callback ( std::function< void(const variant &)>  cb)

Definition at line 224 of file market_history_api.cpp.

◆ set_subscribe_callback()

void golos::market_history::detail::market_history_api_impl::set_subscribe_callback ( std::function< void(const variant &)>  cb,
bool  clear_filter 
)

Definition at line 211 of file market_history_api.cpp.

◆ subscribe_to_market()

void golos::market_history::detail::market_history_api_impl::subscribe_to_market ( std::function< void(const variant &)>  callback,
string  a,
string  b 
)

Definition at line 248 of file market_history_api.cpp.

◆ unsubscribe_from_market()

void golos::market_history::detail::market_history_api_impl::unsubscribe_from_market ( string  a,
string  b 
)

Definition at line 257 of file market_history_api.cpp.

Member Data Documentation

◆ _block_applied_callback

std::function<void(const fc::variant &)> golos::market_history::detail::market_history_api_impl::_block_applied_callback

Definition at line 104 of file market_history_api.cpp.

◆ _block_applied_connection

boost::signals2::scoped_connection golos::market_history::detail::market_history_api_impl::_block_applied_connection

Definition at line 106 of file market_history_api.cpp.

◆ _market_subscriptions

map<pair<asset_name_type, asset_name_type>, std::function<void(const variant &)> > golos::market_history::detail::market_history_api_impl::_market_subscriptions

Definition at line 109 of file market_history_api.cpp.

◆ _pending_trx_callback

std::function<void(const fc::variant &)> golos::market_history::detail::market_history_api_impl::_pending_trx_callback

Definition at line 103 of file market_history_api.cpp.

◆ _subscribe_callback

std::function<void(const fc::variant &)> golos::market_history::detail::market_history_api_impl::_subscribe_callback

Definition at line 102 of file market_history_api.cpp.

◆ _subscribe_filter

fc::bloom_filter golos::market_history::detail::market_history_api_impl::_subscribe_filter
mutable

Definition at line 101 of file market_history_api.cpp.

◆ app

golos::application::application& golos::market_history::detail::market_history_api_impl::app

Definition at line 111 of file market_history_api.cpp.


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