Closed noamagiv closed 1 month ago
I'm getting the following exception when running with the default toml settings
Traceback (most recent call last): File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 483, in validate nvalue = Schema( File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 518, in validate raise SchemaWrongKeyError(message, e.format(data) if e else None) schema.SchemaWrongKeyError: Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 483, in validate nvalue = Schema( File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 489, in validate raise SchemaError( schema.SchemaError: Key 'puts' error: Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}
Traceback (most recent call last): File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 483, in validate nvalue = Schema( File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 489, in validate raise SchemaError( schema.SchemaError: Key 'QQQ' error: Key 'puts' error: Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}
Traceback (most recent call last): File "", line 1, in File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) File "/home/noam/dev/thetagang/thetagang/main.py", line 41, in cli start(config, without_ibc) File "/home/noam/dev/thetagang/thetagang/thetagang.py", line 36, in start validate_config(config) File "/home/noam/dev/thetagang/thetagang/config.py", line 254, in validate_config schema.validate(config) # type: ignore File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 489, in validate raise SchemaError( schema.SchemaError: Key 'symbols' error: Key 'QQQ' error: Key 'puts' error: Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}
I'm getting the following exception when running with the default toml settings
Traceback (most recent call last): File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 483, in validate nvalue = Schema( File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 518, in validate raise SchemaWrongKeyError(message, e.format(data) if e else None) schema.SchemaWrongKeyError: Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 483, in validate nvalue = Schema( File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 489, in validate raise SchemaError( schema.SchemaError: Key 'puts' error: Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 483, in validate nvalue = Schema( File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 489, in validate raise SchemaError( schema.SchemaError: Key 'QQQ' error: Key 'puts' error: Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in
File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(args, kwargs)
File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(args, **kwargs)
File "/home/noam/dev/thetagang/thetagang/main.py", line 41, in cli
start(config, without_ibc)
File "/home/noam/dev/thetagang/thetagang/thetagang.py", line 36, in start
validate_config(config)
File "/home/noam/dev/thetagang/thetagang/config.py", line 254, in validate_config
schema.validate(config) # type: ignore
File "/home/noam/.cache/pypoetry/virtualenvs/thetagang-PBDHhFlu-py3.10/lib/python3.10/site-packages/schema.py", line 489, in validate
raise SchemaError(
schema.SchemaError: Key 'symbols' error:
Key 'QQQ' error:
Key 'puts' error:
Wrong key 'write_when' in {'delta': 0.5, 'strike_limit': 1000.0, 'write_threshold': 0.01, 'write_when': {'green': False, 'red': True}}