UNPKG

@ln-markets/sdk

Version:
13 lines (10 loc) 348 B
import type { KyInstance } from 'ky' import type { OptionsTradeClosed } from './types.js' export const createCloseAllTrades = (instance: KyInstance) => { /** * @see https://docs.lnmarkets.com/api/operations/optionsclosealltrades */ return async () => { return instance.delete('options/all/close').json<OptionsTradeClosed[]>() } }