BitShares-Core
6.1.0
BitShares blockchain implementation and command-line interface software
|
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>
Classes | |
struct | fee_parameters_type |
Public Member Functions | |
pair< asset_id_type, asset_id_type > | get_market () const |
account_id_type | fee_payer () const |
void | validate () const |
price | get_price () const |
![]() | |
virtual | ~base_operation ()=default |
template<typename T > | |
share_type | calculate_fee (const T ¶ms) const |
virtual void | get_required_authorities (vector< authority > &) const |
virtual void | get_required_active_authorities (flat_set< account_id_type > &) const |
virtual void | get_required_owner_authorities (flat_set< account_id_type > &) const |
fc::optional< fc::future< void > > | validate_parallel (uint32_t skip) 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 uint64_t | calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte) |
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.
|
inline |
Definition at line 71 of file market.hpp.
|
inline |
Definition at line 65 of file market.hpp.
|
inline |
Definition at line 73 of file market.hpp.
|
virtual |
Reimplemented from graphene::protocol::base_operation.
Definition at line 30 of file market.cpp.
asset graphene::protocol::limit_order_create_operation::amount_to_sell |
Definition at line 54 of file market.hpp.
time_point_sec graphene::protocol::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_type graphene::protocol::limit_order_create_operation::extensions |
Definition at line 63 of file market.hpp.
asset graphene::protocol::limit_order_create_operation::fee |
Definition at line 52 of file market.hpp.
bool graphene::protocol::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.
asset graphene::protocol::limit_order_create_operation::min_to_receive |
Definition at line 55 of file market.hpp.
account_id_type graphene::protocol::limit_order_create_operation::seller |
Definition at line 53 of file market.hpp.