pub struct PolymarketUsClient { /* private fields */ }Implementations§
Source§impl PolymarketUsClient
impl PolymarketUsClient
pub fn builder() -> PolymarketUsClientBuilder
pub fn with_reqwest(http: Client, auth: Option<UsAuth>) -> Self
pub fn auth(&self) -> Option<&UsAuth>
pub fn api_base_url(&self) -> &str
pub fn retry_config(&self) -> &RetryConfig
Sourcepub fn markets(&self) -> MarketsClient<'_>
pub fn markets(&self) -> MarketsClient<'_>
Access markets resource (discovery, order book, pricing)
Sourcepub fn events(&self) -> EventsClient<'_>
pub fn events(&self) -> EventsClient<'_>
Access events resource
Sourcepub fn orders(&self) -> OrdersClient<'_>
pub fn orders(&self) -> OrdersClient<'_>
Access orders resource (lifecycle management)
Sourcepub fn account(&self) -> AccountClient<'_>
pub fn account(&self) -> AccountClient<'_>
Access account resource (balances, buying power)
Sourcepub fn portfolio(&self) -> PortfolioClient<'_>
pub fn portfolio(&self) -> PortfolioClient<'_>
Access portfolio resource (positions, activity)
Sourcepub fn search(&self) -> SearchClient<'_>
pub fn search(&self) -> SearchClient<'_>
Access search resource (full-text search)
pub async fn health(&self) -> Result<HealthResponse, PolymarketUsError>
pub async fn markets_list(&self) -> Result<MarketsResponse, PolymarketUsError>
use client.markets().list() instead
pub async fn markets_list_with_query<Q: Serialize>( &self, query: Option<&Q>, ) -> Result<MarketsResponse, PolymarketUsError>
use client.markets().list_with_query() instead
pub async fn markets_list_authenticated( &self, ) -> Result<MarketsResponse, PolymarketUsError>
use client.markets().list_authenticated() instead
pub async fn markets_list_authenticated_with_query<Q: Serialize>( &self, query: Option<&Q>, ) -> Result<MarketsResponse, PolymarketUsError>
use client.markets().list_authenticated_with_query() instead
pub async fn account_balances( &self, ) -> Result<AccountBalancesResponse, PolymarketUsError>
use client.account().balances() instead
pub async fn portfolio_positions( &self, ) -> Result<PortfolioPositionsResponse, PolymarketUsError>
use client.portfolio().positions() instead
pub async fn portfolio_activities<Q: Serialize>( &self, query: Option<&Q>, ) -> Result<PortfolioActivitiesResponse, PolymarketUsError>
use client.portfolio().activities() instead
pub async fn place_order( &self, body: &PlaceOrderRequest, ) -> Result<PlaceOrderResponse, PolymarketUsError>
use client.orders().place() instead
pub async fn place_batched_orders( &self, body: &BatchedOrderRequest, ) -> Result<BatchedOrderResponse, PolymarketUsError>
use client.orders().place_batch() instead
pub async fn cancel_trading_order( &self, order_id: &str, ) -> Result<CancelOrderResponse, PolymarketUsError>
use client.orders().cancel_trading() instead
pub async fn orders_create( &self, body: &PlaceOrderRequest, ) -> Result<PlaceOrderResponse, PolymarketUsError>
use client.orders().create() instead
pub async fn orders_open<Q: Serialize>( &self, query: Option<&Q>, ) -> Result<GetOpenOrdersResponse, PolymarketUsError>
use client.orders().open() instead
pub async fn order_retrieve( &self, order_id: &str, ) -> Result<PlaceOrderResponse, PolymarketUsError>
use client.orders().retrieve() instead
pub async fn order_cancel( &self, order_id: &str, body: &CancelOrderParams, ) -> Result<(), PolymarketUsError>
use client.orders().cancel() instead
pub async fn order_modify( &self, order_id: &str, body: &ModifyOrderRequest, ) -> Result<(), PolymarketUsError>
use client.orders().modify() instead
pub async fn orders_cancel_all( &self, body: &CancelAllOrdersParams, ) -> Result<CancelAllOrdersResponse, PolymarketUsError>
use client.orders().cancel_all() instead
pub async fn order_preview( &self, body: &PreviewOrderRequest, ) -> Result<PreviewOrderResponse, PolymarketUsError>
use client.orders().preview() instead
pub async fn order_close_position( &self, body: &ClosePositionRequest, ) -> Result<ClosePositionResponse, PolymarketUsError>
use client.orders().close_position() instead
Trait Implementations§
Source§impl Clone for PolymarketUsClient
impl Clone for PolymarketUsClient
Source§fn clone(&self) -> PolymarketUsClient
fn clone(&self) -> PolymarketUsClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more