Skip to content

amor71/trade_deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker setup for LiuAlgoTrader

The project exposes container implementation for LiuAlgoTrader project. It's intended to kick-start strategy development, as well as exposing a full container/service oriented deployment for a full trading system.

Available Docker implementations

  • liu-in-a-box : a single container implementation that encapsulating database and the trading platform, for first time users.
  • liu-db-in-a-box: a ready to use database for LiuAlgoTrader

liu-in-a-box quick-start

Prerequisites

  1. make sure you have a locally installed docker (https://docs.docker.com/get-docker/) ,
  2. Setup your PAPER or LIVE trading account w/ Alpaca Markets https://alpaca.markets/ .

Installation & Setup

  1. Execute docker pull amor71/liu-in-a-box,
  2. Download the file https://github.com/amor71/trade_deploy/blob/master/liu-in-a-box/env.list to the folder in which you intend to run your strategies (eg. ~/my-liu/),
  3. Make you to have a valid tradeplan.toml file in the same directory, as well as set-up LiuAlgoTrader environment variables. For more details & examples see here https://liualgotrader.readthedocs.io/en/latest/Configuration.html .

Running your local liu-in-a-box

Execute docker run -v <local_folder>:/opt/trader --env-file env.list --env DSN=postgresql://docker:docker@localhost/tradedb amor71/liu-in-a-box

liu-db-in-a-box quick-start

Prerequisites

  1. make sure you have a locally installed docker (https://docs.docker.com/get-docker/) ,
  2. Setup your PAPER or LIVE trading account w/ Alpaca Markets https://alpaca.markets/ ,
  3. recommanded: a local installation of psql (PostgreSQL client - https://www.postgresql.org/docs/12/app-psql.html) .

Installation & Setup

  1. Execute docker pull amor71/liu-db-in-a-box,
  2. Execute docker run -P amor71/liu-db-in-a-box.

Recommanded step: validate access

  1. Execute docker ps and find the local port,
  2. Execute \psql -h localhost -p <local-port-fron-step-1> -U docker tradedb (password: docker).

Using w/ LiuAlgoTrader

  1. Execute docker ps and find the local port,
  2. export DSN=postgresql://docker:docker@localhost:<local-port-fron-step-1>/tradedb
  3. Follow LiuAlgoTrader instructions for running the relevant application.

About

Docker orchestration & Deployment fo liu trading framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published