33 const limit_order_id_type& _id,
34 const account_id_type& _oid,
36 const time_point_sec& _exp )
66 lowest_ask_base_size =
"0";
67 lowest_ask_quote_size =
"0";
69 highest_bid_base_size =
"0";
70 highest_bid_quote_size =
"0";
74 if( mto.
base != asset_base.
id )
75 latest_price = ~latest_price;
81 if( mto.
base != asset_base.
id )
82 last_day_price = ~last_day_price;
85 if( asset_base.
id == mto.
base )
98 if(!orders.
asks.empty())
100 lowest_ask = orders.
asks[0].price;
101 lowest_ask_base_size = orders.
asks[0].base;
102 lowest_ask_quote_size = orders.
asks[0].quote;
105 if(!orders.
bids.empty())
107 highest_bid = orders.
bids[0].price;
108 highest_bid_base_size = orders.
bids[0].base;
109 highest_bid_quote_size = orders.
bids[0].quote;
123 lowest_ask_base_size =
"0";
124 lowest_ask_quote_size =
"0";
126 highest_bid_base_size =
"0";
127 highest_bid_quote_size =
"0";
128 percent_change =
"0";
std::string price_to_string(const graphene::protocol::price &_price, const uint8_t base_precision, const uint8_t quote_precision)
std::string uint128_amount_to_string(const fc::uint128_t &amount, const uint8_t precision)
share_type last_day_quote
provides stack-based nullable value similar to boost::optional
The price struct stores asset prices in the BitShares system.
string symbol
Ticker symbol for this asset, i.e. "USD".
fc::uint128_t base_volume
fc::uint128_t quote_volume
tracks the parameters of an assetAll assets have a globally unique symbol name that controls how they...
uint8_t precision
Maximum number of digits after the decimal point (must be <= 12)
std::string price_diff_percent_string(const graphene::protocol::price &old_price, const graphene::protocol::price &new_price)