The MarketPageFetcher provides access to the Market Navigation API — a hierarchical system for browsing markets by category, applying dynamic filters, and paginating results. All endpoints are public and require no authentication.
Setup
use limitless_exchange_rust_sdk::Client;let client = Client::new()?;// Access through the root clientlet pages = client.pages.clone();
Navigation tree
Fetch the full navigation hierarchy:
let navigation = client.pages.get_navigation().await?;for node in navigation { println!("{} -> {}", node.name, node.path); for child in node.children { println!(" {} -> {}", child.name, child.path); }}
NavigationNode
Field
Type
Description
id
String
Unique identifier
name
String
Display name
slug
String
URL-friendly identifier
path
String
Full URL path (for example /crypto)
icon
Option<String>
Optional icon name
children
Vec<NavigationNode>
Nested child nodes
Resolving a page by path
Convert a URL path into a MarketPage. The SDK follows up to 3 redirects automatically:
let page = client.pages.get_market_page_by_path("/crypto").await?;println!("page {}", page.name);println!("filter groups {}", page.filter_groups.len());println!("full path {}", page.full_path);
Fetching markets for a page
Use get_markets() with the page ID. The Rust SDK supports both offset and cursor pagination.
Offset pagination
use limitless_exchange_rust_sdk::{MarketPageMarketsParams, MarketPageSort};let result = client .pages .get_markets( &page.id, Some(&MarketPageMarketsParams { page: Some(1), limit: Some(20), sort: Some(MarketPageSort::CreatedAtDesc), cursor: None, filters: Default::default(), }), ) .await?;for market in result.data { println!("{} {}", market.slug, market.title);}if let Some(pagination) = result.pagination { println!("page {} of {}", pagination.page, pagination.total_pages);}