0.0
No release in over 3 years
Low commit activity in last 3 years
This is a simple gem to extract data from DSS Reuters
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.8
~> 4.0
~> 3.5.1

Runtime

 Project Readme

DssReuters

A simple gem to extract info from DSS Reuters.

CircleCI

Installation

Add this line to your application's Gemfile:

gem 'dss_reuters'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dss_reuters

Usage

You need to set your credentials as ENVs :

DATA_SCOPE_USERNAME
DATA_SCOPE_PASSWORD
DATA_STREAM_USERNAME
DATA_STREAM_PASSWORD

You can also set DATA_SCOPE_LOG_LEVEL or DATA_STREAM_LOG_LEVEL to set log level.

Data Scope API

Usage flow goes like this :

require "dss_reuters"
api = DataScope::Api.new
req = api.extract_with_isin "KE1000001402"
req.get_result
req.status # check if :completed. If :in_progress, check again
req.result # Check result and get again if necessary

Default request fires a Composite extraction request. You can customize your request like :

req = api.extract_with_isin "KE1000001402", :intraday_pricing, ["Life High", "Life Low", "Year High", "Year Low"]
req = api.extract_with_isin "KE1000001402", :technical_indicators, ["Net Change - Close Price - 1 Day"]
req = api.extract_with_isin "KE1000001402", :time_series, ["Close Price", "Trade Date"], {"StartDate" => "2018-01-01", "EndDate" => "2018-08-01"}

You can also use extract_with_ric to use Ric instrument identifiers.

req = api.extract_with_ric "SCOM.NR"

Data Stream API

Usage flow goes like this :

require "dss_reuters"
api = DataStream::Api.new
res = api.ric_stream  ".TRXFLDAUTFIN", "2018-01-01", "2018-04-01"

You can also use ISIN identifiers as in Data Scope api.

res = api.isin_stream  "SCOM.NR", "2018-01-01", "2018-04-01"

The request is synchronous, so results are available immediately.

Getting ISIN for RIC or vs

You can use the DataScope api to get Isin code for a Ric code or vs

req = api.extract_with_isin "KE1000001402", :composite, ["RIC", "Close Price", "ISIN"]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dss_reuters. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the DssReuters project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.