https://github.com/amor71/trade_deploy
Docker orchestration & Deployment fo liu trading framework
https://github.com/amor71/trade_deploy
dockerfile liualgotrader trading trading-platform
Last synced: 6 months ago
JSON representation
Docker orchestration & Deployment fo liu trading framework
- Host: GitHub
- URL: https://github.com/amor71/trade_deploy
- Owner: amor71
- License: gpl-3.0
- Created: 2020-09-14T05:57:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T03:03:31.000Z (about 5 years ago)
- Last Synced: 2025-03-27T01:48:32.768Z (7 months ago)
- Topics: dockerfile, liualgotrader, trading, trading-platform
- Language: Dockerfile
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# 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 :/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 -U docker tradedb` (password: `docker`).### Using w/ _LiuAlgoTrader_
1. Execute `docker ps` and find the local port,
2. `export DSN=postgresql://docker:docker@localhost:/tradedb`
3. Follow _LiuAlgoTrader_ instructions for running the relevant application.