@chadwin/sdk 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +42 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +179 -54
- package/dist/index.d.ts +179 -54
- package/dist/index.js +42 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ interface components {
|
|
|
186
186
|
*/
|
|
187
187
|
content_url: string;
|
|
188
188
|
/** @enum {string} */
|
|
189
|
-
form: "10-K" | "10-K/A" | "20-F" | "20-F/A" | "40-F" | "40-F/A";
|
|
189
|
+
form: "10-K" | "10-K/A" | "10-Q" | "10-Q/A" | "20-F" | "20-F/A" | "40-F" | "40-F/A";
|
|
190
190
|
/**
|
|
191
191
|
* Format: date
|
|
192
192
|
* @description End date of the fiscal period covered by this filing, or null when the SEC filing does not provide one.
|
|
@@ -196,7 +196,7 @@ interface components {
|
|
|
196
196
|
sec_url: string;
|
|
197
197
|
}[];
|
|
198
198
|
/** @enum {string} */
|
|
199
|
-
fiscal_period: "FY";
|
|
199
|
+
fiscal_period: "FY" | "Q1" | "Q2" | "Q3";
|
|
200
200
|
fiscal_year: number;
|
|
201
201
|
issuer: {
|
|
202
202
|
cik: string;
|
|
@@ -217,10 +217,10 @@ interface components {
|
|
|
217
217
|
*/
|
|
218
218
|
content_url: string;
|
|
219
219
|
/** @enum {string|null} */
|
|
220
|
-
fiscal_period: "FY" | null;
|
|
220
|
+
fiscal_period: "FY" | "Q1" | "Q2" | "Q3" | null;
|
|
221
221
|
fiscal_year: number | null;
|
|
222
222
|
/** @enum {string} */
|
|
223
|
-
form: "10-K" | "10-K/A" | "20-F" | "20-F/A" | "40-F" | "40-F/A";
|
|
223
|
+
form: "10-K" | "10-K/A" | "10-Q" | "10-Q/A" | "20-F" | "20-F/A" | "40-F" | "40-F/A";
|
|
224
224
|
issuer: {
|
|
225
225
|
cik: string;
|
|
226
226
|
name: string | null;
|
|
@@ -1249,7 +1249,7 @@ interface operations {
|
|
|
1249
1249
|
* "ticker": "IBM"
|
|
1250
1250
|
* }
|
|
1251
1251
|
* ],
|
|
1252
|
-
* "name": "
|
|
1252
|
+
* "name": "International Business Machines Corporation",
|
|
1253
1253
|
* "sic": {
|
|
1254
1254
|
* "code": "3570",
|
|
1255
1255
|
* "industry_title": "COMPUTER & OFFICE EQUIPMENT",
|
|
@@ -1356,7 +1356,7 @@ interface operations {
|
|
|
1356
1356
|
* "ticker": "IBM"
|
|
1357
1357
|
* }
|
|
1358
1358
|
* ],
|
|
1359
|
-
* "name": "
|
|
1359
|
+
* "name": "International Business Machines Corporation",
|
|
1360
1360
|
* "sic": {
|
|
1361
1361
|
* "code": "3570",
|
|
1362
1362
|
* "industry_title": "COMPUTER & OFFICE EQUIPMENT",
|
|
@@ -1879,12 +1879,131 @@ interface operations {
|
|
|
1879
1879
|
};
|
|
1880
1880
|
};
|
|
1881
1881
|
};
|
|
1882
|
+
getCompanyReportForFiscalPeriod: {
|
|
1883
|
+
parameters: {
|
|
1884
|
+
query?: never;
|
|
1885
|
+
header?: never;
|
|
1886
|
+
path: {
|
|
1887
|
+
ticker: string;
|
|
1888
|
+
fiscal_year: string;
|
|
1889
|
+
fiscal_period: "Q1" | "Q2" | "Q3";
|
|
1890
|
+
};
|
|
1891
|
+
cookie?: never;
|
|
1892
|
+
};
|
|
1893
|
+
requestBody?: never;
|
|
1894
|
+
responses: {
|
|
1895
|
+
/** @description Quarterly report filing family */
|
|
1896
|
+
200: {
|
|
1897
|
+
headers: {
|
|
1898
|
+
"Cache-Control"?: string;
|
|
1899
|
+
ETag?: string;
|
|
1900
|
+
"X-Billing-Period-Quota-Limit"?: string;
|
|
1901
|
+
"X-Billing-Period-Quota-Remaining"?: string;
|
|
1902
|
+
"X-Billing-Period-Quota-Reset"?: string;
|
|
1903
|
+
[name: string]: unknown;
|
|
1904
|
+
};
|
|
1905
|
+
content: {
|
|
1906
|
+
/**
|
|
1907
|
+
* @example {
|
|
1908
|
+
* "filings": [
|
|
1909
|
+
* {
|
|
1910
|
+
* "accepted_at": "2025-08-01T10:00:42.000Z",
|
|
1911
|
+
* "accession_number": "0000320193-25-000073",
|
|
1912
|
+
* "content_url": "/v1/sec/company-reports/0000320193-25-000073/content.html",
|
|
1913
|
+
* "form": "10-Q",
|
|
1914
|
+
* "period_end_date": "2025-06-28",
|
|
1915
|
+
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000073/0000320193-25-000073-index.htm"
|
|
1916
|
+
* }
|
|
1917
|
+
* ],
|
|
1918
|
+
* "fiscal_period": "Q3",
|
|
1919
|
+
* "fiscal_year": 2025,
|
|
1920
|
+
* "issuer": {
|
|
1921
|
+
* "cik": "0000320193",
|
|
1922
|
+
* "name": "Apple Inc.",
|
|
1923
|
+
* "ticker": "AAPL"
|
|
1924
|
+
* }
|
|
1925
|
+
* }
|
|
1926
|
+
*/
|
|
1927
|
+
"application/json": components["schemas"]["CompanyReportFamilyResponse"];
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
/** @description The ticker, fiscal year, or fiscal period is invalid */
|
|
1931
|
+
400: {
|
|
1932
|
+
headers: {
|
|
1933
|
+
[name: string]: unknown;
|
|
1934
|
+
};
|
|
1935
|
+
content: {
|
|
1936
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
/** @description The request is missing a valid Chadwin API key. */
|
|
1940
|
+
401: {
|
|
1941
|
+
headers: {
|
|
1942
|
+
[name: string]: unknown;
|
|
1943
|
+
};
|
|
1944
|
+
content: {
|
|
1945
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
/** @description The subscription does not include this dataset. */
|
|
1949
|
+
403: {
|
|
1950
|
+
headers: {
|
|
1951
|
+
[name: string]: unknown;
|
|
1952
|
+
};
|
|
1953
|
+
content: {
|
|
1954
|
+
"application/json": components["schemas"]["DatasetNotEntitledErrorResponse"];
|
|
1955
|
+
};
|
|
1956
|
+
};
|
|
1957
|
+
/** @description The company or eligible quarterly report was not found */
|
|
1958
|
+
404: {
|
|
1959
|
+
headers: {
|
|
1960
|
+
[name: string]: unknown;
|
|
1961
|
+
};
|
|
1962
|
+
content: {
|
|
1963
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1966
|
+
/** @description More than one original quarterly report matches the fiscal period */
|
|
1967
|
+
409: {
|
|
1968
|
+
headers: {
|
|
1969
|
+
[name: string]: unknown;
|
|
1970
|
+
};
|
|
1971
|
+
content: {
|
|
1972
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1973
|
+
};
|
|
1974
|
+
};
|
|
1975
|
+
/** @description The request exceeded a rate limit. */
|
|
1976
|
+
429: {
|
|
1977
|
+
headers: {
|
|
1978
|
+
"RateLimit-Limit"?: string;
|
|
1979
|
+
"RateLimit-Reset"?: string;
|
|
1980
|
+
"Retry-After"?: string;
|
|
1981
|
+
"X-Billing-Period-Quota-Limit"?: string;
|
|
1982
|
+
"X-Billing-Period-Quota-Remaining"?: string;
|
|
1983
|
+
"X-Billing-Period-Quota-Reset"?: string;
|
|
1984
|
+
[name: string]: unknown;
|
|
1985
|
+
};
|
|
1986
|
+
content: {
|
|
1987
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1988
|
+
};
|
|
1989
|
+
};
|
|
1990
|
+
/** @description The filing catalog is unavailable */
|
|
1991
|
+
503: {
|
|
1992
|
+
headers: {
|
|
1993
|
+
[name: string]: unknown;
|
|
1994
|
+
};
|
|
1995
|
+
content: {
|
|
1996
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
};
|
|
2000
|
+
};
|
|
1882
2001
|
listCompanyReportFeed: {
|
|
1883
2002
|
parameters: {
|
|
1884
2003
|
query?: {
|
|
1885
2004
|
/** @description Use `next_cursor` from the previous response. Keep the same `forms` filter and do not combine this with `start`. */
|
|
1886
2005
|
cursor?: string;
|
|
1887
|
-
/** @description Optional comma-separated
|
|
2006
|
+
/** @description Optional comma-separated report families. Supported values are 10-K, 10-Q, 20-F, and 40-F. Each family includes its /A amendments. */
|
|
1888
2007
|
forms?: string;
|
|
1889
2008
|
/** @description Page size from 1 through 1000. */
|
|
1890
2009
|
limit?: string;
|
|
@@ -1897,7 +2016,7 @@ interface operations {
|
|
|
1897
2016
|
};
|
|
1898
2017
|
requestBody?: never;
|
|
1899
2018
|
responses: {
|
|
1900
|
-
/** @description Published
|
|
2019
|
+
/** @description Published company report updates. */
|
|
1901
2020
|
200: {
|
|
1902
2021
|
headers: {
|
|
1903
2022
|
"Cache-Control"?: string;
|
|
@@ -1910,24 +2029,24 @@ interface operations {
|
|
|
1910
2029
|
/**
|
|
1911
2030
|
* @example {
|
|
1912
2031
|
* "has_more": false,
|
|
1913
|
-
* "next_cursor": "
|
|
2032
|
+
* "next_cursor": "cur_eyJ2IjoxLCJhZnRlciI6MTIzNDV9",
|
|
1914
2033
|
* "updates": [
|
|
1915
2034
|
* {
|
|
1916
|
-
* "accepted_at": "
|
|
1917
|
-
* "accession_number": "0000320193-
|
|
1918
|
-
* "content_url": "/v1/sec/company-reports/0000320193-
|
|
1919
|
-
* "feed_event_id": "
|
|
1920
|
-
* "fiscal_period": "
|
|
2035
|
+
* "accepted_at": "2025-08-01T10:00:42.000Z",
|
|
2036
|
+
* "accession_number": "0000320193-25-000073",
|
|
2037
|
+
* "content_url": "/v1/sec/company-reports/0000320193-25-000073/content.html",
|
|
2038
|
+
* "feed_event_id": "crfe_000000012345",
|
|
2039
|
+
* "fiscal_period": "Q3",
|
|
1921
2040
|
* "fiscal_year": 2025,
|
|
1922
|
-
* "form": "10-
|
|
2041
|
+
* "form": "10-Q",
|
|
1923
2042
|
* "issuer": {
|
|
1924
2043
|
* "cik": "0000320193",
|
|
1925
2044
|
* "name": "Apple Inc.",
|
|
1926
2045
|
* "ticker": "AAPL"
|
|
1927
2046
|
* },
|
|
1928
|
-
* "period_end_date": "2025-
|
|
1929
|
-
* "published_at": "2026-08-
|
|
1930
|
-
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/
|
|
2047
|
+
* "period_end_date": "2025-06-28",
|
|
2048
|
+
* "published_at": "2026-08-12T08:15:30.000Z",
|
|
2049
|
+
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000073/0000320193-25-000073-index.htm"
|
|
1931
2050
|
* }
|
|
1932
2051
|
* ]
|
|
1933
2052
|
* }
|
|
@@ -1947,10 +2066,10 @@ interface operations {
|
|
|
1947
2066
|
/** @description Stable idempotency key for this publication event. */
|
|
1948
2067
|
feed_event_id: string;
|
|
1949
2068
|
/** @enum {string|null} */
|
|
1950
|
-
fiscal_period: "FY" | null;
|
|
2069
|
+
fiscal_period: "FY" | "Q1" | "Q2" | "Q3" | null;
|
|
1951
2070
|
fiscal_year: number | null;
|
|
1952
2071
|
/** @enum {string} */
|
|
1953
|
-
form: "10-K" | "10-K/A" | "20-F" | "20-F/A" | "40-F" | "40-F/A";
|
|
2072
|
+
form: "10-K" | "10-K/A" | "10-Q" | "10-Q/A" | "20-F" | "20-F/A" | "40-F" | "40-F/A";
|
|
1954
2073
|
issuer: {
|
|
1955
2074
|
cik: string;
|
|
1956
2075
|
name: string | null;
|
|
@@ -2115,7 +2234,7 @@ interface operations {
|
|
|
2115
2234
|
from: string;
|
|
2116
2235
|
/** @description Optional inclusive SEC filing-date upper bound in YYYY-MM-DD format. Defaults to the current date. If the filing-date window matches more than 1000 rows, narrow the window. */
|
|
2117
2236
|
until?: string;
|
|
2118
|
-
/** @description Optional comma-separated US listed ticker filter.
|
|
2237
|
+
/** @description Optional comma-separated US listed ticker filter. */
|
|
2119
2238
|
tickers?: string;
|
|
2120
2239
|
};
|
|
2121
2240
|
header?: never;
|
|
@@ -3314,19 +3433,19 @@ interface operations {
|
|
|
3314
3433
|
content: {
|
|
3315
3434
|
/**
|
|
3316
3435
|
* @example {
|
|
3317
|
-
* "accepted_at": "
|
|
3318
|
-
* "accession_number": "0000320193-
|
|
3319
|
-
* "content_url": "/v1/sec/company-reports/0000320193-
|
|
3320
|
-
* "fiscal_period": "
|
|
3321
|
-
* "fiscal_year":
|
|
3322
|
-
* "form": "10-
|
|
3436
|
+
* "accepted_at": "2025-08-01T10:00:42.000Z",
|
|
3437
|
+
* "accession_number": "0000320193-25-000073",
|
|
3438
|
+
* "content_url": "/v1/sec/company-reports/0000320193-25-000073/content.html",
|
|
3439
|
+
* "fiscal_period": "Q3",
|
|
3440
|
+
* "fiscal_year": 2025,
|
|
3441
|
+
* "form": "10-Q",
|
|
3323
3442
|
* "issuer": {
|
|
3324
3443
|
* "cik": "0000320193",
|
|
3325
3444
|
* "name": "Apple Inc.",
|
|
3326
3445
|
* "ticker": "AAPL"
|
|
3327
3446
|
* },
|
|
3328
|
-
* "period_end_date": "
|
|
3329
|
-
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/
|
|
3447
|
+
* "period_end_date": "2025-06-28",
|
|
3448
|
+
* "sec_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000073/0000320193-25-000073-index.htm"
|
|
3330
3449
|
* }
|
|
3331
3450
|
*/
|
|
3332
3451
|
"application/json": components["schemas"]["CompanyReportResponse"];
|
|
@@ -3405,7 +3524,7 @@ interface operations {
|
|
|
3405
3524
|
};
|
|
3406
3525
|
requestBody?: never;
|
|
3407
3526
|
responses: {
|
|
3408
|
-
/** @description
|
|
3527
|
+
/** @description Company report HTML */
|
|
3409
3528
|
200: {
|
|
3410
3529
|
headers: {
|
|
3411
3530
|
"Cache-Control"?: string;
|
|
@@ -3418,7 +3537,7 @@ interface operations {
|
|
|
3418
3537
|
[name: string]: unknown;
|
|
3419
3538
|
};
|
|
3420
3539
|
content: {
|
|
3421
|
-
/** @example <!doctype html><html><body><h1>
|
|
3540
|
+
/** @example <!doctype html><html><body><h1>Company report</h1></body></html> */
|
|
3422
3541
|
"text/html": string;
|
|
3423
3542
|
};
|
|
3424
3543
|
};
|
|
@@ -4097,7 +4216,8 @@ interface operations {
|
|
|
4097
4216
|
};
|
|
4098
4217
|
}
|
|
4099
4218
|
|
|
4100
|
-
type CompanyReportForm = "10-K" | "20-F" | "40-F";
|
|
4219
|
+
type CompanyReportForm = "10-K" | "10-Q" | "20-F" | "40-F";
|
|
4220
|
+
type CompanyReportFiscalPeriod = "Q1" | "Q2" | "Q3";
|
|
4101
4221
|
type InsiderActivityForm = "3" | "3/A" | "4" | "4/A" | "5" | "5/A" | "144" | "144/A";
|
|
4102
4222
|
type InsiderTransactionCode = "A" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "O" | "P" | "S" | "U" | "V" | "W" | "X" | "Z";
|
|
4103
4223
|
type InstitutionalFilingForm = "13F-HR" | "13F-HR/A" | "13F-NT" | "13F-NT/A";
|
|
@@ -4229,6 +4349,11 @@ declare class CompanyReports {
|
|
|
4229
4349
|
ticker: string;
|
|
4230
4350
|
fiscalYear: number;
|
|
4231
4351
|
}): PromiseWithResponse<JsonResponse<"getCompanyReport">>;
|
|
4352
|
+
getByFiscalPeriod({ ticker, fiscalYear, fiscalPeriod, }: {
|
|
4353
|
+
ticker: string;
|
|
4354
|
+
fiscalYear: number;
|
|
4355
|
+
fiscalPeriod: CompanyReportFiscalPeriod;
|
|
4356
|
+
}): PromiseWithResponse<JsonResponse<"getCompanyReportForFiscalPeriod">>;
|
|
4232
4357
|
getHtml({ accessionNumber, }: {
|
|
4233
4358
|
accessionNumber: string;
|
|
4234
4359
|
}): PromiseWithResponse<TextResponse<"getSecCompanyReportContent">>;
|
|
@@ -4236,16 +4361,16 @@ declare class CompanyReports {
|
|
|
4236
4361
|
declare class InsiderTransactions {
|
|
4237
4362
|
private readonly transport;
|
|
4238
4363
|
constructor(transport: HttpTransport);
|
|
4239
|
-
list({
|
|
4240
|
-
|
|
4241
|
-
|
|
4364
|
+
list({ from, until, tickers, transactionCodes, }: {
|
|
4365
|
+
from: string;
|
|
4366
|
+
until?: string;
|
|
4242
4367
|
tickers?: string[];
|
|
4243
4368
|
transactionCodes?: InsiderTransactionCode[];
|
|
4244
4369
|
}): PromiseWithResponse<JsonResponse<"listInsiderTransactions">>;
|
|
4245
|
-
listForCompany({ ticker,
|
|
4370
|
+
listForCompany({ ticker, from, until, transactionCodes, }: {
|
|
4246
4371
|
ticker: string;
|
|
4247
|
-
|
|
4248
|
-
|
|
4372
|
+
from: string;
|
|
4373
|
+
until?: string;
|
|
4249
4374
|
transactionCodes?: InsiderTransactionCode[];
|
|
4250
4375
|
}): PromiseWithResponse<JsonResponse<"listCompanyInsiderTransactions">>;
|
|
4251
4376
|
}
|
|
@@ -4259,15 +4384,15 @@ declare class InsiderFilings {
|
|
|
4259
4384
|
declare class ProposedSales {
|
|
4260
4385
|
private readonly transport;
|
|
4261
4386
|
constructor(transport: HttpTransport);
|
|
4262
|
-
list({
|
|
4263
|
-
|
|
4264
|
-
|
|
4387
|
+
list({ from, until, tickers, }: {
|
|
4388
|
+
from: string;
|
|
4389
|
+
until?: string;
|
|
4265
4390
|
tickers?: string[];
|
|
4266
4391
|
}): PromiseWithResponse<JsonResponse<"listProposedSales">>;
|
|
4267
|
-
listForCompany({ ticker,
|
|
4392
|
+
listForCompany({ ticker, from, until, }: {
|
|
4268
4393
|
ticker: string;
|
|
4269
|
-
|
|
4270
|
-
|
|
4394
|
+
from: string;
|
|
4395
|
+
until?: string;
|
|
4271
4396
|
}): PromiseWithResponse<JsonResponse<"listCompanyProposedSales">>;
|
|
4272
4397
|
getFiling({ accessionNumber, }: {
|
|
4273
4398
|
accessionNumber: string;
|
|
@@ -4307,31 +4432,31 @@ declare class InstitutionalManagers {
|
|
|
4307
4432
|
listPeriods({ form13fFileNumber, }: {
|
|
4308
4433
|
form13fFileNumber: string;
|
|
4309
4434
|
}): PromiseWithResponse<JsonResponse<"listInstitutionalHoldingManagerPeriods">>;
|
|
4310
|
-
listHoldings({ form13fFileNumber,
|
|
4435
|
+
listHoldings({ form13fFileNumber, period, cursor, limit, }: {
|
|
4311
4436
|
form13fFileNumber: string;
|
|
4312
|
-
|
|
4437
|
+
period: string;
|
|
4313
4438
|
cursor?: string;
|
|
4314
4439
|
limit?: number;
|
|
4315
4440
|
}): PromiseWithResponse<JsonResponse<"listInstitutionalHoldingManagerHoldings">>;
|
|
4316
|
-
listPositions({ form13fFileNumber,
|
|
4441
|
+
listPositions({ form13fFileNumber, period, cursor, limit, }: {
|
|
4317
4442
|
form13fFileNumber: string;
|
|
4318
|
-
|
|
4443
|
+
period: string;
|
|
4319
4444
|
cursor?: string;
|
|
4320
4445
|
limit?: number;
|
|
4321
4446
|
}): PromiseWithResponse<JsonResponse<"listInstitutionalHoldingManagerPositions">>;
|
|
4322
|
-
|
|
4447
|
+
iterateManagers({ cik, form13fFileNumber, limit, }?: {
|
|
4323
4448
|
cik?: string;
|
|
4324
4449
|
form13fFileNumber?: string;
|
|
4325
4450
|
limit?: number;
|
|
4326
4451
|
}): AsyncGenerator<InstitutionalManager>;
|
|
4327
|
-
iterateHoldings({ form13fFileNumber,
|
|
4452
|
+
iterateHoldings({ form13fFileNumber, period, limit, }: {
|
|
4328
4453
|
form13fFileNumber: string;
|
|
4329
|
-
|
|
4454
|
+
period: string;
|
|
4330
4455
|
limit?: number;
|
|
4331
4456
|
}): AsyncGenerator<InstitutionalHolding>;
|
|
4332
|
-
iteratePositions({ form13fFileNumber,
|
|
4457
|
+
iteratePositions({ form13fFileNumber, period, limit, }: {
|
|
4333
4458
|
form13fFileNumber: string;
|
|
4334
|
-
|
|
4459
|
+
period: string;
|
|
4335
4460
|
limit?: number;
|
|
4336
4461
|
}): AsyncGenerator<InstitutionalPosition>;
|
|
4337
4462
|
}
|
|
@@ -4364,4 +4489,4 @@ declare class APIError extends Error {
|
|
|
4364
4489
|
constructor(message: string, options?: APIErrorOptions);
|
|
4365
4490
|
}
|
|
4366
4491
|
|
|
4367
|
-
export { APIError, Chadwin, type ClientOptions, type CompanyReportFeedFilters, type CompanyReportForm, type InsiderActivityFeedFilters, type InsiderActivityForm, type InsiderTransactionCode, type InsiderTransactionFeedFilters, type InstitutionalFilingFeedFilters, type InstitutionalFilingForm, type InstitutionalHolding, type InstitutionalManager, type InstitutionalPosition, type PromiseWithResponse };
|
|
4492
|
+
export { APIError, Chadwin, type ClientOptions, type CompanyReportFeedFilters, type CompanyReportFiscalPeriod, type CompanyReportForm, type InsiderActivityFeedFilters, type InsiderActivityForm, type InsiderTransactionCode, type InsiderTransactionFeedFilters, type InstitutionalFilingFeedFilters, type InstitutionalFilingForm, type InstitutionalHolding, type InstitutionalManager, type InstitutionalPosition, type PromiseWithResponse };
|
package/dist/index.js
CHANGED
|
@@ -384,6 +384,24 @@ var CompanyReports = class {
|
|
|
384
384
|
]
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
+
getByFiscalPeriod({
|
|
388
|
+
ticker,
|
|
389
|
+
fiscalYear,
|
|
390
|
+
fiscalPeriod
|
|
391
|
+
}) {
|
|
392
|
+
return this.transport.request({
|
|
393
|
+
path: [
|
|
394
|
+
"v1",
|
|
395
|
+
"companies",
|
|
396
|
+
"US",
|
|
397
|
+
ticker,
|
|
398
|
+
"reports",
|
|
399
|
+
"quarterly",
|
|
400
|
+
String(fiscalYear),
|
|
401
|
+
fiscalPeriod
|
|
402
|
+
]
|
|
403
|
+
});
|
|
404
|
+
}
|
|
387
405
|
getHtml({
|
|
388
406
|
accessionNumber
|
|
389
407
|
}) {
|
|
@@ -405,33 +423,33 @@ var InsiderTransactions = class {
|
|
|
405
423
|
}
|
|
406
424
|
transport;
|
|
407
425
|
list({
|
|
408
|
-
|
|
409
|
-
|
|
426
|
+
from,
|
|
427
|
+
until,
|
|
410
428
|
tickers,
|
|
411
429
|
transactionCodes
|
|
412
430
|
}) {
|
|
413
431
|
return this.transport.request({
|
|
414
432
|
path: ["v1", "insider-transactions"],
|
|
415
433
|
query: {
|
|
416
|
-
from
|
|
434
|
+
from,
|
|
417
435
|
tickers: commaSeparated(tickers),
|
|
418
436
|
transaction_codes: commaSeparated(transactionCodes),
|
|
419
|
-
until
|
|
437
|
+
until
|
|
420
438
|
}
|
|
421
439
|
});
|
|
422
440
|
}
|
|
423
441
|
listForCompany({
|
|
424
442
|
ticker,
|
|
425
|
-
|
|
426
|
-
|
|
443
|
+
from,
|
|
444
|
+
until,
|
|
427
445
|
transactionCodes
|
|
428
446
|
}) {
|
|
429
447
|
return this.transport.request({
|
|
430
448
|
path: ["v1", "companies", "US", ticker, "insider-transactions"],
|
|
431
449
|
query: {
|
|
432
|
-
from
|
|
450
|
+
from,
|
|
433
451
|
transaction_codes: commaSeparated(transactionCodes),
|
|
434
|
-
until
|
|
452
|
+
until
|
|
435
453
|
}
|
|
436
454
|
});
|
|
437
455
|
}
|
|
@@ -455,27 +473,27 @@ var ProposedSales = class {
|
|
|
455
473
|
}
|
|
456
474
|
transport;
|
|
457
475
|
list({
|
|
458
|
-
|
|
459
|
-
|
|
476
|
+
from,
|
|
477
|
+
until,
|
|
460
478
|
tickers
|
|
461
479
|
}) {
|
|
462
480
|
return this.transport.request({
|
|
463
481
|
path: ["v1", "proposed-sales"],
|
|
464
482
|
query: {
|
|
465
|
-
from
|
|
483
|
+
from,
|
|
466
484
|
tickers: commaSeparated(tickers),
|
|
467
|
-
until
|
|
485
|
+
until
|
|
468
486
|
}
|
|
469
487
|
});
|
|
470
488
|
}
|
|
471
489
|
listForCompany({
|
|
472
490
|
ticker,
|
|
473
|
-
|
|
474
|
-
|
|
491
|
+
from,
|
|
492
|
+
until
|
|
475
493
|
}) {
|
|
476
494
|
return this.transport.request({
|
|
477
495
|
path: ["v1", "companies", "US", ticker, "proposed-sales"],
|
|
478
|
-
query: { from
|
|
496
|
+
query: { from, until }
|
|
479
497
|
});
|
|
480
498
|
}
|
|
481
499
|
getFiling({
|
|
@@ -586,7 +604,7 @@ var InstitutionalManagers = class {
|
|
|
586
604
|
}
|
|
587
605
|
listHoldings({
|
|
588
606
|
form13fFileNumber,
|
|
589
|
-
|
|
607
|
+
period,
|
|
590
608
|
cursor,
|
|
591
609
|
limit
|
|
592
610
|
}) {
|
|
@@ -598,12 +616,12 @@ var InstitutionalManagers = class {
|
|
|
598
616
|
form13fFileNumber,
|
|
599
617
|
"holdings"
|
|
600
618
|
],
|
|
601
|
-
query: { cursor, limit, period
|
|
619
|
+
query: { cursor, limit, period }
|
|
602
620
|
});
|
|
603
621
|
}
|
|
604
622
|
listPositions({
|
|
605
623
|
form13fFileNumber,
|
|
606
|
-
|
|
624
|
+
period,
|
|
607
625
|
cursor,
|
|
608
626
|
limit
|
|
609
627
|
}) {
|
|
@@ -615,10 +633,10 @@ var InstitutionalManagers = class {
|
|
|
615
633
|
form13fFileNumber,
|
|
616
634
|
"positions"
|
|
617
635
|
],
|
|
618
|
-
query: { cursor, limit, period
|
|
636
|
+
query: { cursor, limit, period }
|
|
619
637
|
});
|
|
620
638
|
}
|
|
621
|
-
async *
|
|
639
|
+
async *iterateManagers({
|
|
622
640
|
cik,
|
|
623
641
|
form13fFileNumber,
|
|
624
642
|
limit
|
|
@@ -637,14 +655,14 @@ var InstitutionalManagers = class {
|
|
|
637
655
|
}
|
|
638
656
|
async *iterateHoldings({
|
|
639
657
|
form13fFileNumber,
|
|
640
|
-
|
|
658
|
+
period,
|
|
641
659
|
limit
|
|
642
660
|
}) {
|
|
643
661
|
let cursor;
|
|
644
662
|
do {
|
|
645
663
|
const page = await this.listHoldings({
|
|
646
664
|
form13fFileNumber,
|
|
647
|
-
|
|
665
|
+
period,
|
|
648
666
|
...cursor === void 0 ? {} : { cursor },
|
|
649
667
|
...limit === void 0 ? {} : { limit }
|
|
650
668
|
});
|
|
@@ -654,14 +672,14 @@ var InstitutionalManagers = class {
|
|
|
654
672
|
}
|
|
655
673
|
async *iteratePositions({
|
|
656
674
|
form13fFileNumber,
|
|
657
|
-
|
|
675
|
+
period,
|
|
658
676
|
limit
|
|
659
677
|
}) {
|
|
660
678
|
let cursor;
|
|
661
679
|
do {
|
|
662
680
|
const page = await this.listPositions({
|
|
663
681
|
form13fFileNumber,
|
|
664
|
-
|
|
682
|
+
period,
|
|
665
683
|
...cursor === void 0 ? {} : { cursor },
|
|
666
684
|
...limit === void 0 ? {} : { limit }
|
|
667
685
|
});
|