-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,647 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from enum import Enum | ||
|
||
from . import common | ||
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']) |
Oops, something went wrong.