Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/logvinovleon/eth1

Eth1 trading program
https://github.com/logvinovleon/eth1

Last synced: 17 days ago
JSON representation

Eth1 trading program

Awesome Lists containing this project

README

        

# Eth1 trading program

## How to run

* Install opam (package manager) with it's dependencies

`apt-get install -y software-properties-common git unzip aspcud mercurial m4`

`wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin`

`opam init`

`eval $(opam config env)`

* Clone this repo

`git clone https://github.com/LogvinovLeon/eth1`

* Install dependencies

`opam install core async yojson -j 4`

* Make

`make`

* Install on amazon EC2 instance

`make intall`

## TODO

* Add more data & metrics to State
* Adapt message & action types to real data specification
* Implement two moving average crossover strategy
* Implement pair trading strategy

## System architecture

### Network:
`Connection` : Server connection & reconnection logic. Reading & writing raw data.

### Message:
`Message` : Parsing data from server

`Action` : Generating raw data for server

### State:
`State` : Functions operating on state (our assets, orders, books history)

### Logic:
`Controller` : Strategy independent logic & strategy signature

`Two_moving_average_crossover` : Two moving average crossover strategy

### Utils:
`Color` : Helper functions & types for colored console output

### Mock Server:
`mock_server.py` : Mock TCP server which sends commands & receives commands