=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://docs.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.76.3 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: unset =end require 'spec_helper' require 'json' # Unit tests for Intrinio::StockExchangeApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'StockExchangeApi' do before do # run before each test @instance = Intrinio::StockExchangeApi.new end after do # run after each test end describe 'test an instance of StockExchangeApi' do it 'should create an instance of StockExchangeApi' do expect(@instance).to be_instance_of(Intrinio::StockExchangeApi) end end # unit tests for get_all_stock_exchanges # All Stock Exchanges # Returns all Stock Exchanges matching the specified parameters # @param [Hash] opts the optional parameters # @option opts [String] :city Filter by city # @option opts [String] :country Filter by country # @option opts [String] :country_code Filter by ISO country code # @option opts [Integer] :page_size The number of results to return # @return [ApiResponseStockExchanges] describe 'get_all_stock_exchanges test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_betas # Security Betas # Returns security beta data in the Stock Exchange with the given `identifier` # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @option opts [String] :type Only of the given type # @option opts [Object] :date Return data for this period end date. # @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 [ApiResponseStockExchangeBetas] describe 'get_stock_exchange_betas test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_by_id # Lookup Stock Exchange # Returns the Stock Exchange with the given `identifier` # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @return [StockExchange] describe 'get_stock_exchange_by_id test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_gainers # Top Gainers by Exchange # Returns securities with the highest gain percent change traded on the chosen stock exchange. # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @option opts [Float] :min_price The minimum price filter # @option opts [Integer] :page_size The number of results to return # @option opts [String] :source Return the realtime price from the specified source instead of the most recent. # @return [ApiResponseStockExchangeMovers] describe 'get_stock_exchange_gainers test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_losers # Top Losers by Exchange # Returns securities with the highest loss percent change traded on the chosen stock exchange. # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @option opts [Float] :min_price The minimum price filter # @option opts [Integer] :page_size The number of results to return # @option opts [String] :source Return the realtime price from the specified source instead of the most recent. # @return [ApiResponseStockExchangeMovers] describe 'get_stock_exchange_losers test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_price_adjustments # Stock Price Adjustments by Exchange # Returns stock price adjustments for the Stock Exchange with the given `identifier` # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @option opts [Date] :date The date for which to return price adjustments # @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 [ApiResponseStockExchangeStockPriceAdjustments] describe 'get_stock_exchange_price_adjustments test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_prices # Stock Prices by Exchange # Returns end-of-day stock prices for Securities on the Stock Exchange with `identifier` and on the `price_date` (or the latest date that prices are available) # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @option opts [Date] :date The date for which to return prices. May not be used with the start_date and end_date parameters. # @option opts [Date] :start_date The start of the date range you're querying. May not be used with date parameter. # @option opts [Date] :end_date The end of the date range you're querying. May not be used with date parameter. # @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 # @option opts [Array] :tickers The comma-delimited list of ticker symbols to filter down to. If not provided, the entire stock exchange is returned. # @option opts [String] :next_page2 Gets the next page of data from a previous API call # @return [ApiResponseStockExchangeStockPrices] describe 'get_stock_exchange_prices test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_quote # Realtime Quote Prices by Exchange # Returns many popular metrics for securities from a given exchange 'identifier' from multiple products conveniently in one API. Realtime stock price data requires at least one realtime product subscription (IEX, NASDAQ Basic, and/or Delayed SIP). If you are subscribed to multiple realtime stock price products, the api will return the most recent realtime stock price. Previous close price and percent change fields require both an EoD US Stock Price subscription and a realtime stock price subscription. Market_cap, price_to_earnings, and dividendyield data fields require a fundamentals subscription. # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param tickers The comma-delimited list of ticker symbols to return quotes for. # @param [Hash] opts the optional parameters # @option opts [String] :source Return the realtime price from the specified source instead of the most recent. # @option opts [BOOLEAN] :active_only Returns prices only from the most recent trading day. # @return [ApiResponseStockExchangeQuote] describe 'get_stock_exchange_quote test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_realtime_prices # Realtime Stock Prices by Exchange # Returns realtime stock prices for the Stock Exchange with the given `identifier` # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @option opts [Array] :source Return realtime prices from the specified comma-delimited data sources. If no source is specified, all sources available to user are used. # @option opts [BOOLEAN] :active_only Returns prices only from the most recent trading day. # @option opts [BOOLEAN] :traded_today Returns prices only from securities which have traded on the most recent trading day. # @option opts [Integer] :page_size The number of results to return # @option opts [Array] :tickers The comma-delimited list of ticker symbols to filter to. If not provided, the entire stock exchange is returned. # @option opts [String] :next_page Gets the next page of data from a previous API call # @return [ApiResponseStockExchangeRealtimeStockPrices] describe 'get_stock_exchange_realtime_prices test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_stock_exchange_securities # Securities by Exchange # Returns Securities traded on the Stock Exchange with `identifier` # @param identifier A Stock Exchange identifier (MIC or Intrinio ID) # @param [Hash] opts the optional parameters # @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 [ApiResponseStockExchangeSecurities] describe 'get_stock_exchange_securities test' do it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end