From 10bd7e6221af9757041df1115ffbb60fc591f6b6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:36:44 +0000 Subject: [PATCH] feat(api): add average cost to positions (#78) --- .stats.yml | 2 +- src/resources/shared.ts | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index a5829a7..b840065 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/clear-street%2Fstudio-sdk-507601d533175bf3b74a3b04c29d55029c585b24a4ec873bc43d93fe76528076.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/clear-street%2Fstudio-sdk-f04f51a2adbacf75b26ed0b3cd1920c8e2dc63a35c78a579bb8f007247307082.yml diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 1267101..fcaf094 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -267,19 +267,24 @@ export interface Position { /** * Account ID for the account. */ - account_id?: string; + account_id: string; /** * Account number for the account. */ - account_number?: string; + account_number: string; + + /** + * The average cost of the position. + */ + average_cost: number; /** * String representation of quantity. */ - quantity?: string; + quantity: string; - symbol?: string; + symbol: string; } export interface RegtMarginSimulation {