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::asset_publish_feed_operation Struct Reference

Publish price feeds for market-issued assetsPrice feed providers use this operation to publish their price feeds for market-issued assets. A price feed is used to tune the market for a particular market-issued asset. For each value in the feed, the median across all committee_member feeds for that asset is calculated and the market for the asset is configured with the median of that value. More...

#include <asset_ops.hpp>

Inheritance diagram for graphene::chain::asset_publish_feed_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_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
 paid for by publisher More...
 
account_id_type publisher
 
asset_id_type asset_id
 asset for which the feed is published More...
 
price_feed feed
 
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

Publish price feeds for market-issued assets

Price feed providers use this operation to publish their price feeds for market-issued assets. A price feed is used to tune the market for a particular market-issued asset. For each value in the feed, the median across all committee_member feeds for that asset is calculated and the market for the asset is configured with the median of that value.

The feed in the operation contains three prices: a call price limit, a short price limit, and a settlement price. The call limit price is structured as (collateral asset) / (debt asset) and the short limit price is structured as (asset for sale) / (collateral asset). Note that the asset IDs are opposite to eachother, so if we're publishing a feed for USD, the call limit price will be CORE/USD and the short limit price will be USD/CORE. The settlement price may be flipped either direction, as long as it is a ratio between the market-issued asset and its collateral.

Definition at line 369 of file asset_ops.hpp.

Member Function Documentation

◆ fee_payer()

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

Definition at line 379 of file asset_ops.hpp.

◆ validate()

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

Definition at line 141 of file asset_ops.cpp.

Member Data Documentation

◆ asset_id

asset_id_type graphene::chain::asset_publish_feed_operation::asset_id

asset for which the feed is published

Definition at line 375 of file asset_ops.hpp.

◆ extensions

extensions_type graphene::chain::asset_publish_feed_operation::extensions

Definition at line 377 of file asset_ops.hpp.

◆ fee

asset graphene::chain::asset_publish_feed_operation::fee

paid for by publisher

Definition at line 373 of file asset_ops.hpp.

◆ feed

price_feed graphene::chain::asset_publish_feed_operation::feed

Definition at line 376 of file asset_ops.hpp.

◆ publisher

account_id_type graphene::chain::asset_publish_feed_operation::publisher

Definition at line 374 of file asset_ops.hpp.


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