-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtrademanager.sh
24 lines (17 loc) · 958 Bytes
/
trademanager.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Change the config.properties file to point to TWS location.
# in TWS setup API settings to incudle the IP address of the pc that you
# are running this app on also select a client id other than zero unless
# this is the only application connecting to TWS.
# ***************************************************
# Change this dir to be the location for J2SE edition
# ***************************************************
PATH="$JAVA_HOME/bin:$PATH"
# tools.jar is needed for the javac compiler
LOCALCLASSPATH="$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar:lib/*:dist/*"
# set the timezone to be your markets zone so NYSE=America/New_York London=GMT
TIMEZONE=America/New_York
echo "PATH=$PATH"
echo "CLASSPATH=$LOCALCLASSPATH"
echo "TIMEZONE=$TIMEZONE"
java -Xmn128M -Xms768M -Xmx768M -classpath "$LOCALCLASSPATH" -Duser.timezone=$TIMEZONE -Dlog4j.configuration=file:"config.properties" org.trade.ui.TradeAppMain