pub struct Markets {
pub client: Client,
}Expand description
Provides access to public market data on the Limitless Exchange.
No authentication is required for these endpoints. Use this manager to browse active markets, fetch details, search, get oracle data, and retrieve feed events.
Fields§
§client: ClientImplementations§
Source§impl Markets
impl Markets
Sourcepub async fn browse_active(
&self,
category_id: Option<u64>,
page: Option<u64>,
limit: Option<u64>,
sort_by: Option<String>,
trade_type: Option<String>,
automation_type: Option<String>,
) -> Result<ActiveMarketsResponse, LimitlessError>
pub async fn browse_active( &self, category_id: Option<u64>, page: Option<u64>, limit: Option<u64>, sort_by: Option<String>, trade_type: Option<String>, automation_type: Option<String>, ) -> Result<ActiveMarketsResponse, LimitlessError>
Browse all active (unresolved) markets.
Supports optional filtering by category, trade type, and automation type
with pagination via page and limit.
Sourcepub async fn get_category_counts(
&self,
) -> Result<CategoryCountResponse, LimitlessError>
pub async fn get_category_counts( &self, ) -> Result<CategoryCountResponse, LimitlessError>
Get the count of active markets per category.
Sourcepub async fn get_active_slugs(&self) -> Result<Vec<ActiveSlug>, LimitlessError>
pub async fn get_active_slugs(&self) -> Result<Vec<ActiveSlug>, LimitlessError>
Get all active market slugs with metadata (strike price, ticker, deadline).
Sourcepub async fn get_market(
&self,
address_or_slug: &str,
) -> Result<MarketDetail, LimitlessError>
pub async fn get_market( &self, address_or_slug: &str, ) -> Result<MarketDetail, LimitlessError>
Get detailed market information by address or slug.
Returns venue data (exchange and adapter addresses) needed for
EIP-712 order signing on CLOB markets.
Sourcepub async fn get_oracle_candles(
&self,
address_or_slug: &str,
interval: Option<&str>,
from: Option<u64>,
to: Option<u64>,
) -> Result<OracleCandlesResponse, LimitlessError>
pub async fn get_oracle_candles( &self, address_or_slug: &str, interval: Option<&str>, from: Option<u64>, to: Option<u64>, ) -> Result<OracleCandlesResponse, LimitlessError>
Get Chainlink oracle candlestick data for markets with Data Streams.
Sourcepub async fn get_feed_events(
&self,
slug: &str,
page: Option<u64>,
limit: Option<u64>,
) -> Result<FeedEventsResponse, LimitlessError>
pub async fn get_feed_events( &self, slug: &str, page: Option<u64>, limit: Option<u64>, ) -> Result<FeedEventsResponse, LimitlessError>
Get feed events (trades, orders, liquidity changes) for a specific market.