Struct crypto_market::OrderBook [] [src]

pub struct OrderBook {
    pub pair: Option<Pair>,
    pub asks: Vec<Order>,
    pub bids: Vec<Order>,
}

Market order book.

Fields

Currency pair.

List of asks.

List of bids.

Methods

impl OrderBook
[src]

[src]

Inserts order to order book.

Trait Implementations

impl PartialEq for OrderBook
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for OrderBook
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for OrderBook
[src]

[src]

Formats the value using the given formatter.