Skip to content

dingwen07/NYU-CSCI-GA.3812-TestBot-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Citi25su Java Part

Requirements

  • JDK: 17 (tested with OpenJDK 17.0.16)
  • Apache Maven: 3.9.11

Steps to Build

  1. Navigate to the project root directory:
cd Citi25suJava
  1. Download all dependencies into the libs folder:
mvn dependency:copy-dependencies -DoutputDirectory=libs
  1. 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 ~.


Running the Bot

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.


Stress Test Scripts

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).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published