UNPKG

@ln-markets/sdk

Version:

TypeScript SDK for LNMarkets API v2

17 lines (15 loc) 471 B
import type { UUID } from '../../index.js' import type { RestFetcher } from '../../rest.js' import type { FuturesRunningTrade } from './types.js' export const createCashIn = (request: RestFetcher) => { /** * @see https://docs.lnmarkets.com/api/operations/futurescashin */ return async (body: { amount: number; id: UUID }) => request<FuturesRunningTrade>({ body, method: 'POST', path: '/futures/cash-in', requireAuth: true, }) }