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

#include <market.hpp>

Inheritance diagram for graphene::chain::call_order_update_operation:


struct  fee_parameters_type
struct  options_type

Public Types

typedef extension< options_typeextensions_type

Public Member Functions

account_id_type fee_payer () const
void validate () 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 funding_account
 pays fee, collateral, and cover More...
asset delta_collateral
 the amount of collateral to add to the margin position More...
asset delta_debt
 the amount of the debt to be paid off, may be negative to issue new debt 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

This operation can be used to add collateral, cover, and adjust the margin call price for a particular user.

For prediction markets the collateral and debt must always be equal.

This operation will fail if it would trigger a margin call that couldn't be filled. If the margin call hits the call price limit then it will fail if the call price is above the settlement price.

this operation can be used to force a market order using the collateral without requiring outside funds.

Definition at line 110 of file market.hpp.

Member Typedef Documentation

◆ extensions_type

Definition at line 130 of file market.hpp.

Member Function Documentation

◆ fee_payer()

account_id_type graphene::chain::call_order_update_operation::fee_payer ( ) const

Definition at line 133 of file market.hpp.

◆ validate()

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

Definition at line 41 of file market.cpp.

Member Data Documentation

◆ delta_collateral

asset graphene::chain::call_order_update_operation::delta_collateral

the amount of collateral to add to the margin position

Definition at line 127 of file market.hpp.

◆ delta_debt

asset graphene::chain::call_order_update_operation::delta_debt

the amount of the debt to be paid off, may be negative to issue new debt

Definition at line 128 of file market.hpp.

◆ extensions

extensions_type graphene::chain::call_order_update_operation::extensions

Definition at line 131 of file market.hpp.

◆ fee

asset graphene::chain::call_order_update_operation::fee

Definition at line 125 of file market.hpp.

◆ funding_account

account_id_type graphene::chain::call_order_update_operation::funding_account

pays fee, collateral, and cover

Definition at line 126 of file market.hpp.

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