UNPKG

@ln-markets/sdk

Version:

TypeScript SDK for LNMarkets API v2

14 lines (12 loc) 395 B
import type { RestFetcher } from '../../rest.js' import type { OptionsVolatilityIndex } from './types.js' export const createGetVolatilityIndex = (request: RestFetcher) => { /** * @see https://docs.lnmarkets.com/api/operations/optionsgetvolatilityindex */ return async () => request<OptionsVolatilityIndex>({ method: 'GET', path: '/options/volatility-index', }) }