Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
graphene::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 graphene::chain::limit_order_object:

Public Member Functions

pair< asset_id_type, asset_id_typeget_market () const
 
asset amount_for_sale () const
 
asset amount_to_receive () const
 
asset_id_type sell_asset_id () const
 
asset_id_type receive_asset_id () const
 

Public Attributes

time_point_sec expiration
 
account_id_type seller
 
share_type for_sale
 asset id is sell_price.base.asset_id More...
 
price sell_price
 
share_type deferred_fee
 fee converted to CORE More...
 
asset deferred_paid_fee
 originally paid fee More...
 

Static Public Attributes

static const uint8_t space_id = protocol_ids
 
static const uint8_t type_id = limit_order_object_type
 

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 45 of file market_object.hpp.

Member Function Documentation

◆ amount_for_sale()

asset graphene::chain::limit_order_object::amount_for_sale ( ) const
inline

Definition at line 65 of file market_object.hpp.

◆ amount_to_receive()

asset graphene::chain::limit_order_object::amount_to_receive ( ) const
inline

Definition at line 66 of file market_object.hpp.

◆ get_market()

pair<asset_id_type,asset_id_type> graphene::chain::limit_order_object::get_market ( ) const
inline

Definition at line 58 of file market_object.hpp.

◆ receive_asset_id()

asset_id_type graphene::chain::limit_order_object::receive_asset_id ( ) const
inline

Definition at line 68 of file market_object.hpp.

◆ sell_asset_id()

asset_id_type graphene::chain::limit_order_object::sell_asset_id ( ) const
inline

Definition at line 67 of file market_object.hpp.

Member Data Documentation

◆ deferred_fee

share_type graphene::chain::limit_order_object::deferred_fee

fee converted to CORE

Definition at line 55 of file market_object.hpp.

◆ deferred_paid_fee

asset graphene::chain::limit_order_object::deferred_paid_fee

originally paid fee

Definition at line 56 of file market_object.hpp.

◆ expiration

time_point_sec graphene::chain::limit_order_object::expiration

Definition at line 51 of file market_object.hpp.

◆ for_sale

share_type graphene::chain::limit_order_object::for_sale

asset id is sell_price.base.asset_id

Definition at line 53 of file market_object.hpp.

◆ sell_price

price graphene::chain::limit_order_object::sell_price

Definition at line 54 of file market_object.hpp.

◆ seller

account_id_type graphene::chain::limit_order_object::seller

Definition at line 52 of file market_object.hpp.

◆ space_id

const uint8_t graphene::chain::limit_order_object::space_id = protocol_ids
static

Definition at line 48 of file market_object.hpp.

◆ type_id

const uint8_t graphene::chain::limit_order_object::type_id = limit_order_object_type
static

Definition at line 49 of file market_object.hpp.


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