Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::chain::limit_order_create_operation Class Reference

instructs the blockchain to attempt to sell one asset for anotherThe blockchain will atempt to sell amount_to_sell.asset_id for as much min_to_receive.asset_id as possible. The fee will be paid by the seller's account. Market fees will apply as specified by the issuer of both the selling asset and the receiving asset as a percentage of the amount exchanged. More...

#include <market.hpp>

Inheritance diagram for graphene::chain::limit_order_create_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

pair< asset_id_type, asset_id_typeget_market () const
 
account_id_type fee_payer () const
 
void validate () const
 
price get_price () const
 
- Public Member Functions inherited from graphene::chain::base_operation
template<typename T >
share_type calculate_fee (const T &params) const
 
void get_required_authorities (vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_id_type > &) const
 
void get_required_owner_authorities (flat_set< account_id_type > &) const
 
void validate () const
 

Public Attributes

asset fee
 
account_id_type seller
 
asset amount_to_sell
 
asset min_to_receive
 
time_point_sec expiration = time_point_sec::maximum()
 
bool fill_or_kill = false
 If this flag is set the entire order must be filled or the operation is rejected. More...
 
extensions_type extensions
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::chain::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

instructs the blockchain to attempt to sell one asset for another

The blockchain will atempt to sell amount_to_sell.asset_id for as much min_to_receive.asset_id as possible. The fee will be paid by the seller's account. Market fees will apply as specified by the issuer of both the selling asset and the receiving asset as a percentage of the amount exchanged.

If either the selling asset or the receiving asset is white list restricted, the order will only be created if the seller is on the white list of the restricted asset type.

Market orders are matched in the order they are included in the block chain.

Definition at line 48 of file market.hpp.

Member Function Documentation

◆ fee_payer()

account_id_type graphene::chain::limit_order_create_operation::fee_payer ( ) const
inline

Definition at line 71 of file market.hpp.

◆ get_market()

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

Definition at line 65 of file market.hpp.

◆ get_price()

price graphene::chain::limit_order_create_operation::get_price ( ) const
inline

Definition at line 73 of file market.hpp.

◆ validate()

void graphene::chain::limit_order_create_operation::validate ( ) const

Definition at line 28 of file market.cpp.

Member Data Documentation

◆ amount_to_sell

asset graphene::chain::limit_order_create_operation::amount_to_sell

Definition at line 54 of file market.hpp.

◆ expiration

time_point_sec graphene::chain::limit_order_create_operation::expiration = time_point_sec::maximum()

The order will be removed from the books if not filled by expiration Upon expiration, all unsold asset will be returned to seller

Definition at line 59 of file market.hpp.

◆ extensions

extensions_type graphene::chain::limit_order_create_operation::extensions

Definition at line 63 of file market.hpp.

◆ fee

asset graphene::chain::limit_order_create_operation::fee

Definition at line 52 of file market.hpp.

◆ fill_or_kill

bool graphene::chain::limit_order_create_operation::fill_or_kill = false

If this flag is set the entire order must be filled or the operation is rejected.

Definition at line 62 of file market.hpp.

◆ min_to_receive

asset graphene::chain::limit_order_create_operation::min_to_receive

Definition at line 55 of file market.hpp.

◆ seller

account_id_type graphene::chain::limit_order_create_operation::seller

Definition at line 53 of file market.hpp.


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