Make broker mod import from new api mod
parent
208e2e9e97
commit
f87a2a810a
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue