Navigate and filter markets with the TypeScript SDK
Overview
The MarketPageFetcher class 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
import { HttpClient, MarketPageFetcher } from '@limitless-exchange/sdk';const httpClient = new HttpClient({ baseURL: 'https://api.limitless.exchange',});const pageFetcher = new MarketPageFetcher(httpClient);
Navigation tree
Fetch the full navigation hierarchy. Each node represents a browsable category with a URL path.
const navigation = await pageFetcher.getNavigation();for (const node of navigation) { console.log(`${node.name} → ${node.path}`); for (const child of node.children) { console.log(` ${child.name} → ${child.path}`); }}
NavigationNode fields
Field
Type
Description
id
string
Unique identifier
name
string
Display name
slug
string
URL-friendly identifier
path
string
Full URL path (e.g. /crypto)
icon
string | undefined
Optional icon name
children
NavigationNode[]
Nested child nodes
Resolving a page by path
Convert a URL path into a MarketPage with its filters, metadata, and breadcrumb. The SDK handles 301 redirects internally.