@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API v2
12 lines (9 loc) • 321 B
text/typescript
import type { RestFetcher } from '../../rest.js'
import { createGetIndex } from './get-index.js'
import { createGetLastPrice } from './get-last-price.js'
export const createOracleRouter = (request: RestFetcher) => {
return {
getIndex: createGetIndex(request),
getLastPrice: createGetLastPrice(request),
}
}