Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Aug 28, 2024
1 parent 9f78bd7 commit 93fb8ab
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- main
- next

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This library provides convenient access to the Studio SDK REST API from server-side TypeScript or JavaScript.

The REST API documentation can be found [on docs.clearstreet.io](https://docs.clearstreet.io/studio). The full API of this library can be found in [api.md](api.md).
The REST API documentation can be found on [docs.clearstreet.io](https://docs.clearstreet.io/studio). The full API of this library can be found in [api.md](api.md).

It is generated with [Stainless](https://www.stainlessapi.com/).

Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/accounts/locate-orders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('resource locateOrders', () => {
quantity: 'x',
reference_id: 'my-order-id-123',
symbol: 'AAPL',
comments: 'string',
comments: 'comments',
});
});

Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/accounts/orders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('resource orders', () => {
await expect(
studioSDK.accounts.orders.list(
'x',
{ from: 1710613560668, page_size: 1, page_token: 'string', to: 1710613560668 },
{ from: 1710613560668, page_size: 1, page_token: 'page_token', to: 1710613560668 },
{ path: '/_stainless_unknown_path' },
),
).rejects.toThrow(StudioSDK.NotFoundError);
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/accounts/positions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('resource positions', () => {
await expect(
studioSDK.accounts.positions.list(
'x',
{ page_size: 1, page_token: 'string' },
{ page_size: 1, page_token: 'page_token' },
{ path: '/_stainless_unknown_path' },
),
).rejects.toThrow(StudioSDK.NotFoundError);
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/accounts/trades.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('resource trades', () => {
await expect(
studioSDK.accounts.trades.list(
'x',
{ page_size: 1, page_token: 'string' },
{ page_size: 1, page_token: 'page_token' },
{ path: '/_stainless_unknown_path' },
),
).rejects.toThrow(StudioSDK.NotFoundError);
Expand Down
4 changes: 2 additions & 2 deletions tests/api-resources/entities/regt-margin-simulations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const studioSDK = new StudioSDK({

describe('resource regtMarginSimulations', () => {
test('create: only required params', async () => {
const responsePromise = studioSDK.entities.regtMarginSimulations.create('x', { name: 'string' });
const responsePromise = studioSDK.entities.regtMarginSimulations.create('x', { name: 'name' });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
Expand All @@ -22,7 +22,7 @@ describe('resource regtMarginSimulations', () => {

test('create: required and optional params', async () => {
const response = await studioSDK.entities.regtMarginSimulations.create('x', {
name: 'string',
name: 'name',
ignore_existing: true,
prices: [
{ symbol: 'AAPL', symbol_format: 'cms', price: 'x' },
Expand Down

0 comments on commit 93fb8ab

Please sign in to comment.