Finance::Streamer

Interface to Datek Streamer
Download

Finance::Streamer Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jeremiah Mahler
  • Publisher web site:
  • http://search.cpan.org/~jeri/

Finance::Streamer Tags


Finance::Streamer Description

Interface to Datek Streamer Finance::Streamer is a Perl module that provides an interface that can be used to access Datek Streamer market data.It works with the new Streamer (version 3) as opposed to the older (version 2).There are four subroutines available to use. The first two, connect and Parser, make the required tasks of connecting to a Streamer server and parsing raw quote data into an easier to use format (such as a hash) easy to do. The third, receive, makes the task of using the data as easy as possible by using the previously mentioned subroutines (connect, receive). The fourth, receive_all, is identical to receive but it returns the data state.If you just want to use the data, focus on the functions receive and receive_all. If you want to know how the protocol works (roughly), focus on the connect and Parser functions.SYNOPSIS use Finance::Streamer; my $user = 'USER1234'; my $pass = 'SF983JFDLKJSDFJL8342398KLSJF8329483LF'; my $symbols = 'JDSU+QCOM+AMAT+IBM+^COMPX'; my $fields = '0+1+2+3+4+8+9+21'; my $streamer = Finance::Streamer->new( user => $user, pass => $pass, symbols => $symbols, fields => $fields, ); my $sub = sub { my (%all_data) = @_; foreach my $symbol (keys %all_data) { print "$symbol "; my ta = %{$all_data{$symbol}}; foreach my $data_part (keys ta) { print "$data_part", "=", $data{$data_part}, " "; } } }; $streamer->{sub_recv} = $sub; #$streamer->receive; $streamer->receive_all; Requirements: · Perl


Finance::Streamer Related Software