import type { KyInstance } from 'ky' import type { FuturesCrossCanceledOrder } from '../../../types.js' export type FuturesCrossCancelAllOutput = FuturesCrossCanceledOrder[] type CancelAll = () => Promise export const createCancelAll = (instance: Readonly): CancelAll => { return async () => { return instance.post('futures/cross/orders/cancel-all').json() } }