Skip to content
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: 0 additions & 1 deletion src/rest/stock/ownership/etf-holdings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export interface RestStockOwnershipEtfHoldingsParams {
from?: string;
to?: string;
sort?: 'asc' | 'desc';
code?: string;
}

export interface RestStockOwnershipEtfHoldingsComponent {
Expand Down
4 changes: 2 additions & 2 deletions test/rest-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ describe('RestClient', () => {
it('should request with query params', async () => {
const client = new RestClient({ apiKey: 'api-key' });
const stock = client.stock as RestStockClient;
await stock.ownership.etfHoldings({ symbol: '0050', from: '2026-05-01', to: '2026-05-21', sort: 'desc', code: '2330' });
await stock.ownership.etfHoldings({ symbol: '0050', from: '2026-05-01', to: '2026-05-21', sort: 'desc' });
expect(fetch).toBeCalledWith(
'https://api.fugle.tw/marketdata/v1.0/stock/ownership/etf-holdings/0050?code=2330&from=2026-05-01&sort=desc&to=2026-05-21',
'https://api.fugle.tw/marketdata/v1.0/stock/ownership/etf-holdings/0050?from=2026-05-01&sort=desc&to=2026-05-21',
{ headers: { 'X-API-KEY': 'api-key' } },
);
});
Expand Down
Loading