BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
28 namespace graphene {
namespace protocol {
42 template<
typename ActionType>
69 "Cannot update limit order if nothing is specified to update");
78 for(
const auto& action : *
on_fill )
#define FC_CAPTURE_AND_RETHROW(...)
optional< price > new_price
asset delta_debt
the amount of the debt to be paid off, may be negative to issue new debt
optional< vector< limit_order_auto_action > > on_fill
Automatic actions when the limit order is filled or partially filled.
asset debt_covered
the amount of debt to take over
asset delta_collateral
the amount of collateral to add to the margin position
asset additional_collateral
the amount of collateral to bid for the debt
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
result_type operator()(const ActionType &action) const
optional< time_point_sec > new_expiration
extensions_type extensions
uint16_t size_percent
A percentage indicating how much amount to sell in the take profit order.
uint32_t expiration_seconds
How long the take profit order to be kept on the market.
uint16_t spread_percent
A percentage indicating how far the price of the take profit order differs from the original order.
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
instructs the blockchain to attempt to sell one asset for another
optional< vector< limit_order_auto_action > > on_fill
Automatic actions when the limit order is filled or partially filled.
optional< asset > delta_amount_to_sell
#define GRAPHENE_100_PERCENT
void validate() const override