-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.py
More file actions
78 lines (64 loc) · 1.73 KB
/
Copy pathconfig.py
File metadata and controls
78 lines (64 loc) · 1.73 KB
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
from tinydb import TinyDB
DB_LOG_FILE = 'logs/cryptodash.json'
BEANCOUNT_FILE = 'beancount/portfolio.beancount'
DB = TinyDB(DB_LOG_FILE)
#Visiuals
COLORS = {
'white': '#E9D8A6',
'red': '#ef476f',
'yellow': '#EE9B00',
'orange': '#BB3E03',
'blue': '#0A9396',
'green': '#43AA8B',
}
UNICODE_SHAPES = {
'ballot_box' : '\u2610'
}
#API
API = {
'ftxus': {'apiKey': '',
'secret': ''},
'bitstamp': {'apiKey': '',
'secret': ''},
'kraken': {'apiKey': 'a', 'secret': 'a'},
'coinglass': {'secret': ''},
}
FEES = {'ftxus': {'maker': 0.0008, 'taker': 0.0008}}
URLS = {'coinglass': {
'url': 'https://open-api.coinglass.com/api/pro/v1',
'futures': '/futures',
'openInterest': '/openInterest',
'liquidation_chart': '/liquidation_chart',
'liquidation': '/liquidation',
'symbol': '?symbol=',
'interval': '&interval=',
}}
# Beancount
ACCOUNT_TYPE = ['Assets', 'Liabilities', 'Equity', 'Income', 'Expenses']
ACCOUNTS = {
'crypto_investment_account': 'CRYPTO',
'crypto_cash': 'Cash',
'main_fee_account': 'Financial',
'sub_fee_account': 'Maker:Fees',
'income_account': 'PnL',
}
BEAN_STRINGS = {
'price_section': ';; END Crypto Price',
'transaction_section': ';; END Cryptodash'
}
# Testing
STRATEGIES = {'25%': {
'name': '25%',
'desc': 'qty/4 and buy at buy_increments; sell at limit at sell_increment',
'vars': {
'buyIncrement': float,
'sellIncrement': float,
'limit': float,
'qty': float,
'factor': float,
'low': float,
},
'action': 'loop::qty/factor|buy@low>buyIncrement|sell@limit>sellIncrement|::loop',
}}