BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
graphene::protocol::call_order_update_operation Struct Reference

#include <market.hpp>

Inheritance diagram for graphene::protocol::call_order_update_operation:
graphene::protocol::base_operation

Classes

struct  fee_params_t
 
struct  options_type
 

Public Types

using extensions_type = extension< options_type >
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
- Public Member Functions inherited from graphene::protocol::base_operation
virtual ~base_operation ()=default
 
template<typename T >
share_type calculate_fee (const T &params) 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 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::protocol::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.

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

Definition at line 171 of file market.hpp.

Member Typedef Documentation

◆ extensions_type

Definition at line 192 of file market.hpp.

Member Function Documentation

◆ fee_payer()

account_id_type graphene::protocol::call_order_update_operation::fee_payer ( ) const
inline

Definition at line 195 of file market.hpp.

◆ validate()

void graphene::protocol::call_order_update_operation::validate ( ) const
virtual

Reimplemented from graphene::protocol::base_operation.

Definition at line 89 of file market.cpp.

Member Data Documentation

◆ delta_collateral

asset graphene::protocol::call_order_update_operation::delta_collateral

the amount of collateral to add to the margin position

Definition at line 189 of file market.hpp.

◆ delta_debt

asset graphene::protocol::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 190 of file market.hpp.

◆ extensions

extensions_type graphene::protocol::call_order_update_operation::extensions

Definition at line 193 of file market.hpp.

◆ fee

asset graphene::protocol::call_order_update_operation::fee

Definition at line 187 of file market.hpp.

◆ funding_account

account_id_type graphene::protocol::call_order_update_operation::funding_account

pays fee, collateral, and cover

Definition at line 188 of file market.hpp.


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