Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #21

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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