@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API
16 lines • 472 B
TypeScript
import type { KyInstance } from 'ky';
export interface NewSwapOutput {
inAmount: number;
inAsset: 'BTC' | 'USD';
outAmount: number;
outAsset: 'BTC' | 'USD';
}
export interface NewSwapInput {
inAmount: number;
inAsset: 'BTC' | 'USD';
outAsset: 'BTC' | 'USD';
}
type NewSwap = (input: NewSwapInput) => Promise<NewSwapOutput>;
export declare const createNewSwap: (instance: KyInstance) => NewSwap;
export {};
//# sourceMappingURL=new-swap.d.ts.map