Skip to content

Commit

Permalink
using lib import instead relative path import in mod
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWang committed Feb 22, 2017
1 parent 79ffa51 commit c728d9b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions rqalpha/mod/progress/__init__.py
Expand Up @@ -16,8 +16,8 @@

import click

from ...interface import AbstractMod
from ...events import Events
from rqalpha.interface import AbstractMod
from rqalpha.events import Events


class ProgressMod(AbstractMod):
Expand Down
6 changes: 3 additions & 3 deletions rqalpha/mod/risk_manager/frontend_validator.py
Expand Up @@ -14,9 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ...const import SIDE, POSITION_EFFECT
from ...utils.i18n import gettext as _
from ...execution_context import ExecutionContext
from rqalpha.const import SIDE, POSITION_EFFECT
from rqalpha.utils.i18n import gettext as _
from rqalpha.execution_context import ExecutionContext


class FrontendValidator(object):
Expand Down
3 changes: 0 additions & 3 deletions rqalpha/mod/simple_stock_realtime_trade/mod.py
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.

from rqalpha.interface import AbstractMod
from rqalpha.utils.logger import system_log
from rqalpha.utils.disk_persist_provider import DiskPersistProvider
from rqalpha.const import RUN_TYPE, PERSIST_MODE

Expand All @@ -26,8 +25,6 @@
class RealtimeTradeMod(AbstractMod):

def start_up(self, env, mod_config):
self._env = env
self._mod_config = mod_config

if env.config.base.run_type == RUN_TYPE.PAPER_TRADING:
env.set_data_source(DataSource(env.config.base.data_bundle_path))
Expand Down
10 changes: 5 additions & 5 deletions rqalpha/mod/simulation/matcher.py
Expand Up @@ -16,11 +16,11 @@

from collections import defaultdict

from ...utils.i18n import gettext as _
from ...const import ORDER_TYPE, SIDE, BAR_STATUS
from ...model.trade import Trade
from ...environment import Environment
from ...events import Events
from rqalpha.utils.i18n import gettext as _
from rqalpha.const import ORDER_TYPE, SIDE, BAR_STATUS
from rqalpha.model.trade import Trade
from rqalpha.environment import Environment
from rqalpha.events import Events


class Matcher(object):
Expand Down
1 change: 1 addition & 0 deletions rqalpha/mod/simulation/mod.py
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

from rqalpha.interface import AbstractMod

from .simulation_broker import SimulationBroker
from .simulation_event_source import SimulationEventSource

Expand Down
1 change: 1 addition & 0 deletions rqalpha/mod/simulation/simulation_broker.py
Expand Up @@ -24,6 +24,7 @@
from rqalpha.trader.account.benchmark_account import BenchmarkAccount
from rqalpha.const import ACCOUNT_TYPE
from rqalpha.environment import Environment

from .stock_account import StockAccount
from .future_account import FutureAccount
from .matcher import Matcher
Expand Down

0 comments on commit c728d9b

Please sign in to comment.