Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CorePrice ServicegetEnigmaPriceServiceSymbolsInfo

getEnigmaPriceServiceSymbolsInfo

Fetch the full symbol catalog from the chain’s Enigma price service: every tradeable market’s name, status, and address. Cheap enough to run at app boot to build the “which markets exist?” list. Takes no inputs beyond an optional chain override.

import { getEnigmaPriceServiceSymbolsInfo } from "@symmio/trading-core"; const symbols = await getEnigmaPriceServiceSymbolsInfo(config, {});

Parameters

chainIdnumberoptional

Target chain id. Defaults to the config’s defaultChainId.

Returns

EnigmaSymbolInfo[]

An array of EnigmaSymbolInfo rows — one per known market, each with name, status, and address.

Query options

import { getEnigmaPriceServiceSymbolsInfoQueryOptions } from "@symmio/trading-core"; import { useQuery } from "@tanstack/react-query"; useQuery(getEnigmaPriceServiceSymbolsInfoQueryOptions(config, {}));

The options bag is optional — getEnigmaPriceServiceSymbolsInfoQueryOptions(config) works too. The getEnigmaPriceServiceSymbolsInfoQueryKey builder likewise accepts no inputs. The catalog changes rarely, so a long staleTime is appropriate.

Last updated on