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

an offer to sell a amount of a asset at a specified exchange rate by a certain timeThis limit_order_objects are indexed by expiration and is automatically deleted on the first block after expiration. More...

#include <market_object.hpp>

Inheritance diagram for golos::chain::limit_order_object:
golos::application::extended_limit_order

Public Member Functions

template<typename Constructor , typename Allocator >
 limit_order_object (Constructor &&c, allocator< Allocator > a)
 
 limit_order_object ()
 
pair< protocol::asset_name_type, protocol::asset_name_type > get_market () const
 
protocol::asset< 0, 17, 0 > amount_for_sale () const
 
protocol::asset< 0, 17, 0 > amount_to_receive () const
 

Public Attributes

id_type id
 
time_point_sec created
 
time_point_sec expiration
 
account_name_type seller
 
protocol::integral_id_type order_id = 0
 
share_type for_sale
 asset id is sell_price.base.symbol More...
 
protocol::price< 0, 17, 0 > sell_price
 
share_type deferred_fee
 

Detailed Description

an offer to sell a amount of a asset at a specified exchange rate by a certain time

This limit_order_objects are indexed by expiration and is automatically deleted on the first block after expiration.

Definition at line 16 of file market_object.hpp.

Constructor & Destructor Documentation

◆ limit_order_object() [1/2]

template<typename Constructor , typename Allocator >
golos::chain::limit_order_object::limit_order_object ( Constructor &&  c,
allocator< Allocator >  a 
)
inline

Definition at line 19 of file market_object.hpp.

◆ limit_order_object() [2/2]

golos::chain::limit_order_object::limit_order_object ( )
inline

Definition at line 23 of file market_object.hpp.

Member Function Documentation

◆ amount_for_sale()

protocol::asset<0, 17, 0> golos::chain::limit_order_object::amount_for_sale ( ) const
inline

Definition at line 45 of file market_object.hpp.

◆ amount_to_receive()

protocol::asset<0, 17, 0> golos::chain::limit_order_object::amount_to_receive ( ) const
inline

Definition at line 49 of file market_object.hpp.

◆ get_market()

pair<protocol::asset_name_type, protocol::asset_name_type> golos::chain::limit_order_object::get_market ( ) const
inline

Definition at line 37 of file market_object.hpp.

Member Data Documentation

◆ created

time_point_sec golos::chain::limit_order_object::created

Definition at line 29 of file market_object.hpp.

◆ deferred_fee

share_type golos::chain::limit_order_object::deferred_fee

Definition at line 35 of file market_object.hpp.

◆ expiration

time_point_sec golos::chain::limit_order_object::expiration

Definition at line 30 of file market_object.hpp.

◆ for_sale

share_type golos::chain::limit_order_object::for_sale

asset id is sell_price.base.symbol

Definition at line 33 of file market_object.hpp.

◆ id

id_type golos::chain::limit_order_object::id

Definition at line 27 of file market_object.hpp.

◆ order_id

protocol::integral_id_type golos::chain::limit_order_object::order_id = 0

Definition at line 32 of file market_object.hpp.

◆ sell_price

protocol::price<0, 17, 0> golos::chain::limit_order_object::sell_price

Definition at line 34 of file market_object.hpp.

◆ seller

account_name_type golos::chain::limit_order_object::seller

Definition at line 31 of file market_object.hpp.


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