|
80 | 80 | company_api = Intrinio::CompanyApi.new
|
81 | 81 |
|
82 | 82 | opts = {
|
83 |
| - latest_filing_date: Date.parse("\"~null\""), |
84 |
| - sic: "~null", |
85 |
| - template: "\"~null\"", |
86 |
| - sector: "~null", |
87 |
| - industry_category: "~null", |
88 |
| - industry_group: "~null", |
| 83 | + latest_filing_date: nil, |
| 84 | + sic: nil, |
| 85 | + template: nil, |
| 86 | + sector: nil, |
| 87 | + industry_category: nil, |
| 88 | + industry_group: nil, |
89 | 89 | has_fundamentals: true,
|
90 | 90 | has_stock_prices: true,
|
91 |
| - thea_enabled: "~null", |
| 91 | + thea_enabled: nil, |
92 | 92 | page_size: 100,
|
93 |
| - next_page: "~null" |
| 93 | + next_page: nil |
94 | 94 | }
|
95 | 95 |
|
96 | 96 | result = company_api.get_all_companies(opts)
|
@@ -182,8 +182,8 @@ company_api = Intrinio::CompanyApi.new
|
182 | 182 | opts = {
|
183 | 183 | on_date: Date.parse("2013-10-20"),
|
184 | 184 | page_size: 100,
|
185 |
| - next_page: "~null", |
186 |
| - next_page2: "~null" |
| 185 | + next_page: nil, |
| 186 | + next_page2: nil |
187 | 187 | }
|
188 | 188 |
|
189 | 189 | result = company_api.get_all_companies_daily_metrics(opts)
|
@@ -266,21 +266,21 @@ end
|
266 | 266 | company_api = Intrinio::CompanyApi.new
|
267 | 267 |
|
268 | 268 | opts = {
|
269 |
| - specific_source: "\"~null\"", |
| 269 | + specific_source: nil, |
270 | 270 | page_size: 100,
|
271 |
| - sentiment: "\"~null\"", |
272 |
| - topic: "~null", |
| 271 | + sentiment: nil, |
| 272 | + topic: nil, |
273 | 273 | company: "AAPL",
|
274 | 274 | security: "AAPL",
|
275 |
| - start_date: Date.parse("\"~null\""), |
276 |
| - end_date: Date.parse("\"~null\""), |
277 |
| - language: "~null", |
278 |
| - word_count_greater_than: "~null", |
279 |
| - word_count_less_than: "~null", |
280 |
| - is_spam: "~null", |
281 |
| - business_relevance_greater_than: "~null", |
282 |
| - business_relevance_less_than: "~null", |
283 |
| - next_page: "~null" |
| 275 | + start_date: nil, |
| 276 | + end_date: nil, |
| 277 | + language: nil, |
| 278 | + word_count_greater_than: nil, |
| 279 | + word_count_less_than: nil, |
| 280 | + is_spam: nil, |
| 281 | + business_relevance_greater_than: nil, |
| 282 | + business_relevance_less_than: nil, |
| 283 | + next_page: nil |
284 | 284 | }
|
285 | 285 |
|
286 | 286 | result = company_api.get_all_company_news(opts)
|
@@ -533,8 +533,8 @@ identifier = "AAPL"
|
533 | 533 | opts = {
|
534 | 534 | on_date: Date.parse("2013-10-20"),
|
535 | 535 | page_size: 100,
|
536 |
| - next_page: "~null", |
537 |
| - next_page2: "~null" |
| 536 | + next_page: nil, |
| 537 | + next_page2: nil |
538 | 538 | }
|
539 | 539 |
|
540 | 540 | result = company_api.get_company_daily_metrics(identifier, opts)
|
@@ -777,12 +777,12 @@ company_api = Intrinio::CompanyApi.new
|
777 | 777 | identifier = "AAPL"
|
778 | 778 |
|
779 | 779 | opts = {
|
780 |
| - report_type: "~null", |
781 |
| - start_date: Date.parse("\"2015-01-01\""), |
782 |
| - end_date: Date.parse("\"~null\""), |
783 |
| - thea_enabled: "~null", |
| 780 | + report_type: nil, |
| 781 | + start_date: Date.parse("2015-01-01"), |
| 782 | + end_date: nil, |
| 783 | + thea_enabled: nil, |
784 | 784 | page_size: 100,
|
785 |
| - next_page: "~null" |
| 785 | + next_page: nil |
786 | 786 | }
|
787 | 787 |
|
788 | 788 | result = company_api.get_company_filings(identifier, opts)
|
@@ -869,18 +869,18 @@ company_api = Intrinio::CompanyApi.new
|
869 | 869 | identifier = "AAPL"
|
870 | 870 |
|
871 | 871 | opts = {
|
872 |
| - filed_after: Date.parse("\"~null\""), |
873 |
| - filed_before: Date.parse("\"~null\""), |
| 872 | + filed_after: nil, |
| 873 | + filed_before: nil, |
874 | 874 | reported_only: false,
|
875 |
| - fiscal_year: "~null", |
876 |
| - statement_code: "\"~null\"", |
877 |
| - type: "\"~null\"", |
878 |
| - start_date: Date.parse("\"~null\""), |
879 |
| - end_date: Date.parse("\"~null\""), |
880 |
| - updated_after: Date.parse("\"2022-12-01\""), |
881 |
| - updated_before: Date.parse("\"2022-12-01\""), |
| 875 | + fiscal_year: nil, |
| 876 | + statement_code: nil, |
| 877 | + type: nil, |
| 878 | + start_date: nil, |
| 879 | + end_date: nil, |
| 880 | + updated_after: Date.parse("2022-12-01"), |
| 881 | + updated_before: Date.parse("2022-12-01"), |
882 | 882 | page_size: 100,
|
883 |
| - next_page: "~null" |
| 883 | + next_page: nil |
884 | 884 | }
|
885 | 885 |
|
886 | 886 | result = company_api.get_company_fundamentals(identifier, opts)
|
@@ -975,12 +975,12 @@ tag = "marketcap"
|
975 | 975 |
|
976 | 976 | opts = {
|
977 | 977 | frequency: "daily",
|
978 |
| - type: "\"~null\"", |
979 |
| - start_date: Date.parse("\"2018-01-01\""), |
980 |
| - end_date: Date.parse("\"~null\""), |
| 978 | + type: nil, |
| 979 | + start_date: Date.parse("2018-01-01"), |
| 980 | + end_date: nil, |
981 | 981 | sort_order: "desc",
|
982 | 982 | page_size: 100,
|
983 |
| - next_page: "~null" |
| 983 | + next_page: nil |
984 | 984 | }
|
985 | 985 |
|
986 | 986 | result = company_api.get_company_historical_data(identifier, tag, opts)
|
@@ -1069,13 +1069,13 @@ company_api = Intrinio::CompanyApi.new
|
1069 | 1069 |
|
1070 | 1070 | opts = {
|
1071 | 1071 | ticker: "UBER",
|
1072 |
| - status: "\"~null\"", |
1073 |
| - start_date: Date.parse("\"~null\""), |
1074 |
| - end_date: Date.parse("\"~null\""), |
1075 |
| - offer_amount_greater_than: "~null", |
1076 |
| - offer_amount_less_than: "~null", |
| 1072 | + status: nil, |
| 1073 | + start_date: nil, |
| 1074 | + end_date: nil, |
| 1075 | + offer_amount_greater_than: nil, |
| 1076 | + offer_amount_less_than: nil, |
1077 | 1077 | page_size: 100,
|
1078 |
| - next_page: "~null" |
| 1078 | + next_page: nil |
1079 | 1079 | }
|
1080 | 1080 |
|
1081 | 1081 | result = company_api.get_company_ipos(opts)
|
@@ -1163,20 +1163,20 @@ company_api = Intrinio::CompanyApi.new
|
1163 | 1163 | identifier = "AAPL"
|
1164 | 1164 |
|
1165 | 1165 | opts = {
|
1166 |
| - specific_source: "\"~null\"", |
| 1166 | + specific_source: nil, |
1167 | 1167 | page_size: 100,
|
1168 |
| - sentiment: "\"~null\"", |
1169 |
| - topic: "~null", |
| 1168 | + sentiment: nil, |
| 1169 | + topic: nil, |
1170 | 1170 | security: "AAPL",
|
1171 |
| - start_date: Date.parse("\"~null\""), |
1172 |
| - end_date: Date.parse("\"~null\""), |
1173 |
| - language: "~null", |
1174 |
| - word_count_greater_than: "~null", |
1175 |
| - word_count_less_than: "~null", |
1176 |
| - is_spam: "~null", |
1177 |
| - business_relevance_greater_than: "~null", |
1178 |
| - business_relevance_less_than: "~null", |
1179 |
| - next_page: "~null" |
| 1171 | + start_date: nil, |
| 1172 | + end_date: nil, |
| 1173 | + language: nil, |
| 1174 | + word_count_greater_than: nil, |
| 1175 | + word_count_less_than: nil, |
| 1176 | + is_spam: nil, |
| 1177 | + business_relevance_greater_than: nil, |
| 1178 | + business_relevance_less_than: nil, |
| 1179 | + next_page: nil |
1180 | 1180 | }
|
1181 | 1181 |
|
1182 | 1182 | result = company_api.get_company_news(identifier, opts)
|
@@ -1269,11 +1269,11 @@ end
|
1269 | 1269 |
|
1270 | 1270 | company_api = Intrinio::CompanyApi.new
|
1271 | 1271 | news_story_id = "new_aBcDef"
|
1272 |
| -publication_date = DateTime.parse("\"~null\"") |
| 1272 | +publication_date = DateTime.parse(nil) |
1273 | 1273 |
|
1274 | 1274 | opts = {
|
1275 |
| - specific_source: "\"~null\"", |
1276 |
| - next_page: "~null" |
| 1275 | + specific_source: nil, |
| 1276 | + next_page: nil |
1277 | 1277 | }
|
1278 | 1278 |
|
1279 | 1279 | result = company_api.get_company_news_body(news_story_id, publication_date, opts)
|
@@ -1357,10 +1357,10 @@ company_api = Intrinio::CompanyApi.new
|
1357 | 1357 | identifier = "AAPL"
|
1358 | 1358 |
|
1359 | 1359 | opts = {
|
1360 |
| - float_date_greater_than: Date.parse("\"~null\""), |
1361 |
| - float_date_less_than: Date.parse("\"~null\""), |
1362 |
| - next_page: "~null", |
1363 |
| - next_page2: "~null" |
| 1360 | + float_date_greater_than: nil, |
| 1361 | + float_date_less_than: nil, |
| 1362 | + next_page: nil, |
| 1363 | + next_page2: nil |
1364 | 1364 | }
|
1365 | 1365 |
|
1366 | 1366 | result = company_api.get_company_public_float(identifier, opts)
|
@@ -1445,7 +1445,7 @@ company_api = Intrinio::CompanyApi.new
|
1445 | 1445 | identifier = "AAPL"
|
1446 | 1446 |
|
1447 | 1447 | opts = {
|
1448 |
| - next_page: "~null" |
| 1448 | + next_page: nil |
1449 | 1449 | }
|
1450 | 1450 |
|
1451 | 1451 | result = company_api.get_company_securities(identifier, opts)
|
@@ -1527,13 +1527,13 @@ company_api = Intrinio::CompanyApi.new
|
1527 | 1527 | identifier = "AAPL"
|
1528 | 1528 |
|
1529 | 1529 | opts = {
|
1530 |
| - start_date: Date.parse("\"2018-01-01\""), |
1531 |
| - end_date: Date.parse("\"2019-01-01\""), |
| 1530 | + start_date: Date.parse("2018-01-01"), |
| 1531 | + end_date: Date.parse("2019-01-01"), |
1532 | 1532 | ownership_type: "D",
|
1533 |
| - next_page: "~null", |
| 1533 | + next_page: nil, |
1534 | 1534 | page_size: 1000,
|
1535 |
| - sort_by: "\"updated_on\"", |
1536 |
| - next_page2: "~null" |
| 1535 | + sort_by: "updated_on", |
| 1536 | + next_page2: nil |
1537 | 1537 | }
|
1538 | 1538 |
|
1539 | 1539 | result = company_api.insider_transaction_filings_by_company(identifier, opts)
|
@@ -1621,7 +1621,7 @@ company_api = Intrinio::CompanyApi.new
|
1621 | 1621 | identifier = "AAPL"
|
1622 | 1622 |
|
1623 | 1623 | opts = {
|
1624 |
| - next_page: "~null" |
| 1624 | + next_page: nil |
1625 | 1625 | }
|
1626 | 1626 |
|
1627 | 1627 | result = company_api.latest_insider_transaction_filing_by_company(identifier, opts)
|
@@ -1701,8 +1701,8 @@ end
|
1701 | 1701 |
|
1702 | 1702 | company_api = Intrinio::CompanyApi.new
|
1703 | 1703 | identifier = "AAPL"
|
1704 |
| -statement_code = "\"income_statement\"" |
1705 |
| -fiscal_period = "\"FY\"" |
| 1704 | +statement_code = "income_statement" |
| 1705 | +fiscal_period = "FY" |
1706 | 1706 | fiscal_year = 2017
|
1707 | 1707 |
|
1708 | 1708 | result = company_api.lookup_company_fundamental(identifier, statement_code, fiscal_period, fiscal_year)
|
@@ -1864,7 +1864,7 @@ query = "Apple"
|
1864 | 1864 |
|
1865 | 1865 | opts = {
|
1866 | 1866 | active: true,
|
1867 |
| - mode: "\"~null\"", |
| 1867 | + mode: nil, |
1868 | 1868 | page_size: 100
|
1869 | 1869 | }
|
1870 | 1870 |
|
@@ -1949,8 +1949,8 @@ company_api = Intrinio::CompanyApi.new
|
1949 | 1949 | identifier = "AAPL"
|
1950 | 1950 |
|
1951 | 1951 | opts = {
|
1952 |
| - end_date_greater_than: Date.parse("\"~null\""), |
1953 |
| - end_date_less_than: Date.parse("\"~null\"") |
| 1952 | + end_date_greater_than: nil, |
| 1953 | + end_date_less_than: nil |
1954 | 1954 | }
|
1955 | 1955 |
|
1956 | 1956 | result = company_api.shares_outstanding_by_company(identifier, opts)
|
|
0 commit comments