Struct coinbase_client::public_client::PublicClient [−][src]
pub struct PublicClient { /* fields omitted */ }Expand description
`PublicClient provides public market data
Implementations
get a list of available currency pairs for trading
get market data for a specific currency pair.
get only the best bid and ask
get top 50 bids and asks
pub async fn get_product_order_book_all(
&self,
id: &str
) -> Result<OrderBook<FullBookEntry>, Error>[src]
pub async fn get_product_order_book_all(
&self,
id: &str
) -> Result<OrderBook<FullBookEntry>, Error>[src]get Full order book
get snapshot information about the last trade (tick), best bid/ask and 24h volume.
get the latest trades for a product.
PARAMETERS
before: Request page before (newer) this pagination id.
after: Request page after (older) this pagination id.
limit: Number of results per request. Maximum 1000. (default 1000)
pub async fn get_product_historic_rates(
&self,
id: &str,
start: Option<&str>,
end: Option<&str>,
granularity: Option<Granularity>
) -> Result<Vec<HistoricRate>, Error>[src]
pub async fn get_product_historic_rates(
&self,
id: &str,
start: Option<&str>,
end: Option<&str>,
granularity: Option<Granularity>
) -> Result<Vec<HistoricRate>, Error>[src]get historic rates for a product
PARAMETERS
start: Start time in ISO 8601
end: End time in ISO 8601
granularity: Desired timeslice in seconds
get 24 hr stats for the product
get the currency for specified id
Auto Trait Implementations
impl !RefUnwindSafe for PublicClientimpl Send for PublicClientimpl Sync for PublicClientimpl Unpin for PublicClientimpl !UnwindSafe for PublicClient