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 # 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/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
''' '''
Order api and machinery Order api and machinery
@ -33,7 +34,13 @@ import trio
import tractor import tractor
import wsproto 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, Client,
BrokerError, BrokerError,
get_client, get_client,
@ -44,12 +51,6 @@ from . import (
NoBsWs, NoBsWs,
stream_messages, stream_messages,
) )
from ..clearing._paper_engine import PaperBoi
from ..clearing._messages import (
BrokerdPosition, BrokerdOrder, BrokerdStatus,
BrokerdOrderAck, BrokerdError, BrokerdCancel,
BrokerdFill,
)
class Trade(BaseModel): class Trade(BaseModel):