[ts-gen] 'slender TWS'; was: setting up mysql

Justin justins at ftml.net
Mon Jan 12 23:10:16 EST 2009


I tried connecting to the tws with ssl enabled and this is what the
console printed:

	The trading shim has connected to the database server
          	and loaded 51649 products; 
	Problem: 421 the client id  1 is ignored by the IB tws

	Problem: 421 the client id  2 is ignored by the IB tws

	Problem: 421 the client id  3 is ignored by the IB tws

                                     	connected to the IB tws as
          	client id  4; 
	Init; after   0 reads, of   0 records: time out 0 0 0 0

	Problem: 524 could not obtain IB account info at startup
	Exiting

Then I try and access the tws with ssl disabled and I get:

          The trading shim has connected to the database server
          and loaded 51649 products; connected to the IB tws as
          client id  1; and queried for the account code, which
          seems to be DU15082.  Program initialization has been
          completed.

So now it on to "Run the Test Scripts" 3.10, and it says to run
bin/regress although
bin/regress an old ksh shell I found out is now in exs/test.fb as a ruby
script along 
with exs/risk.rb which was bin//unsafe.  I run the script from the shim
base directory and
it shows the above text, and that's it, I then checked the
~/log/ShimText file and 
it show a bunch of account values for the demo system. 

My shim version 090102 does not display the --play  and --unit options. 
Here is the 
exact output.

	Usage: shim <mode> [optional feature list]
	Modes:

        	       # real modes, requiring access to an IB tws:
    	--data     # process subscriptions and log resulting tick stream events
    	--risk     # accept full command set, send requests, and log all events

  	# Options may be listed following the mode.

        	       # real modes; the output options write all events to the:
     	 file     # file with name also the ShimText name-value pair value
     	 cout     # standard output -- warning, sprays all over the screen
     	 logd     # system logger, to provide routing via /etc/syslog.conf
        	       # output options may be combined and file is the default

        	       # other real mode options:
     	 init     # prompt for the dbms and link commands during startup  
     	 pane     # pop a konsole windowpane to scroll cmds, reqs and msgs
      	 save     # save cmd, req and msg events as text and binary images

So far I seem to be able to connect to the api, and access the demo
account, I'm now
at the "Using the Shim" section in the manual.  

Should I be able to connect with ssl enabled?

I've included the  ShimText file in order to know if things are as they
should be. I've 
only run the exs/test.rb script since connectiing to the demo acount
with "shim --data"

I'm still contemplating on whether I should invest more time
familiarizing myself with 
mysql, it's quite a freak of programming. looks like it has a bit of a
lisp,  with  3 
different ways to do anything, and one might have this side effect so
you should use 
the other, and in this case use this one which is less picky.  Which if
you might not like 
that option there's always this one. It's got a mind of it's own, some
sort of artifiicial 
inteligance that I cannot compete with.  

justin
















On Mon, 12 Jan 2009 11:46:05 -0500 (EST), "R P Herrold"
<herrold at owlriver.com> said:
> On Sun, 11 Jan 2009, Justin wrote:
> 
> > When I try and test shim with "shim --data" I get:
> >
> > Problem: 512 mySQL isolation level must be serial
> > Exiting
> 
> Sam got it perfect, in that the my.cnf needs the 'ACID' 
> Serialiazable attribute set "on" (needed for proper Innodb 
> foriegn key enforcement).  There is probably coverage in 
> Bill's 'manual.pdf' which is in the tarball, for greater 
> explanation ... /me looks  -- yeah -- section 3.3.1 therein
> 
> As you mentioned you were new with databases and C++, I would 
> advise you that you are VERY CLOSE to being up and running.
> 
> > I thought I had all the pieces of the puzzle in place, I 
> > must have missed something along the way. Of the top of my 
> > head, quick question for you, once this program works 
> > smoothly could it access a stripped down version of the TWS, 
> > one that would run as a demon in the background, removing 
> > the GUI altogether?
> 
> There is both a 'slender' version of the TWS without charting, 
> nor position and order management downloadable 
> as 'gwclient.jar' and very slow in getting new versions [as 
> the fixes for the GUI part is not needed].  It may be 
> downloaded at:
>  	http://www.interactivebrokers.com/download/gwclient.jar
> and is un'jarred' and run in a fashion similar to the TWS
> 
> See this listed thus at the IB website:
> 
> main site | Individuals | Software |
>  	Application Programming (drop down) |
>  	CTCI FIX tab (rightmost)
> 
> manual at:
>  	http://www.interactivebrokers.com/download/newMark/PDFs/gateway.pdf
> 
> and that manual has sample screen shots.  Note that I have 
> tried that connector in the past, but not recently, with the 
> shim.  We do NOT currently include it as a testing target, but 
> welcome reports to the mailing list
> 
> -- Russ herrold
> _______________________________________________
> ts-general mailing list
> ts-general at trading-shim.org
> http://www.trading-shim.org/mailman/listinfo/ts-general
-- 
  Justin
  justins at ftml.net

-- 
http://www.fastmail.fm - A fast, anti-spam email service.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ShimText
Url: http://www.trading-shim.org/pipermail/ts-general/attachments/20090112/66f96ab3/attachment-0001.pl 


More information about the ts-general mailing list