pub struct IgStreamingClient { /* private fields */ }Expand description
An authenticated IG Lightstreamer session.
Dropping this value disconnects the underlying session and closes its subscriptions.
Implementations§
Source§impl IgStreamingClient
impl IgStreamingClient
Sourcepub async fn subscribe_markets<I, S>(&self, epics: I) -> IgResult<Updates>
pub async fn subscribe_markets<I, S>(&self, epics: I) -> IgResult<Updates>
Subscribes to live prices for one or more IG epics.
Sourcepub async fn subscribe_account(&self) -> IgResult<Updates>
pub async fn subscribe_account(&self) -> IgResult<Updates>
Subscribes to account balance and margin updates.
Sourcepub async fn subscribe_trades(&self) -> IgResult<Updates>
pub async fn subscribe_trades(&self) -> IgResult<Updates>
Subscribes to deal confirmations, position updates, and working-order updates.
Sourcepub async fn disconnect(self) -> IgResult<()>
pub async fn disconnect(self) -> IgResult<()>
Gracefully closes the Lightstreamer session.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IgStreamingClient
impl !UnwindSafe for IgStreamingClient
impl Freeze for IgStreamingClient
impl Send for IgStreamingClient
impl Sync for IgStreamingClient
impl Unpin for IgStreamingClient
impl UnsafeUnpin for IgStreamingClient
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