forked from Sdoof/thetagang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thetagang.toml
89 lines (72 loc) · 1.95 KB
/
thetagang.toml
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
[account]
# The account number to operate on
number = "DU3162941"
# Cancel any existing orders for the symbols configured at startup
cancel_orders = true
# Minimum amount of excess liquidity as a percentage of net liquidation value.
# Adjust this based on your tolerance for margin usage.
minimum_cushion = 0.2
# Market data type (see
# https://interactivebrokers.github.io/tws-api/market_data_type.html)
market_data_type = 1
[option_chains]
# Number of expirations to load from option chains
expirations = 5
# Number of strikes to load from option chains
strikes = 50
[roll_when]
# Roll when P&L reaches 90%
pnl = 0.9
# Or when there are <= 15 days to expiry
dte = 15
[target]
# Target 45 or more days to expiry
dte = 45
# Target delta of 0.3 or less
delta = 0.3
# Minimum amount of open interest for a contract to qualify
minimum_open_interest = 10
[symbols]
# NOTE: Please change these symbols and weights according to your preferences.
# These are provided only as an example for the purpose of configuration.
[symbols.SPY]
weight = 0.4
[symbols.QQQ]
weight = 0.3
[symbols.TLT]
weight = 0.3
[ib_insync]
logfile = 'ib_insync.log'
[ibc]
# IBC configuration parameters. See
# https://ib-insync.readthedocs.io/api.html#ibc for details.
password = 'demo'
userid = 'demo'
gateway = true
ibcPath = '/opt/ibc'
tradingMode = 'paper'
twsVersion = 981
# Change this to point to your config.ini for IBC
ibcIni = '/etc/thetagang/config.ini'
# twsPath = ''
# twsSettingsPath = ''
# javaPath = ''
# fixuserid = ''
# fixpassword = ''
[watchdog]
# Watchdog configuration params. See
# https://ib-insync.readthedocs.io/api.html#watchdog for details.
appStartupTime = 30
appTimeout = 20
clientId = 1
connectTimeout = 2
host = '127.0.0.1'
port = 4002
probeTimeout = 4
readonly = false
retryDelay = 2
[watchdog.probeContract]
currency = 'USD'
exchange = 'SMART'
secType = 'STK'
symbol = 'SPY'