Closed joshs85 closed 5 years ago
Hi @joshs85 , don't know if you're able to see the Travis output (please let me know if you're not) but here are the reasons the build is failing:
$ flake8 tastyworks/
tastyworks/models/trading_account.py:266:1: W293 blank line contains whitespace
tastyworks/models/order.py:76:1: W293 blank line contains whitespace
tastyworks/models/order.py:78:9: E303 too many blank lines (2)
tastyworks/models/position.py:8:1: F401 'string' imported but unused
tastyworks/models/position.py:13:1: E302 expected 2 blank lines, found 1
tastyworks/models/position.py:18:1: E302 expected 2 blank lines, found 1
tastyworks/models/position.py:22:1: E302 expected 2 blank lines, found 1
tastyworks/models/position.py:27:1: E302 expected 2 blank lines, found 1
tastyworks/models/position.py:60:43: E226 missing whitespace around arithmetic operator
tastyworks/models/position.py:78:52: E231 missing whitespace after ','
tastyworks/models/position.py:78:87: E231 missing whitespace after ','
tastyworks/models/position.py:78:103: E231 missing whitespace after ','
tastyworks/models/position.py:126:19: W292 no newline at end of file
tastyworks/models/alert.py:1:1: F401 'logging' imported but unused
tastyworks/models/alert.py:7:1: E302 expected 2 blank lines, found 1
tastyworks/models/alert.py:13:1: E302 expected 2 blank lines, found 1
tastyworks/models/alert.py:17:1: E302 expected 2 blank lines, found 1
tastyworks/models/alert.py:28:9: E122 continuation line missing indentation or outdented
tastyworks/models/alert.py:29:9: E122 continuation line missing indentation or outdented
tastyworks/models/alert.py:30:9: E122 continuation line missing indentation or outdented
tastyworks/models/alert.py:31:9: E122 continuation line missing indentation or outdented
tastyworks/models/alert.py:34:1: W293 blank line contains whitespace
tastyworks/models/alert.py:40:17: E128 continuation line under-indented for visual indent
tastyworks/models/alert.py:41:17: E128 continuation line under-indented for visual indent
tastyworks/models/alert.py:42:17: E128 continuation line under-indented for visual indent
tastyworks/models/alert.py:45:19: W292 no newline at end of file
The command "flake8 tastyworks/" exited with 1.
Problem addressed
There was no cancel order function There was no Positions object Added missing Stop Limit and Stop Market order types
Solution
Created the function
Checklist