getPolymarketMainCats()
Read current Polymarket main navigation.
Public Polymarket read, without CRISP credentials. Returns data, source, fetchedAt and stale. Website curation is best effort; the discovery guide explains caching, missing sections and direct upstream sources. This helper does not authorize trading.
market-discovery workflow · All SDK methods
Import and runtime
@crisp-trade/partner-sdk/discovery — public Polymarket reads from your backend; no CRISP credentials or signing.
Client setup and shared behavior
Arguments
| Argument | Presence | Released TypeScript type |
|---|---|---|
options | Optional | |
Named types are expanded under “Exact released types” below. Parameters are in call order; optional does not imply nullable.
Example
Public display read. Replace example slugs or search text with your selected discovery inputs.
import { getPolymarketMainCats } from '@crisp-trade/partner-sdk/discovery';
const result = await getPolymarketMainCats();
console.log(result.data, result.fetchedAt, result.stale);Returns
The exact return type is shown below; this helper does not use the ordinary HTTP response wrapper.
Return type
Promise<DiscoveryResult<PolymarketCategory[]>>Errors and lifecycle
Discovery errors, cache and cancellation. Public reads use PolymarketDiscoveryError, not CrispApiError. No order is submitted.
Related HTTP operations
Direct Polymarket sources. These reads are not CRISP HMAC operations.
Exact released types
Extracted from the shipped SDK 0.13.0, not separately maintained signatures.
Full signature
getPolymarketMainCats(options?: DiscoveryRequest): Promise<DiscoveryResult<PolymarketCategory[]>>DiscoveryRequest
export interface DiscoveryRequest {
signal?: AbortSignal;
}DiscoveryResult
export interface DiscoveryResult<T> {
data: T;
source: string;
fetchedAt: string;
stale: boolean;
}PolymarketCategory
export interface PolymarketCategory {
label: string;
slug: string;
path: string;
}