Tag Archives: Java

Interactive Brokers API Workshop Preview in Java

Interactive Brokers API Workshop Preview in Java

 

Note that all of you Quant Elite will be able attend for FREE 

I have a survey running at
https://www.surveymonkey.com/r/B6KT7HM

CRUCIAL Survey on FUTURE Interactive Brokers workshop

 

Demo MySQL C Insert Java Select with Positions Database Table

Demo MySQL C Insert Java Select with Positions Database Table

Demos of C and Java Interactive Brokers

Source files

Java: MySQLPosition.tar

C: SimulinkModelTest.tar

 

Here is the MYSQL Position table CREATE statement:

CREATE TABLE `Positions` (
`idPositions` int(11) NOT NULL DEFAULT ‘0’,
`shortSymbol` int(11) DEFAULT NULL,
`shortEntryTS` timestamp NULL DEFAULT NULL,
` shortEntryPrice` decimal(10,4) DEFAULT NULL,
`shortStopLossPer` decimal(3,2) DEFAULT NULL,
`shortSoftTargetPerc` decimal(3,2) DEFAULT NULL,
`longSymbol` int(11) DEFAULT NULL,
`Positionscol` varchar(45) DEFAULT NULL,
`longEntryTS` timestamp NULL DEFAULT NULL,
`longEntryPrice` decimal(10,4) DEFAULT NULL,
`longStopLossPer` decimal(3,2) DEFAULT NULL,
`longSoftTargetPerc` decimal(3,2) DEFAULT NULL,
`shortExitTS` timestamp NULL DEFAULT NULL,
`shortExitPrice` decimal(10,4) DEFAULT NULL,
`longExitTS` timestamp NULL DEFAULT NULL,
`longExitPrice` decimal(10,4) DEFAULT NULL,
`shortQty` int(11) DEFAULT NULL,
`longQty` int(11) DEFAULT NULL,
`shortBeta` decimal(4,4) DEFAULT NULL,
`shortLong` decimal(4,4) DEFAULT NULL,
PRIMARY KEY (`idPositions`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
select * from Positions

 

Working demo of Simulink code generated C source with Interactive Brokers data Java via fast Redis message queue

Working demo of Simulink code generated C source with Interactive Brokers data Java via fast Redis message queue

Follow instructions in source code video walkthrough

 

Get Java source code here:

Source code of Interactive Brokers Java API with Redis NOSQL on Ubuntu Linux

C source code: SimulinkModelTest.tar

 

MySQL demo with Matlab C Java in Ubuntu Linux source files

Here are the instructions to

C: http://zetcode.com/db/mysqlc/

Java: http://quantlabs.net/blog/2015/09/java-instructions-for-mysql-and-ubuntu-linux/

Netbeans project file: TestIBTWS.tar

C files: mysql-connector-java-5.1.36.tar

Code for Matlab:

>> conn = database(‘testdb’,’root’,’Hello123_’,’/home/caustic/DB_Drivers/mysql-connector-java-5.1.36-bin.jar’,’jdbc:mysql://localhost/testdb’);

query=’select * from Cars’;

x=fetch(conn,query)

 

30 minute video playback DOTNET front end high speed charting vs open source R Java Python OpenGL debate

30 minute video playback DOTNET front end high speed charting vs open source R Java Python OpenGL debate

This was for our Meetup of

.NET WPF front end high speed charting vs Linux ohttp://quantlabs.net/blog/2015/01/other-javascript-and-commercial-charting-reviews-presented-for-potential-trading-environments/pen source R/Java/Python/OpenGL debate
If you have known me and my blog (quantlabs.net/blog), it appears there was lots to talk about regarding those tricky front end applications you use for a potential system with high speed charts. Many options have been presented but it seems that .NET is still the best here with WPF. So, let’s clarify that with particular options ranging from open source R/Python packages to which .NET one. Is that DevExpress, Infragistics, Telerik, Lightnng Charts, or SciCharts. Let’s do ‘er up to learn here. I want to know what you work with.

Questions and other libraries reviews here
http://quantlabs.net/blog/2015/01/other-javascript-and-commercial-charting-reviews-presented-for-potential-trading-environments/