Skip to content

Quantolope/algoticks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algoticks

License


Algoticks is an algorithmic trading simulator written in C.

READ: Getting started with Algoticks

READ: Writing an Algorithm for Algoticks


Building (Linux)

Release

Recommended Compiler: GCC

Recommended Standard: C11

Dependencies:

mkdir bin
cd bin
cmake ..
make

upon successful compilation, the binary executable along with config files are found in release (bin/release) folder.

Debug

mkdir bin
cd bin
cmake -DCMAKE_BUILD_TYPE=Debug ..
make

upon successful compilation, the binary executable along with config files are found in debug (bin/debug) folder.


Building on Windows

Note: Algoticks is slower in windows compared to Linux version. Windows optimization is being worked on, but is not a priority.

include path is set to C:/vcpkg/installed/x64-windows/include in CMakeLists.txt. Edit the path if you installed vcpkg in some other directory.

lib path is set to C:/vcpkg/installed/x64-windows/lib in CMakeLists.txt. Edit the path if you installed vcpkg in some other directory.

mkdir bin
cd bin

cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..
ninja

Usage

-V			Print Version and Exit.
-H			Print this message and Exit.
-D			Enable Debug.
-L			Indicate datasource is updated in realtime.


--settings [*.JSON]			Custom settings file. Default: settings.json
--config [*.JSON]			Custom config file. Default: config.json
--benchmark -B [(Optional)[*.JSON]	Custom benchmark file. Default: benchmark.json



Tests

Algoticks uses check.h Unit Testing Framework for testing.

How to install check.h?

To run all Tests:

cd tests
cmake .
make
./algoticks_tests

Output:

Running suite(s): Algoticks
100%: Checks: 13, Failures: 0, Errors: 0


Timeline

Start of development: 13-Jun-2020

Repository made public: 02-Jul-2020


Credits

Icons made by Eucalyp from www.flaticon.com

About

Algoticks is an algorithmic trading simulator written in C.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 94.8%
  • CMake 3.6%
  • Other 1.6%