Make broker mod import from new api mod

notokeninwswrapper
Tyler Goodlet 2022-06-29 13:25:47 -04:00
parent 208e2e9e97
commit f87a2a810a
1 changed files with 8 additions and 7 deletions

View File

@ -13,6 +13,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
Order api and machinery
@ -33,7 +34,13 @@ import trio
import tractor
import wsproto
from . import (
from piker.clearing._paper_engine import PaperBoi
from piker.clearing._messages import (
BrokerdPosition, BrokerdOrder, BrokerdStatus,
BrokerdOrderAck, BrokerdError, BrokerdCancel,
BrokerdFill,
)
from .api import (
Client,
BrokerError,
get_client,
@ -44,12 +51,6 @@ from . import (
NoBsWs,
stream_messages,
)
from ..clearing._paper_engine import PaperBoi
from ..clearing._messages import (
BrokerdPosition, BrokerdOrder, BrokerdStatus,
BrokerdOrderAck, BrokerdError, BrokerdCancel,
BrokerdFill,
)
class Trade(BaseModel):