@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API
16 lines • 562 B
TypeScript
import type { KyInstance } from 'ky';
import type { PaginatedResponse, PaginationInput } from '../../types.js';
export type GetSwapsInput = PaginationInput;
interface Swap {
createdAt: string;
id: string;
inAmount: number;
inAsset: 'BTC' | 'USD';
outAmount: number;
outAsset: 'BTC' | 'USD';
}
export type GetSwapsOutput = PaginatedResponse<Swap>;
type GetSwaps = (input?: GetSwapsInput) => Promise<GetSwapsOutput>;
export declare const createGetSwaps: (instance: KyInstance) => GetSwaps;
export {};
//# sourceMappingURL=get-swaps.d.ts.map