pub struct DataApi { /* private fields */ }Expand description
Main Data API client
Implementations§
Source§impl DataApi
impl DataApi
Sourcepub fn builder() -> DataApiBuilder
pub fn builder() -> DataApiBuilder
Create a builder for configuring the client
Sourcepub fn user(&self, user_address: impl Into<String>) -> UserApi
pub fn user(&self, user_address: impl Into<String>) -> UserApi
Get user namespace for user-specific operations
Sourcepub fn positions(&self, user_address: impl Into<String>) -> UserApi
pub fn positions(&self, user_address: impl Into<String>) -> UserApi
Alias for user() - for backwards compatibility
Sourcepub fn traded(&self, user_address: impl Into<String>) -> Traded
pub fn traded(&self, user_address: impl Into<String>) -> Traded
Get traded namespace for backwards compatibility
Sourcepub fn open_interest(&self) -> OpenInterestApi
pub fn open_interest(&self) -> OpenInterestApi
Get open interest namespace
Sourcepub fn live_volume(&self) -> LiveVolumeApi
pub fn live_volume(&self) -> LiveVolumeApi
Get live volume namespace
Sourcepub fn builders(&self) -> BuildersApi
pub fn builders(&self) -> BuildersApi
Get builders namespace
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataApi
impl !RefUnwindSafe for DataApi
impl Send for DataApi
impl Sync for DataApi
impl Unpin for DataApi
impl !UnwindSafe for DataApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more