SYMBOL INDEX (180 symbols across 19 files) FILE: abandon/autologon.py function autologon (line 16) | def autologon(target=None): FILE: abandon/autologon_raffle.py function find (line 18) | def find(keyword): FILE: abandon/puppet_tdx.py class Tdx (line 21) | class Tdx: function confirm_popup (line 66) | def confirm_popup(idButton=7015, title='提示'): class Puppet (line 78) | class Puppet: method __init__ (line 84) | def __init__(self, main=None, clsName='TdxW_MainFrame_Class'): method _get_data (line 95) | def _get_data(self, on=1): method order (line 105) | def order(self, symbol, price, qty=0, way='买入'): method buy (line 125) | def buy(self, symbol, price, qty=0): method sell (line 128) | def sell(self, symbol, price=0, qty=0): method cancel (line 131) | def cancel(self, symbol=None, number=None, way='卖出', comfirm=True): method cancelable (line 156) | def cancelable(self): method position (line 161) | def position(self): method balance (line 168) | def balance(self): method deals (line 174) | def deals(self): method new (line 181) | def new(self): method bingo (line 187) | def bingo(self): method _batch (line 196) | def _batch(self): method raffle (line 211) | def raffle(self, skip='', way=True): FILE: abandon/puppet_v0.3.5.py function keystroke (line 23) | def keystroke(hCtrl, keyCode, param=0): # 单击 class unity (line 27) | class unity(): method __init__ (line 30) | def __init__(self, main): method buy (line 65) | def buy(self, symbol, price, qty): # 买入(B) method sell (line 72) | def sell(self, symbol, price, qty): # 卖出(S) method refresh (line 79) | def refresh(self): # 刷新(F5) method cancel_order (line 82) | def cancel_order(self, symbol=''): # 撤单 method cancelAll (line 91) | def cancelAll(self): # 全撤(Z) method cancelBuy (line 94) | def cancelBuy(self): # 撤买(X) method cancelSell (line 97) | def cancelSell(self): # 撤卖(C) method cancelLast (line 100) | def cancelLast(self): # 撤最后一笔,仅限华泰定制版有效 method cancelSame (line 103) | def cancelSame(self): # 撤相同代码,仅限华泰定制版 method balance (line 107) | def balance(self): # 可用余额 method get_data (line 111) | def get_data(self, key='W'): function finder (line 120) | def finder(): function to_dict (line 137) | def to_dict(raw): FILE: abandon/release_puppet_unity_ths.py function keystroke (line 18) | def keystroke(hCtrl, keyCode, param=0): # 击键 function get_data (line 22) | def get_data(): class unity (line 36) | class unity(): method __init__ (line 39) | def __init__(self, hwnd): method buy (line 51) | def buy(self, symbol, price, qty): # 买入(B) method sell (line 57) | def sell(self, *args): # 卖出(S) method refresh (line 63) | def refresh(self): # 刷新(F5) method cancel (line 66) | def cancel(self, way=0): # 撤销下单 method cancelAll (line 69) | def cancelAll(self): # 全撤(Z) method cancelBuy (line 72) | def cancelBuy(self): # 撤买(X) method cancelSell (line 75) | def cancelSell(self): # 撤卖(C) method cancelLast (line 78) | def cancelLast(self): # 撤最后一笔,仅限华泰定制版有效 method cancelSame (line 81) | def cancelSame(self): # 撤相同代码,仅限华泰定制版 method balance (line 85) | def balance(self): # 可用余额 method position (line 89) | def position(self): # 持仓(W) method tradeRecord (line 94) | def tradeRecord(self): # 成交(E) method orderRecord (line 99) | def orderRecord(self): # 委托(R) function finder (line 105) | def finder(register): FILE: abandon/test.py function find (line 18) | def find(keyword='交易系统'): FILE: engine/__init__.py function run (line 16) | def run(baseConf): FILE: engine/broker.py function init_accounts (line 31) | def init_accounts(env): class Broker (line 53) | class Broker(AbstractBroker, Persistable): method __init__ (line 54) | def __init__(self, env): method get_accounts (line 79) | def get_accounts(self): method get_open_orders (line 84) | def get_open_orders(self): method get_state (line 87) | def get_state(self): method set_state (line 90) | def set_state(self, state): method _get_account_for (line 100) | def _get_account_for(self, order_book_id): method submit_order (line 104) | def submit_order(self, order): method cancel_order (line 124) | def cancel_order(self, order): method before_trading (line 143) | def before_trading(self): method after_trading (line 148) | def after_trading(self): method bar (line 157) | def bar(self, bar_dict): method tick (line 162) | def tick(self, tick): method _match (line 169) | def _match(self): FILE: engine/data_source.py class DataSource (line 8) | class DataSource(BaseDataSource): method __init__ (line 9) | def __init__(self, path): method get_tushare_k_data (line 13) | def get_tushare_k_data(instrument, start_dt, end_dt): method get_bar (line 26) | def get_bar(self, instrument, dt, frequency): method history_bars (line 37) | def history_bars(self, instrument, bar_count, frequency, fields, dt, s... method available_data_range (line 55) | def available_data_range(self, frequency): FILE: engine/event_source.py class RealtimeEventSource (line 32) | class RealtimeEventSource(AbstractEventSource): method __init__ (line 34) | def __init__(self, fps): method set_state (line 48) | def set_state(self, state): method get_state (line 53) | def get_state(self): method quotation_worker (line 59) | def quotation_worker(self): method clock_worker (line 73) | def clock_worker(self): method events (line 99) | def events(self, start_date, end_date, frequency): FILE: engine/matcher.py class Matcher (line 26) | class Matcher(object): method __init__ (line 27) | def __init__(self, method update (line 39) | def update(self, calendar_dt, trading_dt, bar_dict): method match (line 45) | def match(self, open_orders): FILE: engine/mod.py class RealtimeTradeMod (line 26) | class RealtimeTradeMod(AbstractMod): method start_up (line 28) | def start_up(self, env, mod_config): method tear_down (line 41) | def tear_down(self, code, exception=None): function load_mod (line 45) | def load_mod(): FILE: engine/utils.py function is_holiday_today (line 31) | def is_holiday_today(): function is_tradetime_now (line 38) | def is_tradetime_now(): function tushare_code_2_order_book_id (line 57) | def tushare_code_2_order_book_id(code): function order_book_id_2_tushare_code (line 69) | def order_book_id_2_tushare_code(order_book_id): function get_realtime_quotes (line 73) | def get_realtime_quotes(code_list, open_only=False): FILE: puppet/client.py function login (line 26) | def login(accinfos): class Ths (line 30) | class Ths: class Account (line 110) | class Account: method __init__ (line 113) | def __init__(self, accinfos=None, enable_heartbeat=True, to_dict=False... method _post_init (line 125) | def _post_init(self): method status (line 148) | def status(self): method login (line 151) | def login(self, account_no: str = '', password: str = '', **kwargs): method exit (line 185) | def exit(self): method fill_and_submit (line 191) | def fill_and_submit(self, *args, delay=0.1, label=''): method accno (line 206) | def accno(self): method trade (line 209) | def trade(self, action: str, *args) -> dict: method buy (line 241) | def buy(self, symbol: str, price, quantity: int) -> dict: method sell (line 244) | def sell(self, symbol: str, price, quantity: int) -> dict: method reverse_repo (line 247) | def reverse_repo(self, symbol: str, price: float, quantity: int, delay... method cancel (line 251) | def cancel(self, symbol: str = None, action: str = 'cancel') -> dict: method purchase_new (line 276) | def purchase_new(self): method fund_purchase (line 295) | def fund_purchase(self, symbol: str, amount: int): method fund_redeem (line 299) | def fund_redeem(self, symbol: str, share: int): method buy_on_margin (line 303) | def buy_on_margin(self, symbol: str, price, quantity: int) -> dict: method sell_for_repayment (line 307) | def sell_for_repayment(self, symbol: str, price, quantity: int) -> dict: method __repr__ (line 313) | def __repr__(self): method bind (line 317) | def bind(self, arg='', dirname: str = '', **kwargs): method visible (line 338) | def visible(self, hwnd=None, times=0): method switch (line 347) | def switch(self, name, delay=0.01): method init (line 356) | def init(self): method export_data (line 383) | def export_data(self, category: str = 'summary') -> dict: method copy_data (line 413) | def copy_data(self, category: str = 'summary'): method get_handle (line 450) | def get_handle(self, action: str): method grab (line 466) | def grab(self, hParent=None): method verify (line 482) | def verify(self, image, ocr=None): method capture (line 502) | def capture(self, root=None, label=''): method answer (line 526) | def answer(self): method refresh (line 537) | def refresh(self): method switch_mkt (line 542) | def switch_mkt(self, symbol: str, handle: int): method switch_way (line 551) | def switch_way(self, index): method if_fund (line 559) | def if_fund(self, symbol, price): method make_heartbeat (line 564) | def make_heartbeat(self, time_interval=1680): method quote (line 591) | def quote(self, codes, df_first=True): method switch_account (line 612) | def switch_account(self, serial_no: int): FILE: puppet/management.py class Manager (line 9) | class Manager: method __init__ (line 11) | def __init__(self, accno: int =None, to_dict=True, keyboard=False): method take (line 16) | def take(self, accno: int): method __getattr__ (line 22) | def __getattr__(self, name: str): FILE: puppet/option.py class Option (line 23) | class Option: method __init__ (line 33) | def __init__(self, keyword: str = '期权宝') -> None: method initial (line 38) | def initial(self, keyword): method switch (line 77) | def switch(self, node: str, delay: int = 0.5): method query (line 90) | def query(self, category: str = 'summary'): method handle_query_popup (line 99) | def handle_query_popup(self, times: int = 9): method export_csv (line 127) | def export_csv(self, category: str) -> str: method normalize (line 142) | def normalize(self, text: str): method buy_open (line 146) | def buy_open(self, symbol, price=None, quantity=None, action='buy_open'): method handle_trading_popup (line 180) | def handle_trading_popup(self, times: int = 9): method split_decl (line 211) | def split_decl(self, strategy_id: int, quantity: int, delay=0.1): FILE: puppet/runner.py function run (line 11) | def run(host='127.0.0.1', port=10086): FILE: puppet/util.py class Msg (line 29) | class Msg: function capture_popup (line 115) | def capture_popup(time_interval=0.5): function normalize (line 131) | def normalize(string: str, to_dict=False): function check_input_mode (line 141) | def check_input_mode(h_edit, text='000001'): function find_one (line 148) | def find_one(keyword='交易系统', visible=True) -> int: function curr_time (line 172) | def curr_time(): function get_today (line 176) | def get_today(): function get_text (line 180) | def get_text(handle=None, h_parent=None, id_child=None, classname: str =... function check_config (line 193) | def check_config(folder=None, encoding='gb18030'): function find_all (line 210) | def find_all(): function find_single_handle (line 231) | def find_single_handle(h_dialog, keyword: str = '', classname='Static') ... function go_to_top (line 250) | def go_to_top(h_root: int, timeout: float = 1.0, interval: float = 0.01): function image_to_string (line 262) | def image_to_string(image, token={ function locate_folder (line 274) | def locate_folder(name='Personal'): function simulate_shortcuts (line 282) | def simulate_shortcuts(key1, key2=None): function click_key (line 298) | def click_key(self, keyCode, param=0): # 单击按键 function get_rect (line 305) | def get_rect(obj_handle): function click_context_menu (line 313) | def click_context_menu(text: str, x: int = 0, y: int = 0, delay: float =... function wait_for_popup (line 322) | def wait_for_popup(root: int, popup_title=None, timeout: float = 3.0, in... function wait_for_view (line 336) | def wait_for_view(handle: int, timeout: float = 3, interval: float = 0.1): function get_child_handle (line 344) | def get_child_handle(h_parent=None, label=None, clsname=None, id_ctrl=No... function click_button (line 366) | def click_button(h_button=None, h_dialog=None, label=None): function fill (line 373) | def fill(text: str, h_edit: int): function export_data (line 380) | def export_data(path: str, root=None, label='另存为', location=False): function switch_combobox (line 408) | def switch_combobox(index: int, handle: int): function run_app (line 416) | def run_app(path: str): FILE: strategies/buy_and_hold.py function init (line 5) | def init(context): function before_trading (line 13) | def before_trading(context): function handle_bar (line 18) | def handle_bar(context, bar_dict):