-
Notifications
You must be signed in to change notification settings - Fork 4
/
configuration.example.py
47 lines (37 loc) · 1.4 KB
/
configuration.example.py
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
apiKey = '' # create an app on https://developer.tdameritrade.com/ to get one
apiRedirectUri = 'https://localhost'
ameritradeAccountId = ''
dbName = 'db.json'
# console, email ### where to alert regarding errors or order fills
botAlert = 'console'
configuration = {
'QQQ': {
# how many cc's to write
'amountOfHundreds': 1,
# write cc's at or over current asset price + this value
'minGapToATM': 1,
# If our strike is below current asset price - this value, we consider it deep ITM and want to rollup for debit
'deepITMLimit': 10,
# How much do we want to rollup the strike from last month if we are Deep ITM?
# (If this is set to 0 the bot will roll to the highest contract with credit, ignoring deepITMLimit)
'maxRollupGap': 0,
# How much are we allowed to reduce the strike from last month? (flash crash protection)
# If the underlying f.ex. drops by 30 in value, this is the max we are gonna drop our cc strike
'maxDrawdownGap': 10,
# don't write cc's with strikes below this value (set this f.ex. to breakeven)
'minStrike': 0
}
}
# Required for 'botAlert' email
mailConfig = {
'smtp': None,
'port': 587,
'from': None,
'to': None,
'username': None,
'password': None,
}
# don't touch these
debugMarketOpen = False
debugEverythingNeedsRolling = False
debugCanSendOrders = True