1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
//! resources — One module per top-level area of the API.
pub mod availability;
pub mod billing;
pub mod catalog;
pub mod datastreams;
pub mod export_schemas;
pub mod exports;
pub mod subscriptions;
use crate::client::Client;
impl Client {
/// Returns the exchanges accessor: exchange list and per-exchange instrument queries.
///
/// # Examples
///
/// ```no_run
/// # async fn example() -> ticksupply::Result<()> {
/// let client = ticksupply::Client::new()?;
/// let exchanges = client.exchanges().list().await?;
/// # let _ = exchanges;
/// # Ok(()) }
/// ```
pub fn exchanges(&self) -> catalog::ExchangesResource<'_> {
catalog::ExchangesResource { client: self }
}
/// Returns the datastreams accessor.
///
/// # Examples
///
/// ```no_run
/// # async fn example() -> ticksupply::Result<()> {
/// let client = ticksupply::Client::new()?;
/// let page = client.datastreams().list().exchange("binance").send().await?;
/// # let _ = page;
/// # Ok(()) }
/// ```
pub fn datastreams(&self) -> datastreams::DatastreamsResource<'_> {
datastreams::DatastreamsResource { client: self }
}
/// Returns the subscriptions accessor.
///
/// # Examples
///
/// ```no_run
/// # async fn example() -> ticksupply::Result<()> {
/// let client = ticksupply::Client::new()?;
/// let page = client.subscriptions().list().send().await?;
/// # let _ = page;
/// # Ok(()) }
/// ```
pub fn subscriptions(&self) -> subscriptions::SubscriptionsResource<'_> {
subscriptions::SubscriptionsResource { client: self }
}
/// Returns the exports accessor.
///
/// # Examples
///
/// ```no_run
/// # async fn example() -> ticksupply::Result<()> {
/// let client = ticksupply::Client::new()?;
/// let page = client.exports().list().send().await?;
/// # let _ = page;
/// # Ok(()) }
/// ```
pub fn exports(&self) -> exports::ExportsResource<'_> {
exports::ExportsResource { client: self }
}
/// Returns the availability accessor.
///
/// # Examples
///
/// ```no_run
/// # async fn example() -> ticksupply::Result<()> {
/// let client = ticksupply::Client::new()?;
/// let avail = client.availability().get(12345).await?;
/// # let _ = avail;
/// # Ok(()) }
/// ```
pub fn availability(&self) -> availability::AvailabilityResource<'_> {
availability::AvailabilityResource { client: self }
}
/// Returns the export schemas accessor.
///
/// # Examples
///
/// ```no_run
/// # async fn example() -> ticksupply::Result<()> {
/// let client = ticksupply::Client::new()?;
/// let schemas = client.export_schemas().list().await?;
/// # let _ = schemas;
/// # Ok(()) }
/// ```
pub fn export_schemas(&self) -> export_schemas::ExportSchemasResource<'_> {
export_schemas::ExportSchemasResource { client: self }
}
/// Returns the billing accessor.
///
/// # Examples
///
/// ```no_run
/// # async fn example() -> ticksupply::Result<()> {
/// let client = ticksupply::Client::new()?;
/// let summary = client.billing().summary().await?;
/// # let _ = summary;
/// # Ok(()) }
/// ```
pub fn billing(&self) -> billing::BillingResource<'_> {
billing::BillingResource { client: self }
}
}