Skip to content

Commit

Permalink
remove copied EquityOrderBuilder warnings (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgolec authored Jun 13, 2024
1 parent c64856b commit 0bad074
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions schwab/orders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,3 @@
from . import equities
from . import generic
from . import options

import sys
assert sys.version_info[0] >= 3

__error_message = (
'EquityOrderBuilder has been deleted from the library. Please use ' +
'OrderBuilder and its associated templates instead. See here for ' +
'details: https://tda-api.readthedocs.io/en/latest/' +
'order-templates.html#what-happened-to-equityorderbuilder')

if sys.version_info[1] >= 7:
def __getattr__(name):
if name == 'EquityOrderBuilder':
raise ImportError(__error_message)
raise AttributeError(name)
else: # pragma: no cover
class EquityOrderBuilder:
def __init__(self, *args, **kwargs):
raise NotImplementedError(globals()['__error_message'])

0 comments on commit 0bad074

Please sign in to comment.