Struct stellar_client::resources::Orderbook [−][src]
pub struct Orderbook { /* fields omitted */ }Order books keep records of all offers to sell (asks) and offer to buy (bids) for a particular pair of assets. The asset pairs are refered to as a base and counter.
https://www.stellar.org/developers/horizon/reference/resources/orderbook.html
Methods
impl Orderbook[src]
impl Orderbookpub fn bids(&self) -> &Vec<OfferSummary>[src]
pub fn bids(&self) -> &Vec<OfferSummary>Returns an array of offers to purchase the base asset in exchange for the counter asset
pub fn asks(&self) -> &Vec<OfferSummary>[src]
pub fn asks(&self) -> &Vec<OfferSummary>Returns an array of offers to sell the base asset in exchange for the counter asset
pub fn base(&self) -> &AssetIdentifier[src]
pub fn base(&self) -> &AssetIdentifierReturns a reference to the asset identifier for the asset that the corresponding bids would like to acquire
pub fn counter(&self) -> &AssetIdentifier[src]
pub fn counter(&self) -> &AssetIdentifierReturns a reference to the asset identifier for the asset that the corresponding bids would like to trade in exchange for the base.