@bitget-ai/getagent-skill 0.2.1 → 0.3.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/.claude-plugin/marketplace.json +15 -4
- package/.claude-plugin/plugin.json +1 -1
- package/VERSION +1 -1
- package/package.json +1 -1
- package/skills/getagent/SKILL.md +169 -6
- package/skills/getagent/examples/btc-ema-cross-demo/backtest.yaml +4 -0
- package/skills/getagent/references/api/confirm.md +59 -0
- package/skills/getagent/references/api/index.md +9 -7
- package/skills/getagent/references/api/publish.md +13 -6
- package/skills/getagent/references/api/run.md +5 -5
- package/skills/getagent/references/api/upload.md +22 -4
- package/skills/getagent/references/backtest-engine.md +82 -152
- package/skills/getagent/references/package-schema.md +31 -8
- package/skills/getagent/references/sdk/backtest/catalog.md +17 -2
- package/skills/getagent/references/sdk/data/arxiv.md +8 -10
- package/skills/getagent/references/sdk/data/catalog.md +3 -8
- package/skills/getagent/references/sdk/data/commodity.md +71 -39
- package/skills/getagent/references/sdk/data/coverage.md +0 -3
- package/skills/getagent/references/sdk/data/crypto.md +1583 -402
- package/skills/getagent/references/sdk/data/currency.md +55 -15
- package/skills/getagent/references/sdk/data/derivatives.md +161 -50
- package/skills/getagent/references/sdk/data/economy.md +911 -259
- package/skills/getagent/references/sdk/data/equity.md +1719 -393
- package/skills/getagent/references/sdk/data/etf.md +550 -64
- package/skills/getagent/references/sdk/data/famafrench.md +38 -50
- package/skills/getagent/references/sdk/data/fixedincome.md +574 -139
- package/skills/getagent/references/sdk/data/imf_utils.md +0 -8
- package/skills/getagent/references/sdk/data/index.md +18 -32
- package/skills/getagent/references/sdk/data/news.md +128 -58
- package/skills/getagent/references/sdk/data/regulators.md +108 -43
- package/skills/getagent/references/sdk/data/sentiment.md +188 -34
- package/skills/getagent/references/sdk/data/uscongress.md +13 -21
- package/skills/getagent/references/sdk/data/web_search.md +3 -7
- package/skills/getagent/references/sdk/data/wikipedia.md +12 -18
- package/skills/getagent/references/sdk.md +14 -5
- package/skills/getagent/scripts/validate.py +109 -3
- package/skills/getagent/scripts/version_check.sh +13 -12
- package/skills/getagent/references/sdk/data/playbook-supported.md +0 -9871
|
@@ -15,13 +15,16 @@ are callable through the DataSDK wrapper.
|
|
|
15
15
|
- [`regulators.sec.schema_files`](#regulatorssecschema-files)
|
|
16
16
|
- [`regulators.sec.sic_search`](#regulatorssecsic-search)
|
|
17
17
|
- [`regulators.sec.symbol_map`](#regulatorssecsymbol-map)
|
|
18
|
+
- [`uscongress.bill_info`](#uscongressbill-info)
|
|
19
|
+
- [`uscongress.bill_text_urls`](#uscongressbill-text-urls)
|
|
20
|
+
- [`uscongress.bills`](#uscongressbills)
|
|
18
21
|
|
|
19
22
|
## Endpoint reference
|
|
20
23
|
|
|
21
24
|
### `regulators.cftc.cot`
|
|
22
25
|
|
|
23
26
|
```python
|
|
24
|
-
data.regulators.cftc.cot(start_time=None, end_time=None, id='045601', report_type='legacy', futures_only=False
|
|
27
|
+
data.regulators.cftc.cot(start_time=None, end_time=None, id='045601', report_type='legacy', futures_only=False)
|
|
25
28
|
```
|
|
26
29
|
|
|
27
30
|
Summary: Cot
|
|
@@ -31,7 +34,6 @@ Summary: Cot
|
|
|
31
34
|
| Endpoint ID | `regulators.cftc.cot` |
|
|
32
35
|
| HTTP | `GET` |
|
|
33
36
|
| Path | `/inner/v1/agent-data/regulators/cftc/cot` |
|
|
34
|
-
| Default provider | `cftc` |
|
|
35
37
|
| SDK | `supported` |
|
|
36
38
|
| Host | `supported` |
|
|
37
39
|
| Notes | - |
|
|
@@ -43,16 +45,15 @@ Summary: Cot
|
|
|
43
45
|
| `start_time` | `no` | `integer | null` | `-` | Start time of the data as a Unix timestamp in milliseconds. Takes priority over start_date when both are provided. |
|
|
44
46
|
| `end_time` | `no` | `integer | null` | `-` | End time of the data as a Unix timestamp in milliseconds. Takes priority over end_date when both are provided. |
|
|
45
47
|
| `id` | `no` | `string` | `045601` | A string with the CFTC market code or other identifying string, such as the contract market name, commodity name, or commodity group - i.e, 'gold' or 'japanese yen'.Default report is Fed Funds Futures. Use the 'cftc_market_code' for an exact match. |
|
|
46
|
-
| `report_type` | `no` | `string` | `legacy` | enum: legacy, disaggregated, financial, supplemental The type of report to retrieve. Set `id` as 'all' to return all items in the report type (default date range returns the latest report). The Legacy report is broken down by exchange with reported open interest further broken down into three trader classifications: commercial, non-commercial and non-reportable. The Disaggregated reports are broken down by Agriculture and Natural Resource contracts. The Disaggregated reports break down reportable open interest positions into four classifications: Producer/Merchant, Swap Dealers, Managed Money and Other Reportables. The Traders in Financial Futures (TFF) report includes financial contracts. The TFF report breaks down the reported open interest into five classifications: Dealer, Asset Manager, Leveraged Money, Other Reportables and Non-Reportables.
|
|
47
|
-
| `futures_only` | `no` | `boolean` | `false` | Returns the futures-only report. Default is False, for the combined report.
|
|
48
|
-
| `provider` | `no` | `string` | `cftc` | - |
|
|
48
|
+
| `report_type` | `no` | `string` | `legacy` | enum: legacy, disaggregated, financial, supplemental The type of report to retrieve. Set `id` as 'all' to return all items in the report type (default date range returns the latest report). The Legacy report is broken down by exchange with reported open interest further broken down into three trader classifications: commercial, non-commercial and non-reportable. The Disaggregated reports are broken down by Agriculture and Natural Resource contracts. The Disaggregated reports break down reportable open interest positions into four classifications: Producer/Merchant, Swap Dealers, Managed Money and Other Reportables. The Traders in Financial Futures (TFF) report includes financial contracts. The TFF report breaks down the reported open interest into five classifications: Dealer, Asset Manager, Leveraged Money, Other Reportables and Non-Reportables. |
|
|
49
|
+
| `futures_only` | `no` | `boolean` | `false` | Returns the futures-only report. Default is False, for the combined report. |
|
|
49
50
|
|
|
50
51
|
---
|
|
51
52
|
|
|
52
53
|
### `regulators.cftc.cot_search`
|
|
53
54
|
|
|
54
55
|
```python
|
|
55
|
-
data.regulators.cftc.cot_search(query=''
|
|
56
|
+
data.regulators.cftc.cot_search(query='')
|
|
56
57
|
```
|
|
57
58
|
|
|
58
59
|
Summary: Cot Search
|
|
@@ -62,7 +63,6 @@ Summary: Cot Search
|
|
|
62
63
|
| Endpoint ID | `regulators.cftc.cot_search` |
|
|
63
64
|
| HTTP | `GET` |
|
|
64
65
|
| Path | `/inner/v1/agent-data/regulators/cftc/cot_search` |
|
|
65
|
-
| Default provider | `cftc` |
|
|
66
66
|
| SDK | `supported` |
|
|
67
67
|
| Host | `supported` |
|
|
68
68
|
| Notes | - |
|
|
@@ -72,14 +72,13 @@ Summary: Cot Search
|
|
|
72
72
|
| Param | Required | Type | Default | Notes |
|
|
73
73
|
|---|---|---|---|---|
|
|
74
74
|
| `query` | `no` | `string` | `` | Search query. |
|
|
75
|
-
| `provider` | `no` | `string` | `cftc` | - |
|
|
76
75
|
|
|
77
76
|
---
|
|
78
77
|
|
|
79
78
|
### `regulators.sec.cik_map`
|
|
80
79
|
|
|
81
80
|
```python
|
|
82
|
-
data.regulators.sec.cik_map(symbol=..., use_cache=True
|
|
81
|
+
data.regulators.sec.cik_map(symbol=..., use_cache=True)
|
|
83
82
|
```
|
|
84
83
|
|
|
85
84
|
Summary: Cik Map
|
|
@@ -89,7 +88,6 @@ Summary: Cik Map
|
|
|
89
88
|
| Endpoint ID | `regulators.sec.cik_map` |
|
|
90
89
|
| HTTP | `GET` |
|
|
91
90
|
| Path | `/inner/v1/agent-data/regulators/sec/cik_map` |
|
|
92
|
-
| Default provider | `sec` |
|
|
93
91
|
| SDK | `supported` |
|
|
94
92
|
| Host | `supported` |
|
|
95
93
|
| Notes | - |
|
|
@@ -99,15 +97,14 @@ Summary: Cik Map
|
|
|
99
97
|
| Param | Required | Type | Default | Notes |
|
|
100
98
|
|---|---|---|---|---|
|
|
101
99
|
| `symbol` | `yes` | `string` | `-` | Symbol to get data for. |
|
|
102
|
-
| `use_cache` | `no` | `boolean | null` | `true` | Whether or not to use cache for the request, default is True.
|
|
103
|
-
| `provider` | `no` | `string` | `sec` | - |
|
|
100
|
+
| `use_cache` | `no` | `boolean | null` | `true` | Whether or not to use cache for the request, default is True. |
|
|
104
101
|
|
|
105
102
|
---
|
|
106
103
|
|
|
107
104
|
### `regulators.sec.filing_headers`
|
|
108
105
|
|
|
109
106
|
```python
|
|
110
|
-
data.regulators.sec.filing_headers(url='', use_cache=True
|
|
107
|
+
data.regulators.sec.filing_headers(url='', use_cache=True)
|
|
111
108
|
```
|
|
112
109
|
|
|
113
110
|
Summary: Filing Headers
|
|
@@ -117,7 +114,6 @@ Summary: Filing Headers
|
|
|
117
114
|
| Endpoint ID | `regulators.sec.filing_headers` |
|
|
118
115
|
| HTTP | `GET` |
|
|
119
116
|
| Path | `/inner/v1/agent-data/regulators/sec/filing_headers` |
|
|
120
|
-
| Default provider | `sec` |
|
|
121
117
|
| SDK | `supported` |
|
|
122
118
|
| Host | `supported` |
|
|
123
119
|
| Notes | - |
|
|
@@ -126,16 +122,15 @@ Summary: Filing Headers
|
|
|
126
122
|
|
|
127
123
|
| Param | Required | Type | Default | Notes |
|
|
128
124
|
|---|---|---|---|---|
|
|
129
|
-
| `url` | `no` | `string` | `` | URL for the SEC filing. The specific URL is not directly used or downloaded, but is used to generate the base URL for the filing. e.g. https://www.sec.gov/Archives/edgar/data/317540/000031754024000045/coke-20240731.htm and https://www.sec.gov/Archives/edgar/data/317540/000031754024000045/ are both valid URLs for the same filing.
|
|
130
|
-
| `use_cache` | `no` | `boolean` | `true` | Use cache for the index headers and cover page. Default is True.
|
|
131
|
-
| `provider` | `no` | `string` | `sec` | - |
|
|
125
|
+
| `url` | `no` | `string` | `` | URL for the SEC filing. The specific URL is not directly used or downloaded, but is used to generate the base URL for the filing. e.g. https://www.sec.gov/Archives/edgar/data/317540/000031754024000045/coke-20240731.htm and https://www.sec.gov/Archives/edgar/data/317540/000031754024000045/ are both valid URLs for the same filing. |
|
|
126
|
+
| `use_cache` | `no` | `boolean` | `true` | Use cache for the index headers and cover page. Default is True. |
|
|
132
127
|
|
|
133
128
|
---
|
|
134
129
|
|
|
135
130
|
### `regulators.sec.htm_file`
|
|
136
131
|
|
|
137
132
|
```python
|
|
138
|
-
data.regulators.sec.htm_file(url='', use_cache=True
|
|
133
|
+
data.regulators.sec.htm_file(url='', use_cache=True)
|
|
139
134
|
```
|
|
140
135
|
|
|
141
136
|
Summary: Htm File
|
|
@@ -145,7 +140,6 @@ Summary: Htm File
|
|
|
145
140
|
| Endpoint ID | `regulators.sec.htm_file` |
|
|
146
141
|
| HTTP | `GET` |
|
|
147
142
|
| Path | `/inner/v1/agent-data/regulators/sec/htm_file` |
|
|
148
|
-
| Default provider | `sec` |
|
|
149
143
|
| SDK | `supported` |
|
|
150
144
|
| Host | `supported` |
|
|
151
145
|
| Notes | - |
|
|
@@ -154,16 +148,15 @@ Summary: Htm File
|
|
|
154
148
|
|
|
155
149
|
| Param | Required | Type | Default | Notes |
|
|
156
150
|
|---|---|---|---|---|
|
|
157
|
-
| `url` | `no` | `string` | `` | URL for the SEC filing.
|
|
158
|
-
| `use_cache` | `no` | `boolean` | `true` | Cache the file for use later. Default is True.
|
|
159
|
-
| `provider` | `no` | `string` | `sec` | - |
|
|
151
|
+
| `url` | `no` | `string` | `` | URL for the SEC filing. |
|
|
152
|
+
| `use_cache` | `no` | `boolean` | `true` | Cache the file for use later. Default is True. |
|
|
160
153
|
|
|
161
154
|
---
|
|
162
155
|
|
|
163
156
|
### `regulators.sec.institutions_search`
|
|
164
157
|
|
|
165
158
|
```python
|
|
166
|
-
data.regulators.sec.institutions_search(query='', use_cache=True
|
|
159
|
+
data.regulators.sec.institutions_search(query='', use_cache=True)
|
|
167
160
|
```
|
|
168
161
|
|
|
169
162
|
Summary: Institutions Search
|
|
@@ -173,7 +166,6 @@ Summary: Institutions Search
|
|
|
173
166
|
| Endpoint ID | `regulators.sec.institutions_search` |
|
|
174
167
|
| HTTP | `GET` |
|
|
175
168
|
| Path | `/inner/v1/agent-data/regulators/sec/institutions_search` |
|
|
176
|
-
| Default provider | `sec` |
|
|
177
169
|
| SDK | `supported` |
|
|
178
170
|
| Host | `supported` |
|
|
179
171
|
| Notes | - |
|
|
@@ -183,15 +175,14 @@ Summary: Institutions Search
|
|
|
183
175
|
| Param | Required | Type | Default | Notes |
|
|
184
176
|
|---|---|---|---|---|
|
|
185
177
|
| `query` | `no` | `string` | `` | Search query. |
|
|
186
|
-
| `use_cache` | `no` | `boolean | null` | `true` | Whether or not to use cache.
|
|
187
|
-
| `provider` | `no` | `string` | `sec` | - |
|
|
178
|
+
| `use_cache` | `no` | `boolean | null` | `true` | Whether or not to use cache. |
|
|
188
179
|
|
|
189
180
|
---
|
|
190
181
|
|
|
191
182
|
### `regulators.sec.rss_litigation`
|
|
192
183
|
|
|
193
184
|
```python
|
|
194
|
-
data.regulators.sec.rss_litigation(
|
|
185
|
+
data.regulators.sec.rss_litigation()
|
|
195
186
|
```
|
|
196
187
|
|
|
197
188
|
Summary: Rss Litigation
|
|
@@ -201,7 +192,6 @@ Summary: Rss Litigation
|
|
|
201
192
|
| Endpoint ID | `regulators.sec.rss_litigation` |
|
|
202
193
|
| HTTP | `GET` |
|
|
203
194
|
| Path | `/inner/v1/agent-data/regulators/sec/rss_litigation` |
|
|
204
|
-
| Default provider | `sec` |
|
|
205
195
|
| SDK | `supported` |
|
|
206
196
|
| Host | `supported` |
|
|
207
197
|
| Notes | - |
|
|
@@ -210,14 +200,13 @@ Summary: Rss Litigation
|
|
|
210
200
|
|
|
211
201
|
| Param | Required | Type | Default | Notes |
|
|
212
202
|
|---|---|---|---|---|
|
|
213
|
-
| `provider` | `no` | `string` | `sec` | - |
|
|
214
203
|
|
|
215
204
|
---
|
|
216
205
|
|
|
217
206
|
### `regulators.sec.schema_files`
|
|
218
207
|
|
|
219
208
|
```python
|
|
220
|
-
data.regulators.sec.schema_files(taxonomy=None, year=None, component=None, category=None
|
|
209
|
+
data.regulators.sec.schema_files(taxonomy=None, year=None, component=None, category=None)
|
|
221
210
|
```
|
|
222
211
|
|
|
223
212
|
Summary: Schema Files
|
|
@@ -227,7 +216,6 @@ Summary: Schema Files
|
|
|
227
216
|
| Endpoint ID | `regulators.sec.schema_files` |
|
|
228
217
|
| HTTP | `GET` |
|
|
229
218
|
| Path | `/inner/v1/agent-data/regulators/sec/schema_files` |
|
|
230
|
-
| Default provider | `sec` |
|
|
231
219
|
| SDK | `supported` |
|
|
232
220
|
| Host | `supported` |
|
|
233
221
|
| Notes | - |
|
|
@@ -236,18 +224,17 @@ Summary: Schema Files
|
|
|
236
224
|
|
|
237
225
|
| Param | Required | Type | Default | Notes |
|
|
238
226
|
|---|---|---|---|---|
|
|
239
|
-
| `taxonomy` | `no` | `string | null` | `-` | Taxonomy family to explore. Omit to list all available taxonomies and their descriptions.
|
|
240
|
-
| `year` | `no` | `integer | null` | `-` | Taxonomy year (e.g. 2011+ for us-gaap, varies by taxonomy). Defaults to the most recent year when omitted.
|
|
241
|
-
| `component` | `no` | `string | null` | `-` | Presentation component to retrieve. Values are taxonomy-specific. Omit to return all components for the taxonomy.
|
|
242
|
-
| `category` | `no` | `string | null` | `-` | Filter taxonomies by SEC filer category.
|
|
243
|
-
| `provider` | `no` | `string` | `sec` | - |
|
|
227
|
+
| `taxonomy` | `no` | `string | null` | `-` | Taxonomy family to explore. Omit to list all available taxonomies and their descriptions. |
|
|
228
|
+
| `year` | `no` | `integer | null` | `-` | Taxonomy year (e.g. 2011+ for us-gaap, varies by taxonomy). Defaults to the most recent year when omitted. |
|
|
229
|
+
| `component` | `no` | `string | null` | `-` | Presentation component to retrieve. Values are taxonomy-specific. Omit to return all components for the taxonomy. |
|
|
230
|
+
| `category` | `no` | `string | null` | `-` | Filter taxonomies by SEC filer category. |
|
|
244
231
|
|
|
245
232
|
---
|
|
246
233
|
|
|
247
234
|
### `regulators.sec.sic_search`
|
|
248
235
|
|
|
249
236
|
```python
|
|
250
|
-
data.regulators.sec.sic_search(query='', use_cache=True
|
|
237
|
+
data.regulators.sec.sic_search(query='', use_cache=True)
|
|
251
238
|
```
|
|
252
239
|
|
|
253
240
|
Summary: Sic Search
|
|
@@ -257,7 +244,6 @@ Summary: Sic Search
|
|
|
257
244
|
| Endpoint ID | `regulators.sec.sic_search` |
|
|
258
245
|
| HTTP | `GET` |
|
|
259
246
|
| Path | `/inner/v1/agent-data/regulators/sec/sic_search` |
|
|
260
|
-
| Default provider | `sec` |
|
|
261
247
|
| SDK | `supported` |
|
|
262
248
|
| Host | `supported` |
|
|
263
249
|
| Notes | - |
|
|
@@ -267,15 +253,14 @@ Summary: Sic Search
|
|
|
267
253
|
| Param | Required | Type | Default | Notes |
|
|
268
254
|
|---|---|---|---|---|
|
|
269
255
|
| `query` | `no` | `string` | `` | Search query. |
|
|
270
|
-
| `use_cache` | `no` | `boolean | null` | `true` | Whether or not to use cache.
|
|
271
|
-
| `provider` | `no` | `string` | `sec` | - |
|
|
256
|
+
| `use_cache` | `no` | `boolean | null` | `true` | Whether or not to use cache. |
|
|
272
257
|
|
|
273
258
|
---
|
|
274
259
|
|
|
275
260
|
### `regulators.sec.symbol_map`
|
|
276
261
|
|
|
277
262
|
```python
|
|
278
|
-
data.regulators.sec.symbol_map(query=..., use_cache=True
|
|
263
|
+
data.regulators.sec.symbol_map(query=..., use_cache=True)
|
|
279
264
|
```
|
|
280
265
|
|
|
281
266
|
Summary: Symbol Map
|
|
@@ -285,7 +270,6 @@ Summary: Symbol Map
|
|
|
285
270
|
| Endpoint ID | `regulators.sec.symbol_map` |
|
|
286
271
|
| HTTP | `GET` |
|
|
287
272
|
| Path | `/inner/v1/agent-data/regulators/sec/symbol_map` |
|
|
288
|
-
| Default provider | `sec` |
|
|
289
273
|
| SDK | `supported` |
|
|
290
274
|
| Host | `supported` |
|
|
291
275
|
| Notes | - |
|
|
@@ -296,4 +280,85 @@ Summary: Symbol Map
|
|
|
296
280
|
|---|---|---|---|---|
|
|
297
281
|
| `query` | `yes` | `string` | `-` | Search query. |
|
|
298
282
|
| `use_cache` | `no` | `boolean | null` | `true` | Whether or not to use cache. If True, cache will store for seven days. |
|
|
299
|
-
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
### `uscongress.bill_info`
|
|
287
|
+
|
|
288
|
+
```python
|
|
289
|
+
data.uscongress.bill_info(bill_url=None)
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
Summary: Bill Info
|
|
293
|
+
|
|
294
|
+
| Field | Value |
|
|
295
|
+
|---|---|
|
|
296
|
+
| Endpoint ID | `uscongress.bill_info` |
|
|
297
|
+
| HTTP | `GET` |
|
|
298
|
+
| Path | `/inner/v1/agent-data/regulators/uscongress/bill_info` |
|
|
299
|
+
| SDK | `supported` |
|
|
300
|
+
| Host | `supported` |
|
|
301
|
+
| Notes | - |
|
|
302
|
+
|
|
303
|
+
#### Query parameters
|
|
304
|
+
|
|
305
|
+
| Param | Required | Type | Default | Notes |
|
|
306
|
+
|---|---|---|---|---|
|
|
307
|
+
| `bill_url` | `no` | `string | null` | `-` | Enter a base URL of a bill (e.g., 'https://api.congress.gov/v3/bill/119/s/1947?format=json'). Alternatively, you can enter a bill number (e.g., '119/s/1947'). |
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
### `uscongress.bill_text_urls`
|
|
312
|
+
|
|
313
|
+
```python
|
|
314
|
+
data.uscongress.bill_text_urls(bill_url=..., is_workspace=False)
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
Summary: Bill Text Urls
|
|
318
|
+
|
|
319
|
+
| Field | Value |
|
|
320
|
+
|---|---|
|
|
321
|
+
| Endpoint ID | `uscongress.bill_text_urls` |
|
|
322
|
+
| HTTP | `GET` |
|
|
323
|
+
| Path | `/inner/v1/agent-data/regulators/uscongress/bill_text_urls` |
|
|
324
|
+
| SDK | `supported` |
|
|
325
|
+
| Host | `supported` |
|
|
326
|
+
| Notes | - |
|
|
327
|
+
|
|
328
|
+
#### Query parameters
|
|
329
|
+
|
|
330
|
+
| Param | Required | Type | Default | Notes |
|
|
331
|
+
|---|---|---|---|---|
|
|
332
|
+
| `bill_url` | `yes` | `string` | `-` | Base URL or bill number of the bill to retrieve document choices for. |
|
|
333
|
+
| `is_workspace` | `no` | `boolean` | `false` | - |
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
### `uscongress.bills`
|
|
338
|
+
|
|
339
|
+
```python
|
|
340
|
+
data.uscongress.bills(congress=None, bill_type=None, start_time=None, end_time=None, limit=100, offset=0, sort_by='desc')
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
Summary: Bills
|
|
344
|
+
|
|
345
|
+
| Field | Value |
|
|
346
|
+
|---|---|
|
|
347
|
+
| Endpoint ID | `uscongress.bills` |
|
|
348
|
+
| HTTP | `GET` |
|
|
349
|
+
| Path | `/inner/v1/agent-data/regulators/uscongress/bills` |
|
|
350
|
+
| SDK | `supported` |
|
|
351
|
+
| Host | `supported` |
|
|
352
|
+
| Notes | - |
|
|
353
|
+
|
|
354
|
+
#### Query parameters
|
|
355
|
+
|
|
356
|
+
| Param | Required | Type | Default | Notes |
|
|
357
|
+
|---|---|---|---|---|
|
|
358
|
+
| `congress` | `no` | `integer | null` | `-` | Congress number (e.g., 118 for the 118th Congress). The 103rd Congress started in 1993. Each Congress spans two years, starting in odd-numbered years. |
|
|
359
|
+
| `bill_type` | `no` | `string | null` | `-` | Bill type. Must be one of: hr, s, hjres, sjres, hconres, sconres, hres, sres. |
|
|
360
|
+
| `start_time` | `no` | `integer | null` | `-` | Start time of the data as a Unix timestamp in milliseconds. Filters bills by last updated date. |
|
|
361
|
+
| `end_time` | `no` | `integer | null` | `-` | End time of the data as a Unix timestamp in milliseconds. Filters bills by last updated date. |
|
|
362
|
+
| `limit` | `no` | `integer | null` | `100` | The number of data entries to return. Default 100, max 250. Set to 0 for no limit (must be used with 'bill_type' and 'congress'). |
|
|
363
|
+
| `offset` | `no` | `integer | null` | `0` | The starting record returned. 0 is the first record. |
|
|
364
|
+
| `sort_by` | `no` | `string` | `desc` | Sort by update date. Default is latest first. enum: asc, desc |
|