/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { alternativeInvestmentsGetAlternativeInvestment } from "../funcs/alternativeInvestmentsGetAlternativeInvestment.js"; import { alternativeInvestmentsListAlternativeInvestments } from "../funcs/alternativeInvestmentsListAlternativeInvestments.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class AlternativeInvestments extends ClientSDK { /** * List Alternative Investment Assets * * @remarks * Retrieves a list of available alternative investment assets and their details. Replace `{asset_id}` in the endpoint path with a dash to act as a wild card. Ex:`/trading/v1/assets/-/alternativeInvestments` */ async listAlternativeInvestments( assetId: string, pageSize?: number | undefined, pageToken?: string | undefined, filter?: string | undefined, options?: RequestOptions, ): Promise< operations.AlternativeInvestmentsListAlternativeInvestmentsResponse > { return unwrapAsync(alternativeInvestmentsListAlternativeInvestments( this, assetId, pageSize, pageToken, filter, options, )); } /** * Get Alternative Investment Asset * * @remarks * Retrieves the specified alternative investment asset details. */ async getAlternativeInvestment( assetId: string, options?: RequestOptions, ): Promise< operations.AlternativeInvestmentsGetAlternativeInvestmentResponse > { return unwrapAsync(alternativeInvestmentsGetAlternativeInvestment( this, assetId, options, )); } }