feat client.
This commit is contained in:
22
py-client/strategy/zt/runtime.py
Normal file
22
py-client/strategy/zt/runtime.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""做 T 策略的运行期依赖。"""
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
from config import AccountConfig, GlobalConfig
|
||||
from libs.grid_take_profit import GridTrailingTracker
|
||||
from sdk import Client
|
||||
from strategy.trend.order import OrderBook
|
||||
from strategy.trend.watch import DipWatch
|
||||
|
||||
from .state import TState
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class Runtime:
|
||||
client: Client
|
||||
global_cfg: GlobalConfig
|
||||
account_cfg: AccountConfig
|
||||
state: TState
|
||||
orders: OrderBook
|
||||
buy_watch: DipWatch
|
||||
sell_tracker: GridTrailingTracker
|
||||
Reference in New Issue
Block a user