@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API v2
14 lines (12 loc) • 370 B
text/typescript
import type { RestFetcher } from '../../rest.js'
import type { OptionsMarketDetails } from './types.js'
export const createGetMarketDetails = (request: RestFetcher) => {
/**
* @see https://docs.lnmarkets.com/api/operations/optionsgetoptionsmarket
*/
return async () =>
request<OptionsMarketDetails>({
method: 'GET',
path: '/options',
})
}