Skip to content

Commit

Permalink
Merge pull request #71 from clear-street/release-please--branches--ma…
Browse files Browse the repository at this point in the history
…in--changes--next--components--studio-sdk

release: 0.1.0-alpha.15
  • Loading branch information
sonicxml authored Dec 9, 2024
2 parents 13cf4ee + 23e5d1f commit 786da57
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.14"
".": "0.1.0-alpha.15"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 31
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/clear-street%2Fstudio-sdk-5efb317738842339f6e8bd32592691a65d19a54adc34bfa319d6bac2404404a7.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/clear-street%2Fstudio-sdk-507601d533175bf3b74a3b04c29d55029c585b24a4ec873bc43d93fe76528076.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.15 (2024-12-09)

Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/clear-street/studio-sdk-node/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)

### Features

* **api:** account number support ([#70](https://github.com/clear-street/studio-sdk-node/issues/70)) ([884f5a7](https://github.com/clear-street/studio-sdk-node/commit/884f5a785ea47610ca690acba42b68d3af2a6517))

## 0.1.0-alpha.14 (2024-11-29)

Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/clear-street/studio-sdk-node/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clear-street/studio-sdk",
"version": "0.1.0-alpha.14",
"version": "0.1.0-alpha.15",
"description": "The official TypeScript library for the Studio SDK API",
"author": "Studio SDK <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/resources/accounts/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Accounts extends APIResource {
inventories: InventoriesAPI.Inventories = new InventoriesAPI.Inventories(this._client);

/**
* Get an account by its ID.
* Get an account by its ID or number.
*/
retrieve(accountId: string, options?: Core.RequestOptions): Core.APIPromise<Account> {
return this._client.get(`/accounts/${accountId}`, options);
Expand All @@ -74,6 +74,11 @@ export interface Account {
*/
account_id: string;

/**
* Account number for the account.
*/
account_number: string;

/**
* Entity ID for the legal entity.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/resources/accounts/holdings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ export interface HoldingListResponse {
*/
account_id: string;

/**
* Account number for the account.
*/
account_number: string;

data: Array<HoldingListResponse.Data>;

/**
Expand Down
5 changes: 5 additions & 0 deletions src/resources/accounts/inventories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export interface InventoryRetrieveResponse {
*/
account_id?: string;

/**
* Account number for the account.
*/
account_number?: string;

/**
* String representation of quantity.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/resources/accounts/pnl-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export namespace PnlDetailListResponse {
*/
account_id: string;

/**
* Account number for the account.
*/
account_number: string;

/**
* The asset class of the symbol.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/resources/accounts/pnl-sums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export interface PnlSumListResponse {
*/
account_id?: string;

/**
* Account number for the account.
*/
account_number?: string;

data?: Array<PnlSumListResponse.Data>;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/resources/accounts/positions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as Shared from '../shared';

export class Positions extends APIResource {
/**
* Get current positions for a given account for a given symbol.
* Get current position for a given account for a given symbol.
*/
retrieve(
accountId: string,
Expand Down
20 changes: 20 additions & 0 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export interface LocateOrder {
*/
account_id: string;

/**
* Account number for the account.
*/
account_number: string;

/**
* Unique locate ID assigned by us.
*/
Expand Down Expand Up @@ -115,6 +120,11 @@ export interface Order {
*/
account_id: string;

/**
* Account number for the account.
*/
account_number: string;

/**
* When the order was created in milliseconds since epoch.
*/
Expand Down Expand Up @@ -259,6 +269,11 @@ export interface Position {
*/
account_id?: string;

/**
* Account number for the account.
*/
account_number?: string;

/**
* String representation of quantity.
*/
Expand Down Expand Up @@ -431,6 +446,11 @@ export interface Trade {
*/
account_id?: string;

/**
* Account number for the account.
*/
account_number?: string;

/**
* The symbol this trade was for.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0-alpha.14'; // x-release-please-version
export const VERSION = '0.1.0-alpha.15'; // x-release-please-version

0 comments on commit 786da57

Please sign in to comment.