Add a new exchange subpackage

basic_orders
Tyler Goodlet 2021-02-22 17:28:34 -05:00
parent 1142a538ea
commit a9bbc223bb
5 changed files with 27 additions and 7 deletions

View File

@ -0,0 +1,20 @@
# piker: trading gear for hackers
# Copyright (C) Tyler Goodlet (in stewardship for piker0)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# 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/>.
"""
Market machinery for order executions, book, management.
"""

View File

@ -33,10 +33,10 @@ import trio
from trio_typing import TaskStatus
import tractor
from . import data
from .log import get_logger
from .data._source import Symbol
from .data._normalize import iterticks
from .. import data
from ..log import get_logger
from ..data._source import Symbol
from ..data._normalize import iterticks
log = get_logger(__name__)

View File

@ -62,7 +62,7 @@ from ..log import get_logger
from ._exec import run_qtractor, current_screen
from ._interaction import ChartView, open_order_mode
from .. import fsp
from .._ems import open_ems
from ..exchange._ems import open_ems
log = get_logger(__name__)

View File

@ -33,7 +33,7 @@ import numpy as np
from ..log import get_logger
from ._style import _min_points_to_show, hcolor, _font
from ._graphics._lines import order_line, LevelLine
from .._ems import OrderBook
from ..exchange._ems import OrderBook
from ..data._source import Symbol

View File

@ -149,6 +149,6 @@ def chart(config, symbol, profile):
tractor_kwargs={
'debug_mode': True,
'loglevel': tractorloglevel,
'rpc_module_paths': ['piker._ems'],
'enable_modules': ['piker.exchange._ems'],
},
)