README.md in iex-ruby-client-1.6.0 vs README.md in iex-ruby-client-2.0.0

- old
+ new

@@ -1,9 +1,9 @@ # IEX Finance API [![Gem Version](https://badge.fury.io/rb/iex-ruby-client.svg)](https://badge.fury.io/rb/iex-ruby-client) -[![Build Status](https://travis-ci.org/dblock/iex-ruby-client.svg?branch=master)](https://travis-ci.org/dblock/iex-ruby-client) +[![Build Status](https://github.com/dblock/iex-ruby-client/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/dblock/iex-ruby-client/actions/workflows/test.yml) A Ruby client for the [The IEX Cloud API](https://iexcloud.io/docs/api/). # Table of Contents @@ -31,10 +31,11 @@ - [Get Largest Trades](#get-largest-trades) - [Get a Quote for Crypto Currencies](#get-a-quote-for-crypto-currencies) - [ISIN Mapping](#isin-mapping) - [Get Symbols](#get-symbols) - [Get Symbols for an Exchange](#get-symbols-for-an-exchange) + - [Get Symbols for a Region](#get-symbols-for-a-region) - [Get Latest Foreign Exchange Rates](#get-latest-foreign-exchange-rates) - [Get List](#get-list) - [Other Requests](#other-requests) - [Configuration](#configuration) - [Logging](#logging) @@ -576,22 +577,36 @@ See [#symbols](https://iexcloud.io/docs/api/#symbols) for detailed documentation or [symbols.rb](lib/iex/resources/symbols.rb) for returned fields. ### Get Symbols for an Exchange -Returns an array of symbols for a given exchange. +Returns an array of symbols for an exchange identified by a market identifier code. ```ruby -symbols = client.ref_data_symbols_for_exchange('TSX') +symbols = client.ref_data_symbols_for_exchange('XTSE') symbol = symbols.first -symbol.exchange # TSX +symbol.exchange # XTSE symbol.iex_id # IEX_4656374258322D52 symbol.region # CA symbol.symbol # A-CV ``` See [#international-symbols](https://iexcloud.io/docs/api/#international-symbols) for returned fields. + +### Get Symbols for a Region + +Returns an array of symbols for a region. + +```ruby +symbols = client.ref_data_symbols_for_region('ca') + +symbol = symbols.first +symbol.exchange # XTSE +symbol.iex_id # IEX_4656374258322D53 +symbol.region # CA +symbol.symbol # A-CT +``` ### Get Latest Foreign Exchange Rates Returns an array of foreign exchange rates for a given list of symbols.