- JDK: 17 (tested with OpenJDK 17.0.16)
- Apache Maven: 3.9.11
- Navigate to the project root directory:
cd Citi25suJava
- Download all dependencies into the
libsfolder:
mvn dependency:copy-dependencies -DoutputDirectory=libs
- Go to the source directory and compile the Java files:
cd src/main/java
javac -cp ".:./libs/:~/Citi25suJava/libs/*" Test.java Communication.java Management.java ExecutionBotJava.java
Note: Adjust the paths to your actual environment. It is recommended to use full absolute paths instead of
.or~.
Here is a template command to run the bot. You can adjust or expand the arguments depending on your use case:
java -cp "~/Citi25suJava/src/main/java:~/Citi25suJava/libs/*" ExecutionBotJava --action='buy' --symbol 'GCG0:MBO' --size 25 --maxtime 45 --strategy POV --bot_id JPar0001_eventID_02 --username JPar0001 --password '_jV123uZ_Y' &
Again, replace the class file path and the jar file path with the full absolute paths in your environment.
Under Citi25suJava/src/test there are .sh scripts used for stress testing.
Before running these scripts, you must update all file paths inside them in the same way as described in Running the Bot (use full absolute paths for class files and jar dependencies).