Struct coinbase_api::MarketDataClient[][src]

pub struct MarketDataClient { /* fields omitted */ }

HTTP client for the unauthenticated market data API.

Methods

impl MarketDataClient
[src]

Creates a new client. The base argument should be SANDBOX or LIVE.

Retrieves a list of available currency pairs for trading.

Retrieves a list of open orders for a product. The amount of detail shown depends on the level argument:

  • book_level::Best() shows only the best bid and ask.
  • book_level::Top50() shows the top 50 aggregated bids and asks.
  • book_level::Full() shows the full non aggregated order book.

Retrieves information about the last trade (tick), best bid/ask and 24h volume.

Lists the latest trades for a product.

Retrieves historic rates for a product. granularity must be one of { one minute, five minutes, fifteen minutes, one hour, six hours, one day }. The maximum number of data points for a single request is 300 candles. If your selection of start/end time and granularity will result in more than 300 data points, your request will be rejected.

Retrieves the latest 300 data points.

Retrieves 24 hr stats for the product.

Lists known currencies.

Gets the API server time.

Auto Trait Implementations