@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API v2
16 lines (14 loc) • 415 B
text/typescript
import type { RestFetcher } from '../../rest.js'
import type { OptionsTradeClosed } from './types.js'
export const createCloseAllTrades = (request: RestFetcher) => {
/**
* @see https://docs.lnmarkets.com/api/operations/optionsclosealltrades
*/
return async () => {
return request<OptionsTradeClosed[]>({
method: 'DELETE',
path: '/options/all/close',
requireAuth: true,
})
}
}