Archive for the ‘trading’ Category

installing Quickfix with Ruby 1.9 on OS X 1.5.4

Tuesday, October 14th, 2008

installing Quickfix with Ruby 1.9on OS X 1.5.4download ruby 1.9

 sudo su (or add a sudo where appropriate)
svn co http://svn.ruby-lang.org/repos/ruby/trunk /usr/local/src/ruby19
./configure --program-suffix=-trunk --prefix=/usr/local/ make make install

#temporary move ruby bin, you can reverse it after building quickfix

mv /usr/bin/ruby /usr/bin/ruby-osx
ln -s /usr/local/bin/ruby-trunk /usr/bin/ruby

#go to /usr/local/src or wherever you want the quickfix sources to stay#HEAD is currenty broken. i used the newest version where something in the ruby dir was changed

svn co -r 1939 https://quickfix.svn.sourceforge.net/svnroot/quickfix/trunk/quickfix qf1939
cd qf1939
./bootstrap
./configure --with-ruby
./make
./make install

#if you get errors the following bugs havent been fixed yet:#patch your /usr/local/include/ruby-1.9.0/ruby/ruby.h

#patch QuickfixRuby.cpp
2145c2145
< #include "ruby/io.h"
---
> #include "rubyio.h"
2643c2643
<       printf( "%s\n", RSTRING_PTR(message) );
---
>       printf( "%s\n", RSTRING(message)->ptr );
2676c2676
<       printf( "%s\n", RSTRING_PTR(message) );
---
>       printf( "%s\n", RSTRING(message)->ptr );
2709c2709
<       printf( "%s\n", RSTRING_PTR(message) );
---
>       printf( "%s\n", RSTRING(message)->ptr );
2742c2742
<       printf( "%s\n", RSTRING_PTR(message) );
---
>       printf( "%s\n", RSTRING(message)->ptr );
2782c2782
<         printf( "%s\n", RSTRING_PTR(message) );
---
>         printf( "%s\n", RSTRING(message)->ptr );
2849c2849
<         printf( "%s\n", RSTRING_PTR(message) );
---
>         printf( "%s\n", RSTRING(message)->ptr );
2922c2922
<         printf( "%s\n", RSTRING_PTR(message) );
---
>         printf( "%s\n", RSTRING(message)->ptr ); 

#place a symlink

sudo ln -s /usr/local/include/ruby-1.9.0/i386-darwin9.1.0/ruby/config.h /usr/local/include/ruby-1.9.0/i386-darwin9.1.0/config.h

#try to ./make and ./make install again

irb-trunk

and

require 'quickfix_ruby'

YAY!  1.9 porting notes:http://boga.wordpress.com/2008/04/15/ruby-19-porting-notes/ 

real time quotes / prediction markets

Thursday, January 10th, 2008

by searching and  finding free real time quotes i stumbled upon the google blog where they also announce free real time quotes. they also mention the interesting topic of the Prediction market as they made a study about the information flow in their offices (blog post / pdf study).i hope i will find some time to track this topic!  

finanzkalender

Sunday, January 6th, 2008

http://www.fuw.ch/de/maerkte_news/agenda/finanzkalender.html
http://www.markt-daten.de/wirtschaftsdaten/kalender.htm