-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL
106 lines (66 loc) · 1.94 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Prerequists
===========
* Any recents Linux distribution or Microsoft Windows 7+ (prefered is Linux Debian 9+ or Ubuntu 17.04+)
* Python 3.6+
* MySQL 5+ or PostgreSQL 8+
* Enought disk space to store market data (can take many GB, files + database)
Python Virtual Environment
==========================
Unix based systems
------------------
From a terminal :
$ python3.<x> -m venv <siis.venv>
$ source <siis.venv>/bin/activate
replace <x> by your most recent Python version and <siis.venv> by any folder name you want or keep that.
Microsoft Windows
-----------------
From a command prompt :
$ python3.<x>.exe /m venv <siis.venv>
$ <siis.venv>\Scripts\activate
replace <x> by your most recent Python version and <siis.venv> by any folder name you want or keep that.
Configuration
=============
First you must call the install script or to manually create the following structure.
Unix based systems
------------------
To run the install script from bash :
$ python scripts/install.py
You must have a folder .siis in your home folder with the structure :
.siis/
|- config/
|- strategy.ini
|- connectors/
|- log/
|- reports/
|- markets/
Microsoft Windows
-----------------
It is similar as Linux, but except you will find a siis folder into your user APPDATA folder.
You must have a folder siis in your home folder with the structure :
siis/
|- config/
|- strategy.ini
|- connectors/
|- log/
|- reports/
|- markets/
Database
========
You can choose between MySQL or PostgreSQL.
MySQL
-----
sql/initmy.sql contains the tables and the instructions to setup it.
PostgreSQL
----------
sql/initpg.sql contains the tables and the instructions to setup it.
Connectors
==========
...
Strategies
==========
A file <.*siis>/config/strategy.ini must be inspired from config/strategy.ini.template.
...
Exit
====
Exit Python virtual env typing in your terminal, or simply closing it :
$ deactivate