pub struct WebullClient { /* private fields */ }
Expand description
Client for interacting with the Webull API.
Implementations§
Source§impl WebullClient
impl WebullClient
Sourcepub fn builder() -> WebullClientBuilder
pub fn builder() -> WebullClientBuilder
Create a new builder for configuring the client.
Sourcepub async fn logout(&self) -> WebullResult<()>
pub async fn logout(&self) -> WebullResult<()>
Logout from Webull.
Sourcepub async fn refresh_token(&self) -> WebullResult<()>
pub async fn refresh_token(&self) -> WebullResult<()>
Refresh the authentication token.
Sourcepub fn accounts(&self) -> AccountEndpoints
pub fn accounts(&self) -> AccountEndpoints
Get account endpoints.
Sourcepub fn market_data(&self) -> MarketDataEndpoints
pub fn market_data(&self) -> MarketDataEndpoints
Get market data endpoints.
Sourcepub fn orders(&self) -> OrderEndpoints
pub fn orders(&self) -> OrderEndpoints
Get order endpoints.
Sourcepub fn watchlists(&self) -> WatchlistEndpoints
pub fn watchlists(&self) -> WatchlistEndpoints
Get watchlist endpoints.
Sourcepub fn streaming(&self) -> WebSocketClient
pub fn streaming(&self) -> WebSocketClient
Create a WebSocket client for streaming data.
Sourcepub fn get_credentials(&self) -> WebullResult<Option<Credentials>>
pub fn get_credentials(&self) -> WebullResult<Option<Credentials>>
Get the stored credentials.
Sourcepub fn credential_store(&self) -> &Arc<Box<dyn CredentialStore>>
pub fn credential_store(&self) -> &Arc<Box<dyn CredentialStore>>
Get the credential store.
Sourcepub fn is_paper_trading(&self) -> bool
pub fn is_paper_trading(&self) -> bool
Check if the client is configured for paper trading.
Sourcepub fn paper_trading(&self) -> WebullResult<Self>
pub fn paper_trading(&self) -> WebullResult<Self>
Create a new client for paper trading.
Auto Trait Implementations§
impl Freeze for WebullClient
impl !RefUnwindSafe for WebullClient
impl Send for WebullClient
impl Sync for WebullClient
impl Unpin for WebullClient
impl !UnwindSafe for WebullClient
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