lib/intrinio-sdk/api/forex_api.rb in intrinio-sdk-2.2.0 vs lib/intrinio-sdk/api/forex_api.rb in intrinio-sdk-2.3.0

- old
+ new

@@ -1,11 +1,11 @@ =begin #Intrinio API #Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner. -OpenAPI spec version: 2.5.0 +OpenAPI spec version: 2.6.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.3.0-SNAPSHOT =end @@ -118,13 +118,13 @@ # Provides a list of forex price quotes for a given forex currency pair and timeframe. # @param pair The Forex Currency Pair code # @param timeframe The time interval for the quotes # @param [Hash] opts the optional parameters # @option opts [String] :timezone Returns trading times in this timezone (default to UTC) - # @option opts [String] :start_date Return Forex Prices on or after this date + # @option opts [Date] :start_date Return Forex Prices on or after this date # @option opts [String] :start_time Return Forex Prices at or after this time (24-hour) - # @option opts [String] :end_date Return Forex Prices on or before this date + # @option opts [Date] :end_date Return Forex Prices on or before this date # @option opts [String] :end_time Return Forex Prices at or before this time (24-hour) # @option opts [Integer] :page_size The number of results to return (default to 100) # @option opts [String] :next_page Gets the next page of data from a previous API call # @return [ApiResponseForexPrices] def get_forex_prices(pair, timeframe, opts = {}) @@ -136,13 +136,13 @@ # Provides a list of forex price quotes for a given forex currency pair and timeframe. # @param pair The Forex Currency Pair code # @param timeframe The time interval for the quotes # @param [Hash] opts the optional parameters # @option opts [String] :timezone Returns trading times in this timezone - # @option opts [String] :start_date Return Forex Prices on or after this date + # @option opts [Date] :start_date Return Forex Prices on or after this date # @option opts [String] :start_time Return Forex Prices at or after this time (24-hour) - # @option opts [String] :end_date Return Forex Prices on or before this date + # @option opts [Date] :end_date Return Forex Prices on or before this date # @option opts [String] :end_time Return Forex Prices at or before this time (24-hour) # @option opts [Integer] :page_size The number of results to return # @option opts [String] :next_page Gets the next page of data from a previous API call # @return [Array<(ApiResponseForexPrices, Fixnum, Hash)>] ApiResponseForexPrices data, response status code and response headers def get_forex_prices_with_http_info(pair, timeframe, opts = {}) @@ -167,13 +167,14 @@ 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 ForexApi.get_forex_prices, must be smaller than or equal to 10000.' end # resource path - local_var_path = "/forex/prices/{pair}/{timeframe}".sub('{' + 'pair' + '}', pair.to_s).sub('{' + 'timeframe' + '}', timeframe.to_s) + local_var_path = "/forex/prices/{pair}/{timeframe}".sub('{' + 'pair' + '}', pair.to_s) # query parameters query_params = {} + query_params[:'timeframe'] = timeframe query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil? query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil? query_params[:'start_time'] = opts[:'start_time'] if !opts[:'start_time'].nil? query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil? query_params[:'end_time'] = opts[:'end_time'] if !opts[:'end_time'].nil?