-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathshared.py
More file actions
32 lines (27 loc) · 821 Bytes
/
shared.py
File metadata and controls
32 lines (27 loc) · 821 Bytes
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
import os
from dotenv import load_dotenv
load_dotenv()
EXCHANGE_MAX_BARS = os.getenv('EXCHANGE_MAX_BARS')
api = {
'key': os.getenv('API_KEY'),
'secret': os.getenv('API_SECRET')
}
strategy = {
'movingAverageLength': 14,
'timeframe': os.getenv('TIMEFRAME'),
'start_date': os.getenv('START_DATE'),
'allocation': os.getenv('ALLOCATION')
}
exchange = {
'name': os.getenv('EXCHANGE'),
'pair': os.getenv('ASSET')+'/'+os.getenv('MARKET'),
'market': os.getenv('MARKET'),
'nbMarket': float(os.getenv('COINS_MARKET')),
'asset': os.getenv('ASSET'),
'nbAsset': float(os.getenv('COINS_ASSET')),
'marketInOrder': 0.0,
'coinsInOrder': 0.0,
'spreadPercentage': float(os.getenv('SPREAD')),
'fee': float(os.getenv('FEES')),
'interval': float(os.getenv('INTERVAL'))
}