Bovespa Ingestion

Build Status

An importer/parser of BM&F Bovespa historical stock quotations files.

Introduction

Installing

Install bundler:

`$ gem install bundler`

Enter the cloned dir and fetch dependencies:

`$ bundler install`

Running

Run application with real BM&F Bovespa historical file, just pass it as argument (for instance):

$ ./bin/carregar_historico sample/DemoCotacoesHistoricas12022003.txt

Testing

Simply do: $ rake

Getting real historical data files

To get daily historical stock quotation data files, just go BM&F Bovespa website and download it (or follow this shortcut URI: BM&F Bovespa Historical Files ). A login is necessary and fill in a captcha field.

Contributing

Submitting a Pull Request

  1. Fork the repository.
  2. Create a topic branch.
  3. Write a failing test to capture existing bug or lack of feature.
  4. Run tests with rake to verify that test fails.
  5. Implement your feature or bug fix.
  6. Ensure tests pass.
  7. If it's a new feature or a bug fix, please add an entry to the changelog file.
  8. Add, commit, and push your changes.
  9. Submit a pull request.

Prerequisites

Tested with Ruby 1.9.3.

It uses Postgres as development database instead of Sqlite3 because it is faster to import several stock quotations (1000+).

(the MIT license)

Copyright (c) 2013 Felipe Seixas and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.