IB-Ruby translates messages received from the TWS-API into ruby objects.

These objects are defined in lib/models/ib and fit into the common MVC-design.

In the plain vanilla environment of IB-API, they depend on the active-model library. They are suitable to integrate in RAILS.

Help is needed to provide and test a railtie-file to support rails integration.

It is possible to store IB::Model-Objects in a SQL-Database. IB-api is even prepared to initialize model classes as decendants of ActiveRecord. However, the database tends to grow into unnecessary complexity.

OrientDB

The IB-OrientDB-Gem provides an alternative. The database ist highly flexible and can store ruby model-objects seamlessly. It combines features of RDBMS- and graph-databases.

Tags: