import type { KyInstance } from 'ky' import type { PaginatedResponse, PaginationInput } from '../../../types.js' export type FuturesCrossGetTransfersInput = PaginationInput export interface Transfer { amount: number id: string time: string uid: string } export type FuturesCrossGetTransfersOutput = PaginatedResponse type GetTransfers = ( input?: Readonly ) => Promise export const createGetTransfers = ( instance: Readonly ): GetTransfers => { return async ({ cursor, from, limit, to } = {}) => { return instance .get('futures/cross/transfers', { searchParams: { cursor, from, limit, to }, }) .json() } }