Skip Menu |

This queue is for tickets about the Finance-InteractiveBrokers-SWIG CPAN distribution.

Report information
The Basics
Id: 70342
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Finance-InteractiveBrokers-SWIG

People
Owner: Nobody in particular
Requestors: chrisfluur [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.01_01
  • 0.01_02
  • 0.02
  • 0.03
Fixed in:
  • 0.03_03
  • 0.04



Subject: invalid method processMessags( )
Date: Thu, 18 Aug 2011 10:23:40 -0500
To: bug-Finance-InteractiveBrokers-SWIG [...] rt.cpan.org
From: Chris Fluur <chrisfluur [...] gmail.com>
Also, quick question - I am getting a popup in TWS, so this code must be connecting properly. But is there anyway to disable that popup? Onto the bug report... ------------------------------------------------------------------------------------------------------------ ./test perl script: ------------------------------------------------------------------------------------------------------------ #!/usr/bin/perl use Finance::InteractiveBrokers::SWIG; use myeventhandlers; my $handler = MyEventHandler->new(); my $ib = Finance::InteractiveBrokers::SWIG->new(handler => $handler); $ib->eConnect( 'localhost',7496,1); $ib->reqCurrentTime(); # Your event loop here $ib->processMessags() while( $ib->isConnected() ); # And eventually... $ib->eDisconnect(); ------------------------------------------------------------------------------------------------------------ myeventhandler.pm: ------------------------------------------------------------------------------------------------------------ #!/usr/bin/perl package MyEventHandler; use base qw( Finance::InteractiveBrokers::SWIG::EventHandler ); use strict; use warnings; my $handler = MyEventHandler->new(); sub currentTime { print "current time!\n"; print "@_\n"; # Do something with received time } ------------------------------------------------------------------------------------------------------------ output: ------------------------------------------------------------------------------------------------------------ C++ constructor C++ eConnect() C++ reqCurrentTime() C++ isConnected() Finance::InteractiveBrokers::SWIG: invalid method processMessags( ) called at /Library/Perl/5.10.0/darwin-thread-multi-2level/Finance/InteractiveBrokers/SWIG.pm line 233 Finance::InteractiveBrokers::SWIG::AUTOLOAD('Finance::InteractiveBrokers::SWIG=HASH(0x1008d9fc0)') called at ./test line 18 C++ destructor
On Thu Aug 18 11:23:51 2011, chrisfluur@gmail.com wrote: Show quoted text
> Also, quick question - I am getting a popup in TWS, so this code must > be > connecting properly. But is there anyway to disable that popup?
I'm not really sure about that. I use the IB Gateway, and not TWS. :-) Show quoted text
> # Your event loop here > $ib->processMessags() > while( $ib->isConnected() );
Show quoted text
> Finance::InteractiveBrokers::SWIG: invalid method processMessags( )
It's "processMessages()", but I don't think that's your fault. There appears to be a typo in the documentation you copied that from. Fixed in the repo. If you fix that, it should be fine. Don't forget, there's some more thorough examples in the examples/ directory, also.
Subject: Re: [rt.cpan.org #70342] invalid method processMessags( )
Date: Thu, 18 Aug 2011 16:50:04 -0500
To: bug-Finance-InteractiveBrokers-SWIG [...] rt.cpan.org
From: Chris Fluur <chrisfluur [...] gmail.com>
Ah, okay, thanks. I'm checking out the examples dir now, and got the api-demo to work! yes! this is awesome! thanks ! On Thu, Aug 18, 2011 at 12:01 PM, Jason McManus via RT < bug-Finance-InteractiveBrokers-SWIG@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70342 > > > On Thu Aug 18 11:23:51 2011, chrisfluur@gmail.com wrote:
> > Also, quick question - I am getting a popup in TWS, so this code must > > be > > connecting properly. But is there anyway to disable that popup?
> > I'm not really sure about that. I use the IB Gateway, and not TWS. :-) >
> > # Your event loop here > > $ib->processMessags() > > while( $ib->isConnected() );
>
> > Finance::InteractiveBrokers::SWIG: invalid method processMessags( )
> > It's "processMessages()", but I don't think that's your fault. There > appears to be a typo in the documentation you copied that from. Fixed > in the repo. > > If you fix that, it should be fine. Don't forget, there's some more > thorough examples in the examples/ directory, also. >
On Thu Aug 18 17:50:14 2011, chrisfluur@gmail.com wrote: Show quoted text
> Ah, okay, thanks. I'm checking out the examples dir now, and got the > api-demo to work! yes! this is awesome! thanks !
Great, glad we finally got it working for you! 8-) Happy trading.