import type { KyInstance } from 'ky' import type { FuturesCanceledTrade } from '../../../types.js' export type FuturesIsolatedCancelAllOutput = FuturesCanceledTrade type CancelAll = () => Promise export const createCancelAll = (instance: Readonly): CancelAll => { return async () => { return instance.post('futures/isolated/trades/cancel-all').json() } }