BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Classes | Namespaces | Functions
asset.hpp File Reference
#include <graphene/protocol/types.hpp>

Go to the source code of this file.


struct  graphene::protocol::asset
struct  graphene::protocol::price
 The price struct stores asset prices in the BitShares system. More...
class  graphene::protocol::price_feed
 defines market parameters for margin positions More...




price graphene::protocol::operator/ (const asset &base, const asset &quote)
price graphene::protocol::operator~ (const price &p)
bool graphene::protocol::operator< (const price &a, const price &b)
bool graphene::protocol::operator== (const price &a, const price &b)
bool graphene::protocol::operator> (const price &a, const price &b)
bool graphene::protocol::operator<= (const price &a, const price &b)
bool graphene::protocol::operator>= (const price &a, const price &b)
bool graphene::protocol::operator!= (const price &a, const price &b)
asset graphene::protocol::operator* (const asset &a, const price &b)
 Multiply and round down. More...
price graphene::protocol::operator* (const price &p, const ratio_type &r)
price graphene::protocol::operator/ (const price &p, const ratio_type &r)
price & graphene::protocol::operator*= (price &p, const ratio_type &r)
price & graphene::protocol::operator/= (price &p, const ratio_type &r)