Struct coinbase_api::PrivateClient [−][src]
pub struct PrivateClient { /* fields omitted */ }
HTTP client for the authenticated private API.
Methods
impl PrivateClient
[src]
impl PrivateClient
pub fn new(
base: &'static str,
key: String,
secret: String,
passphrase: String
) -> Result<Self, Error>
[src]
pub fn new(
base: &'static str,
key: String,
secret: String,
passphrase: String
) -> Result<Self, Error>
Creates a new client.
The base
argument should be SANDBOX
or LIVE
.
pub fn accounts(
&self
) -> impl Future<Item = Vec<Account>, Error = Error>
[src]
pub fn accounts(
&self
) -> impl Future<Item = Vec<Account>, Error = Error>
pub fn account(
&self,
id: &str
) -> impl Future<Item = Account, Error = Error>
[src]
pub fn account(
&self,
id: &str
) -> impl Future<Item = Account, Error = Error>
pub fn ledger(
&self,
id: &str
) -> impl Future<Item = Vec<Activity>, Error = Error>
[src]
pub fn ledger(
&self,
id: &str
) -> impl Future<Item = Vec<Activity>, Error = Error>
pub fn holds(
&self,
id: &str
) -> impl Future<Item = Vec<Hold>, Error = Error>
[src]
pub fn holds(
&self,
id: &str
) -> impl Future<Item = Vec<Hold>, Error = Error>
pub fn orders(
&self
) -> impl Future<Item = Vec<Order>, Error = Error>
[src]
pub fn orders(
&self
) -> impl Future<Item = Vec<Order>, Error = Error>
pub fn orders_for_product(
&self,
id: &str
) -> impl Future<Item = Vec<Order>, Error = Error>
[src]
pub fn orders_for_product(
&self,
id: &str
) -> impl Future<Item = Vec<Order>, Error = Error>
pub fn order(
&self,
id: &str
) -> impl Future<Item = Order, Error = Error>
[src]
pub fn order(
&self,
id: &str
) -> impl Future<Item = Order, Error = Error>
pub fn fills(
&self
) -> impl Future<Item = Vec<Fill>, Error = Error>
[src]
pub fn fills(
&self
) -> impl Future<Item = Vec<Fill>, Error = Error>
pub fn fills_for_product(
&self,
id: &str
) -> impl Future<Item = Vec<Fill>, Error = Error>
[src]
pub fn fills_for_product(
&self,
id: &str
) -> impl Future<Item = Vec<Fill>, Error = Error>
pub fn fills_for_order(
&self,
id: &str
) -> impl Future<Item = Vec<Fill>, Error = Error>
[src]
pub fn fills_for_order(
&self,
id: &str
) -> impl Future<Item = Vec<Fill>, Error = Error>
pub fn trailing_volume(
&self
) -> impl Future<Item = Vec<TrailingVolume>, Error = Error>
[src]
pub fn trailing_volume(
&self
) -> impl Future<Item = Vec<TrailingVolume>, Error = Error>
Auto Trait Implementations
impl Send for PrivateClient
impl Send for PrivateClient
impl Sync for PrivateClient
impl Sync for PrivateClient