Class: Intrinio::ETFsApi
- Inherits:
-
Object
- Object
- Intrinio::ETFsApi
- Defined in:
- lib/intrinio-sdk/api/et_fs_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_all_etfs(opts = {}) ⇒ ApiResponseETFs
All ETFs Returns a list of all currently listed ETFs, with relevant identification information including the ETF Name, Ticker, FIGI Ticker, and Exchange MIC for further usage with our ETF Metadata, Holdings, Stats, and Analytics offerings.
-
#get_all_etfs_with_http_info(opts = {}) ⇒ Array<(ApiResponseETFs, Fixnum, Hash)>
All ETFs Returns a list of all currently listed ETFs, with relevant identification information including the ETF Name, Ticker, FIGI Ticker, and Exchange MIC for further usage with our ETF Metadata, Holdings, Stats, and Analytics offerings.
-
#get_etf(identifier, opts = {}) ⇒ ETF
Lookup ETF Returns classifications and reference data which consists of ~90 columns that give detailed information about an ETF.
-
#get_etf_analytics(identifier, opts = {}) ⇒ ETFAnalytics
ETF Analytics Returns latest market analytics for a specified US ETF, including volume, trailing volume, market cap, 52 week high, and 52 week low.
-
#get_etf_analytics_with_http_info(identifier, opts = {}) ⇒ Array<(ETFAnalytics, Fixnum, Hash)>
ETF Analytics Returns latest market analytics for a specified US ETF, including volume, trailing volume, market cap, 52 week high, and 52 week low.
-
#get_etf_historical_nav_flows(identifier, opts = {}) ⇒ ETFNavFlowsHistorical
Exchange Traded Fund (ETF) Historical NAV Flows Returns a list of historical NAV (Net Asset Value) and flows data for Exchange Traded Funds.
-
#get_etf_historical_nav_flows_with_http_info(identifier, opts = {}) ⇒ Array<(ETFNavFlowsHistorical, Fixnum, Hash)>
Exchange Traded Fund (ETF) Historical NAV Flows Returns a list of historical NAV (Net Asset Value) and flows data for Exchange Traded Funds.
-
#get_etf_historical_stats(identifier, opts = {}) ⇒ ETFHistoricalStats
Exchange Traded Fund (ETF) Historical Stats Returns comprehensive key US ETF historical performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
-
#get_etf_historical_stats_with_http_info(identifier, opts = {}) ⇒ Array<(ETFHistoricalStats, Fixnum, Hash)>
Exchange Traded Fund (ETF) Historical Stats Returns comprehensive key US ETF historical performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
-
#get_etf_holdings(identifier, opts = {}) ⇒ ApiResponseETFHoldings
ETF Holdings Returns holdings data that details all the constituent securities in each ETF with names, identifiers, and the weights for each security providing granular level transparency.
-
#get_etf_holdings_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseETFHoldings, Fixnum, Hash)>
ETF Holdings Returns holdings data that details all the constituent securities in each ETF with names, identifiers, and the weights for each security providing granular level transparency.
-
#get_etf_nav_flows(identifier, opts = {}) ⇒ ETFNavFlows
Exchange Traded Fund (ETF) NAV Flows Returns NAV (Net Asset Value) and flows data for Exchange Traded Funds.
-
#get_etf_nav_flows_with_http_info(identifier, opts = {}) ⇒ Array<(ETFNavFlows, Fixnum, Hash)>
Exchange Traded Fund (ETF) NAV Flows Returns NAV (Net Asset Value) and flows data for Exchange Traded Funds.
-
#get_etf_stats(identifier, opts = {}) ⇒ ETFStats
Exchange Traded Fund (ETF) Stats Returns comprehensive key US ETF performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
-
#get_etf_stats_with_http_info(identifier, opts = {}) ⇒ Array<(ETFStats, Fixnum, Hash)>
Exchange Traded Fund (ETF) Stats Returns comprehensive key US ETF performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
-
#get_etf_with_http_info(identifier, opts = {}) ⇒ Array<(ETF, Fixnum, Hash)>
Lookup ETF Returns classifications and reference data which consists of ~90 columns that give detailed information about an ETF.
-
#get_etfs_nav_flows(opts = {}) ⇒ ETFNavFlowsAll
Exchange Traded Funds (ETFs) Latest NAV Flows Returns the latest NAV (Net Asset Value) and flows data for all Exchange Traded Funds in the specified country, sorted by month-end assets in descending order.
-
#get_etfs_nav_flows_with_http_info(opts = {}) ⇒ Array<(ETFNavFlowsAll, Fixnum, Hash)>
Exchange Traded Funds (ETFs) Latest NAV Flows Returns the latest NAV (Net Asset Value) and flows data for all Exchange Traded Funds in the specified country, sorted by month-end assets in descending order.
-
#initialize(api_client = ApiClient.default) ⇒ ETFsApi
constructor
A new instance of ETFsApi.
-
#search_etfs(query, opts = {}) ⇒ ApiResponseETFs
Search ETFs Accepts a string of keyword combinations, and searches across the ETF name and ticker and returns a list of ETFs with related keywords.
-
#search_etfs_with_http_info(query, opts = {}) ⇒ Array<(ApiResponseETFs, Fixnum, Hash)>
Search ETFs Accepts a string of keyword combinations, and searches across the ETF name and ticker and returns a list of ETFs with related keywords.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ETFsApi
Returns a new instance of ETFsApi.
19 20 21 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_all_etfs(opts = {}) ⇒ ApiResponseETFs
All ETFs Returns a list of all currently listed ETFs, with relevant identification information including the ETF Name, Ticker, FIGI Ticker, and Exchange MIC for further usage with our ETF Metadata, Holdings, Stats, and Analytics offerings.
30 31 32 33 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 30 def get_all_etfs(opts = {}) data, _status_code, _headers = get_all_etfs_with_http_info(opts) return data end |
#get_all_etfs_with_http_info(opts = {}) ⇒ Array<(ApiResponseETFs, Fixnum, Hash)>
All ETFs Returns a list of all currently listed ETFs, with relevant identification information including the ETF Name, Ticker, FIGI Ticker, and Exchange MIC for further usage with our ETF Metadata, Holdings, Stats, and Analytics offerings.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 42 def get_all_etfs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_all_etfs ..." end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ETFsApi.get_all_etfs, must be smaller than or equal to 10000.' end # resource path local_var_path = "/etfs" # query parameters query_params = {} query_params[:'exchange'] = opts[:'exchange'] if !opts[:'exchange'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseETFs') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_all_etfs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etf(identifier, opts = {}) ⇒ ETF
Lookup ETF Returns classifications and reference data which consists of ~90 columns that give detailed information about an ETF. These granular details include asset class, expense ratio, index name, index weighting scheme, smart beta type and specific investment objectives.
88 89 90 91 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 88 def get_etf(identifier, opts = {}) data, _status_code, _headers = get_etf_with_http_info(identifier, opts) return data end |
#get_etf_analytics(identifier, opts = {}) ⇒ ETFAnalytics
ETF Analytics Returns latest market analytics for a specified US ETF, including volume, trailing volume, market cap, 52 week high, and 52 week low.
141 142 143 144 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 141 def get_etf_analytics(identifier, opts = {}) data, _status_code, _headers = get_etf_analytics_with_http_info(identifier, opts) return data end |
#get_etf_analytics_with_http_info(identifier, opts = {}) ⇒ Array<(ETFAnalytics, Fixnum, Hash)>
ETF Analytics Returns latest market analytics for a specified US ETF, including volume, trailing volume, market cap, 52 week high, and 52 week low.
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 151 def get_etf_analytics_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etf_analytics ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ETFsApi.get_etf_analytics" end # resource path local_var_path = "/etfs/{identifier}/analytics".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ETFAnalytics') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etf_analytics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etf_historical_nav_flows(identifier, opts = {}) ⇒ ETFNavFlowsHistorical
Exchange Traded Fund (ETF) Historical NAV Flows Returns a list of historical NAV (Net Asset Value) and flows data for Exchange Traded Funds. Includes NAV returns, NAV values, net flows data, share outstanding counts, and total net assets across multiple dates with pagination support.
198 199 200 201 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 198 def get_etf_historical_nav_flows(identifier, opts = {}) data, _status_code, _headers = get_etf_historical_nav_flows_with_http_info(identifier, opts) return data end |
#get_etf_historical_nav_flows_with_http_info(identifier, opts = {}) ⇒ Array<(ETFNavFlowsHistorical, Fixnum, Hash)>
Exchange Traded Fund (ETF) Historical NAV Flows Returns a list of historical NAV (Net Asset Value) and flows data for Exchange Traded Funds. Includes NAV returns, NAV values, net flows data, share outstanding counts, and total net assets across multiple dates with pagination support.
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 212 def get_etf_historical_nav_flows_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etf_historical_nav_flows ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ETFsApi.get_etf_historical_nav_flows" end # resource path local_var_path = "/etfs/{identifier}/nav_flows/historical".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ETFNavFlowsHistorical') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etf_historical_nav_flows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etf_historical_stats(identifier, opts = {}) ⇒ ETFHistoricalStats
Exchange Traded Fund (ETF) Historical Stats Returns comprehensive key US ETF historical performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
262 263 264 265 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 262 def get_etf_historical_stats(identifier, opts = {}) data, _status_code, _headers = get_etf_historical_stats_with_http_info(identifier, opts) return data end |
#get_etf_historical_stats_with_http_info(identifier, opts = {}) ⇒ Array<(ETFHistoricalStats, Fixnum, Hash)>
Exchange Traded Fund (ETF) Historical Stats Returns comprehensive key US ETF historical performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 275 def get_etf_historical_stats_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etf_historical_stats ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ETFsApi.get_etf_historical_stats" end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ETFsApi.get_etf_historical_stats, must be smaller than or equal to 10000.' end # resource path local_var_path = "/etfs/{identifier}/historical_stats".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ETFHistoricalStats') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etf_historical_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etf_holdings(identifier, opts = {}) ⇒ ApiResponseETFHoldings
ETF Holdings Returns holdings data that details all the constituent securities in each ETF with names, identifiers, and the weights for each security providing granular level transparency.
327 328 329 330 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 327 def get_etf_holdings(identifier, opts = {}) data, _status_code, _headers = get_etf_holdings_with_http_info(identifier, opts) return data end |
#get_etf_holdings_with_http_info(identifier, opts = {}) ⇒ Array<(ApiResponseETFHoldings, Fixnum, Hash)>
ETF Holdings Returns holdings data that details all the constituent securities in each ETF with names, identifiers, and the weights for each security providing granular level transparency.
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 339 def get_etf_holdings_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etf_holdings ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ETFsApi.get_etf_holdings" end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ETFsApi.get_etf_holdings, must be smaller than or equal to 10000.' end # resource path local_var_path = "/etfs/{identifier}/holdings".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseETFHoldings') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etf_holdings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etf_nav_flows(identifier, opts = {}) ⇒ ETFNavFlows
Exchange Traded Fund (ETF) NAV Flows Returns NAV (Net Asset Value) and flows data for Exchange Traded Funds. Includes NAV returns (daily, monthly, quarterly, yearly, annualized), NAV values (unadjusted and adjusted for splits/dividends), net flows data, share outstanding counts, and total net assets.
392 393 394 395 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 392 def get_etf_nav_flows(identifier, opts = {}) data, _status_code, _headers = get_etf_nav_flows_with_http_info(identifier, opts) return data end |
#get_etf_nav_flows_with_http_info(identifier, opts = {}) ⇒ Array<(ETFNavFlows, Fixnum, Hash)>
Exchange Traded Fund (ETF) NAV Flows Returns NAV (Net Asset Value) and flows data for Exchange Traded Funds. Includes NAV returns (daily, monthly, quarterly, yearly, annualized), NAV values (unadjusted and adjusted for splits/dividends), net flows data, share outstanding counts, and total net assets.
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 406 def get_etf_nav_flows_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etf_nav_flows ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ETFsApi.get_etf_nav_flows" end # resource path local_var_path = "/etfs/{identifier}/nav_flows".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ETFNavFlows') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etf_nav_flows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etf_stats(identifier, opts = {}) ⇒ ETFStats
Exchange Traded Fund (ETF) Stats Returns comprehensive key US ETF performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
453 454 455 456 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 453 def get_etf_stats(identifier, opts = {}) data, _status_code, _headers = get_etf_stats_with_http_info(identifier, opts) return data end |
#get_etf_stats_with_http_info(identifier, opts = {}) ⇒ Array<(ETFStats, Fixnum, Hash)>
Exchange Traded Fund (ETF) Stats Returns comprehensive key US ETF performance statistics, including prices, NAVs, flows, returns, and much more for both trailing and calendar year periods.
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 463 def get_etf_stats_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etf_stats ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ETFsApi.get_etf_stats" end # resource path local_var_path = "/etfs/{identifier}/stats".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ETFStats') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etf_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etf_with_http_info(identifier, opts = {}) ⇒ Array<(ETF, Fixnum, Hash)>
Lookup ETF Returns classifications and reference data which consists of ~90 columns that give detailed information about an ETF. These granular details include asset class, expense ratio, index name, index weighting scheme, smart beta type and specific investment objectives.
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 98 def get_etf_with_http_info(identifier, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etf ..." end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? fail ArgumentError, "Missing the required parameter 'identifier' when calling ETFsApi.get_etf" end # resource path local_var_path = "/etfs/{identifier}".sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ETF') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_etfs_nav_flows(opts = {}) ⇒ ETFNavFlowsAll
Exchange Traded Funds (ETFs) Latest NAV Flows Returns the latest NAV (Net Asset Value) and flows data for all Exchange Traded Funds in the specified country, sorted by month-end assets in descending order. Each ETF appears only once with its most recent NAV flows data.
508 509 510 511 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 508 def get_etfs_nav_flows(opts = {}) data, _status_code, _headers = get_etfs_nav_flows_with_http_info(opts) return data end |
#get_etfs_nav_flows_with_http_info(opts = {}) ⇒ Array<(ETFNavFlowsAll, Fixnum, Hash)>
Exchange Traded Funds (ETFs) Latest NAV Flows Returns the latest NAV (Net Asset Value) and flows data for all Exchange Traded Funds in the specified country, sorted by month-end assets in descending order. Each ETF appears only once with its most recent NAV flows data.
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 520 def get_etfs_nav_flows_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.get_etfs_nav_flows ..." end # resource path local_var_path = "/etfs/nav_flows" # query parameters query_params = {} query_params[:'country_code'] = opts[:'country_code'] if !opts[:'country_code'].nil? query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'next_page'] = opts[:'next_page'] if !opts[:'next_page'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ETFNavFlowsAll') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#get_etfs_nav_flows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#search_etfs(query, opts = {}) ⇒ ApiResponseETFs
Search ETFs Accepts a string of keyword combinations, and searches across the ETF name and ticker and returns a list of ETFs with related keywords.
563 564 565 566 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 563 def search_etfs(query, opts = {}) data, _status_code, _headers = search_etfs_with_http_info(query, opts) return data end |
#search_etfs_with_http_info(query, opts = {}) ⇒ Array<(ApiResponseETFs, Fixnum, Hash)>
Search ETFs Accepts a string of keyword combinations, and searches across the ETF name and ticker and returns a list of ETFs with related keywords.
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 |
# File 'lib/intrinio-sdk/api/et_fs_api.rb', line 574 def search_etfs_with_http_info(query, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ETFsApi.search_etfs ..." end # verify the required parameter 'query' is set if @api_client.config.client_side_validation && query.nil? fail ArgumentError, "Missing the required parameter 'query' when calling ETFsApi.search_etfs" end if @api_client.config.client_side_validation && opts[:'mode'] && !['rank_order', 'starts_with'].include?(opts[:'mode']) fail ArgumentError, 'invalid value for "mode", must be one of rank_order, starts_with' end # resource path local_var_path = "/etfs/search" # query parameters query_params = {} query_params[:'query'] = query query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['ApiKeyAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ApiResponseETFs') if @api_client.config.debugging @api_client.config.logger.debug "API called: ETFsApi#search_etfs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |