Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 831 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 831 Bytes

Example HFT-ish Algorithm for Alpaca Trading API for Java

Build Status

This is designed to mimic the python version, using the alpaca-java library.

The Main Class is:

io.github.mainstringargs.alpaca.hftish.Driver

Arguments are as follows:

  • -s / --symbol: the stock to trade (defaults to "SNAP")
  • -q / --quantity: the maximum number of shares to hold at once. Note that this does not account for any existing position; the algorithm only tracks what is bought as part of its execution. (Default 500, minimum 100.)