@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / ChainMarketRef

Interface: ChainMarketRef

Defined in: packages/sdk/src/chainRef.ts:26

A market named together with the chain it lives on. Accepted wherever a symbol, pool address or market id is accepted (exchange.market(ref), createOrder(ref, …), fetchOrderBook(ref), …).

Details

id is anything the symbol table resolves — a symbol, a tradable symbol (…#YES), a pool address, a market id or a BinaryMarket address. chainId pins which chain's table answers, so an id that exists on two chains (the same CREATE2 pool on L1 and Hideki) is never ambiguous.

Properties

chainId

chainId: number

Defined in: packages/sdk/src/chainRef.ts:28

Numeric chain id the market lives on.


id

id: string

Defined in: packages/sdk/src/chainRef.ts:30

Symbol, tradable symbol, pool address, market id or BinaryMarket address.