SYMBOL INDEX (1027 symbols across 124 files) FILE: StockAnalyze.py function volume_calculation (line 19) | def volume_calculation(code, start, end): function today_statistics (line 43) | def today_statistics(today): function zt_location (line 70) | def zt_location(date): function show_percentage (line 97) | def show_percentage(price): function stock_profit (line 111) | def stock_profit(code, start, end): function exclude_kcb (line 137) | def exclude_kcb(df): function plot_percent_distribution (line 147) | def plot_percent_distribution(date): function year_price_change (line 181) | def year_price_change(year,ignore_new_stock=False): function stock_analysis (line 213) | def stock_analysis(filename): function cb_stock_year (line 229) | def cb_stock_year(): function main (line 242) | def main(): FILE: analysis/daily_zt_report.py function get_zt_info (line 21) | def get_zt_info(obj, now): function send_zt_report (line 52) | def send_zt_report(today=None): FILE: analysis/diagnose_stock.py class StockDoctor (line 20) | class StockDoctor(BaseService, StockBase): method __init__ (line 22) | def __init__(self): method check_blacklist (line 31) | def check_blacklist(self, code): method north_east (line 42) | def north_east(self, code): method get_code (line 53) | def get_code(self, name): method diagnose (line 59) | def diagnose(self, code): function main (line 76) | def main(): FILE: analysis/fd_money.py class FDPlot (line 13) | class FDPlot: method __init__ (line 15) | def __init__(self): method fetch_data (line 20) | def fetch_data(self): method plot (line 38) | def plot(self): FILE: analysis/filterstock.py class FilterStock (line 25) | class FilterStock(): method __init__ (line 27) | def __init__(self): method change_work_dir (line 34) | def change_work_dir(self): method get_location (line 42) | def get_location(self): method get_ST (line 48) | def get_ST(self): method get_achievement (line 56) | def get_achievement(self): method daily_market (line 60) | def daily_market(self): method break_low (line 73) | def break_low(self, date): method get_lowest (line 104) | def get_lowest(self, code, date, current_date): method get_highest (line 128) | def get_highest(self, code, date): method save_to_excel (line 140) | def save_to_excel(self, df, filename, encoding='gbk'): method store_data (line 152) | def store_data(self): method to_be_ST (line 175) | def to_be_ST(self): method get_new_stock (line 197) | def get_new_stock(self, start='2010', end='2011'): method plot_new_stock_distibution (line 211) | def plot_new_stock_distibution(self, df, start, end): method rect_show (line 224) | def rect_show(self, rects): method show (line 230) | def show(self): method get_blacklist (line 235) | def get_blacklist(self): class Filter_CB (line 245) | class Filter_CB(object): method __init__ (line 247) | def __init__(self): method get_new_stock_bond (line 252) | def get_new_stock_bond(self, start='2017', end='2019'): method show (line 269) | def show(self): method run (line 273) | def run(self): function main (line 288) | def main(): FILE: analysis/fupan.py class IndustryFupan (line 27) | class IndustryFupan: method __init__ (line 32) | def __init__(self): method save_industry (line 36) | def save_industry(self): function hot_industry (line 58) | def hot_industry(): function get_industry (line 102) | def get_industry(): function daily_hot_industry (line 110) | def daily_hot_industry(): function industry_hot_mongo (line 132) | def industry_hot_mongo(): function industry_detail (line 147) | def industry_detail(kind): FILE: analysis/get_break_high_low.py class BreakPoint (line 21) | class BreakPoint(object): method __init__ (line 23) | def __init__(self): method loop_stocks (line 35) | def loop_stocks(self, day): method code_convert (line 44) | def code_convert(self, code): method is_break (line 50) | def is_break(self, stockID, day, stock_type): FILE: analysis/ipospeed.py class IPOSpeed (line 18) | class IPOSpeed(): method __init__ (line 20) | def __init__(self): method comparation (line 29) | def comparation(self): method draw (line 60) | def draw(self): function main (line 100) | def main(): FILE: analysis/jucao_annnounce_parse.py class PDFParseproducer (line 18) | class PDFParseproducer(Thread): method __init__ (line 20) | def __init__(self, q,date=None): method gen_date_list (line 30) | def gen_date_list(self): method run (line 39) | def run(self): class JuCaoParser (line 67) | class JuCaoParser(BaseService, Thread): method __init__ (line 69) | def __init__(self, q): method run (line 79) | def run(self): method headers (line 112) | def headers(self): function main (line 119) | def main(): FILE: backtest/backtrader-course-lession1.py class TestStrategy (line 12) | class TestStrategy(bt.Strategy): method log (line 14) | def log(self, txt, dt=None): method __init__ (line 19) | def __init__(self): method notify_order (line 27) | def notify_order(self, order): method log (line 48) | def log(self,txt,dt=None): method next (line 55) | def next(self): function main (line 92) | def main(): FILE: backtest/dataframe-feed.py function convert_time (line 12) | def convert_time(x): function runstrat (line 15) | def runstrat(): function parse_args (line 59) | def parse_args(): FILE: backtest/examle1/sma-demo.py class TestStrategy (line 9) | class TestStrategy(bt.Strategy): method log (line 14) | def log(self, txt, dt=None, doprint=False): method __init__ (line 20) | def __init__(self): method notify_order (line 39) | def notify_order(self, order): method notify_trade (line 64) | def notify_trade(self, trade): method next (line 78) | def next(self): method stop (line 98) | def stop(self): FILE: backtest/ma_line_backtest.py class MyStrategy (line 6) | class MyStrategy(bt.Strategy): method __init__ (line 7) | def __init__(self): method next (line 12) | def next(self): FILE: common/BaseService.py class BaseService (line 13) | class BaseService(object): method __init__ (line 15) | def __init__(self, logfile='default.log'): method init_const_data (line 23) | def init_const_data(self): method check_path (line 29) | def check_path(self, path): method get_url_filename (line 36) | def get_url_filename(self, url): method save_iamge (line 39) | def save_iamge(self, content, path): method get (line 43) | def get(self, url, _json=False, binary=False, retry=5): method post (line 72) | def post(self, url, post_data, _json=False, binary=False, retry=5): method headers (line 101) | def headers(self): method parse (line 104) | def parse(self, content): method process (line 112) | def process(self, data, history=False): method time_str (line 118) | def time_str(self, x): method trading_time (line 121) | def trading_time(self): method notify (line 153) | def notify(self, title): method weekday (line 156) | def weekday(self, day=datetime.datetime.now().strftime('%Y-%m-%d')): method is_weekday (line 171) | def is_weekday(self, day=datetime.datetime.now().strftime('%Y-%m-%d')): method execute (line 177) | def execute(self, cmd, data, conn, logger=None): method jsonp2json (line 195) | def jsonp2json(self, str_): method set_proxy_param (line 198) | def set_proxy_param(self, proxy): method get_proxy (line 201) | def get_proxy(self, retry=10): method convert_timestamp (line 229) | def convert_timestamp(self, t): class HistorySet (line 233) | class HistorySet(object): method __init__ (line 235) | def __init__(self, expire=1800): method add (line 239) | def add(self, value): method is_expire (line 249) | def is_expire(self, value): FILE: common/SecurityBase.py class StockBase (line 8) | class StockBase: method __init__ (line 10) | def __init__(self): method valid_code (line 13) | def valid_code(self,code): FILE: common/TushareUtil.py class TushareBaseUtil (line 14) | class TushareBaseUtil: method __init__ (line 19) | def __init__(self): method get_trade_date (line 25) | def get_trade_date(self, start_date=None, end_date=datetime.now().strf... method date_convertor (line 38) | def date_convertor(self, s): method get_last_trade_date (line 41) | def get_last_trade_date(self): method get_last_week_trade_date (line 44) | def get_last_week_trade_date(self): method clear_cache (line 47) | def clear_cache(self): function main (line 51) | def main(): FILE: common/aes.py class AESDecrypt (line 11) | class AESDecrypt: method set_key (line 13) | def set_key(self,key): method add_to_16 (line 17) | def add_to_16(self, text): method decode_base64 (line 22) | def decode_base64(self, data): method decrypt (line 28) | def decrypt(self, encrypt_data): FILE: common/pdf_convertor.py function pdf_convert_txt (line 9) | def pdf_convert_txt(filename): FILE: datahub/A_stock_daily_info.py class AStockDailyInfo (line 14) | class AStockDailyInfo(): method __init__ (line 16) | def __init__(self): method run (line 21) | def run(self): function main (line 30) | def main(): FILE: datahub/SPSIOP_PRICE.py class SPSIOP (line 34) | class SPSIOP(BaseService): method __init__ (line 36) | def __init__(self): method predict_price (line 39) | def predict_price(self): method qdii_info (line 68) | def qdii_info(self): function main (line 103) | def main(): FILE: datahub/basic_market_info.py class BasicMarket (line 17) | class BasicMarket(BaseService): method __init__ (line 19) | def __init__(self): method get_basic_info (line 27) | def get_basic_info(self, retry=5): function main (line 64) | def main(): FILE: datahub/black_list_sql.py function create_tb (line 15) | def create_tb(conn): function update_data (line 28) | def update_data(filename, conn): function get_name_number (line 54) | def get_name_number(): function main (line 80) | def main(): FILE: datahub/bond_industry_info.py class BondIndustry (line 25) | class BondIndustry: method __init__ (line 27) | def __init__(self): method run (line 30) | def run(self): method get_session (line 39) | def get_session(self): method get_bond_info (line 42) | def get_bond_info(self, session, industry_id): method parse_data (line 74) | def parse_data(self, data): method parse_selection_id (line 77) | def parse_selection_id(self): function main (line 93) | def main(): FILE: datahub/daily_stock_market_info.py class FetchDaily (line 21) | class FetchDaily(BaseService): method __init__ (line 22) | def __init__(self): method transfer_db (line 32) | def transfer_db(self,df): method get_today_market (line 40) | def get_today_market(self, re_try=10): method run (line 58) | def run(self): function main (line 91) | def main(): FILE: datahub/dfcf_hot_block.py function get_ut_value (line 31) | def get_ut_value(): function stock_zt_pool_em (line 48) | def stock_zt_pool_em(date: str = "20241008") -> pd.DataFrame: function stock_zt_pool_strong_em (line 135) | def stock_zt_pool_strong_em(date: str = "20241231") -> pd.DataFrame: function stock_zt_pool_zbgc_em (line 224) | def stock_zt_pool_zbgc_em(date: str = "20241011") -> pd.DataFrame: function stock_zt_pool_dtgc_em (line 306) | def stock_zt_pool_dtgc_em(date: str = "20241011") -> pd.DataFrame: function stock_zt_pool_previous_em (line 392) | def stock_zt_pool_previous_em(date: str = "20240415") -> pd.DataFrame: function data_dump (line 469) | def data_dump(df, table_name): function main (line 480) | def main(): FILE: datahub/foreignexchange.py class ForeighExchange (line 17) | class ForeighExchange(BaseService): method __init__ (line 19) | def __init__(self): method headers (line 26) | def headers(self): method run (line 29) | def run(self): method start (line 41) | def start(self): method fetch_web (line 52) | def fetch_web(self): function main (line 68) | def main(): FILE: datahub/industry_info/ths_industry_cralwer_top.py function update_cookies (line 25) | def update_cookies(): function crawl (line 36) | def crawl(url, is_detail=False): function parser (line 53) | def parser(html): function parse_detail (line 90) | def parse_detail(html, industry_code): function _parse_detail (line 112) | def _parse_detail(html, industry_code): function get_total_page (line 150) | def get_total_page(html): function dumpData (line 164) | def dumpData(data): function main (line 172) | def main(): FILE: datahub/industry_info/ths_industry_detail.py function get_total_page (line 15) | def get_total_page(html): function read_cookies (line 29) | def read_cookies(): function get_headers (line 40) | def get_headers(): function crawl (line 65) | def crawl(url): function get_crawl_list (line 92) | def get_crawl_list(): function _parse_detail (line 102) | def _parse_detail(html, industry_code): function process_detail (line 138) | def process_detail(industry_code): function main (line 164) | def main(): FILE: datahub/industry_info/ths_industry_list.py function get_headers (line 22) | def get_headers(): function read_cookies (line 41) | def read_cookies(): function crawl (line 51) | def crawl(url): function parser (line 63) | def parser(html): function main (line 102) | def main(): FILE: datahub/jisilu.py class Jisilu (line 22) | class Jisilu(BaseService): method __init__ (line 23) | def __init__(self, check_holiday=False, remote='qq'): method headers (line 39) | def headers(self): method check_holiday (line 52) | def check_holiday(self): method get_session (line 59) | def get_session(self): method download (line 62) | def download(self, url, data, retry=5): method daily_update (line 78) | def daily_update(self, adjust_no_use=True): method identify_margin (line 108) | def identify_margin(self,x): method data_parse (line 114) | def data_parse(self, bond_list, adjust_no_use): method update_daily_report (line 182) | def update_daily_report(self,df): method to_excel (line 214) | def to_excel(self, df): method store_mysql (line 220) | def store_mysql(self, df): method init_release_table (line 239) | def init_release_table(self, conn): method get_conn (line 259) | def get_conn(self): method release_data (line 263) | def release_data(self): method save_release_data (line 277) | def save_release_data(self, rows, conn): method check_update (line 311) | def check_update(self, bond_id, conn): method update_release_data (line 315) | def update_release_data(self, update_data, conn): method insert_release_data (line 321) | def insert_release_data(self, data, conn): method check_bond_exist (line 326) | def check_bond_exist(self, bond_id, conn): method execute (line 333) | def execute(self, cmd, data, conn): method convert_float (line 349) | def convert_float(self, x): function main (line 368) | def main(): FILE: datahub/jisilu_bond_announcement.py class Announcement (line 17) | class Announcement: method __init__ (line 19) | def __init__(self, kw): method bond_info (line 35) | def bond_info(self): method crawl (line 39) | def crawl(self, code): method parse (line 52) | def parse(self, content): method run (line 65) | def run(self): method persistence (line 80) | def persistence(self): method update_only (line 103) | def update_only(self): function main (line 142) | def main(): FILE: datahub/js_file/encode_jsl.js function F (line 3) | function F() {} function parseLoop (line 300) | function parseLoop(base64Str, base64StrLength, reverseMap) { function FF (line 452) | function FF(a, b, c, d, x, s, t) { function GG (line 456) | function GG(a, b, c, d, x, s, t) { function HH (line 460) | function HH(a, b, c, d, x, s, t) { function II (line 464) | function II(a, b, c, d, x, s, t) { function isPrime (line 552) | function isPrime(n) { function getFractionalBits (line 561) | function getFractionalBits(n) { function swapEndian (line 692) | function swapEndian(word) { function f1 (line 846) | function f1(x, y, z) { function f2 (line 849) | function f2(x, y, z) { function f3 (line 852) | function f3(x, y, z) { function f4 (line 855) | function f4(x, y, z) { function f5 (line 858) | function f5(x, y, z) { function rotl (line 861) | function rotl(x, n) { function X64Word_create (line 1256) | function X64Word_create() { function selectCipherStrategy (line 1486) | function selectCipherStrategy(key) { function xorBlock (line 1546) | function xorBlock(words, offset, blockSize) { function generateKeystreamAndEncrypt (line 1744) | function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) { function exchangeLR (line 2590) | function exchangeLR(offset, mask) { function exchangeRL (line 2595) | function exchangeRL(offset, mask) { function generateKeystreamWord (line 2655) | function generateKeystreamWord() { function incWord (line 2688) | function incWord(word) { function incCounter (line 2717) | function incCounter(counter) { function nextState (line 2804) | function nextState() { function nextState (line 2918) | function nextState() { function jslencode (line 2969) | function jslencode(text, aes_key) { FILE: datahub/jsl_login.py function decoder (line 35) | def decoder(text): function get_bond_info (line 46) | def get_bond_info(session): function login (line 79) | def login(user, password): function main (line 107) | def main(): FILE: datahub/jucao_announcement.py class JuCaoAnnouncement (line 15) | class JuCaoAnnouncement(BaseService): method __init__ (line 17) | def __init__(self,param=None): method gen_date_param (line 64) | def gen_date_param(self): method headers (line 81) | def headers(self): method start (line 96) | def start(self): method ignore_str_list (line 102) | def ignore_str_list(self): method fetch_all_page_data (line 111) | def fetch_all_page_data(self,pages): method single_page_analysis (line 116) | def single_page_analysis(self,i): method batch_mongodb (line 137) | def batch_mongodb(self,announce_data): method parse_item (line 146) | def parse_item(self,js_data): method get_total_page (line 174) | def get_total_page(self): function main (line 185) | def main(): FILE: datahub/jucao_reits_notice.py class SHTradingAnnounce (line 15) | class SHTradingAnnounce: method __init__ (line 17) | def __init__(self): method _crawl (line 20) | def _crawl(self, kw, page): method parse (line 71) | def parse(self): method total_count (line 74) | def total_count(self): method insert_item (line 77) | def insert_item(self, doc): method filter_unname_char (line 85) | def filter_unname_char(self,name): method download_pdf (line 89) | def download_pdf(self): method dumpmongo (line 116) | def dumpmongo(self, announce_list): method run (line 125) | def run(self): FILE: datahub/ninwen.py class NinwenSpider (line 25) | class NinwenSpider(): method __init__ (line 27) | def __init__(self): method headers (line 35) | def headers(self): method json_headers (line 51) | def json_headers(self): method get_image (line 65) | def get_image(self): method convert (line 75) | def convert(self, float_str): method login (line 82) | def login(self, code, csrf): method get_csrf_token (line 99) | def get_csrf_token(self): method get_bond_data (line 108) | def get_bond_data(self): method visit_page (line 119) | def visit_page(self, url, _headers=None): method columns_name (line 127) | def columns_name(self): method patch_fix (line 180) | def patch_fix(self, name, v, node): method parse (line 185) | def parse(self, content): method dump_excel (line 204) | def dump_excel(self, bond_info_list): method image_recognize (line 208) | def image_recognize(self, img): method check_name (line 224) | def check_name(self, csrf_token): method check_cookies (line 230) | def check_cookies(self, csrf, code): method run (line 235) | def run(self): FILE: datahub/public_private_fund_members.py class FundMembers (line 15) | class FundMembers(BaseService): method __init__ (line 17) | def __init__(self, kind, date, first_use=False): method crawl_lof (line 44) | def crawl_lof(self): method headers (line 53) | def headers(self): method process_lof (line 64) | def process_lof(self, js_data): method post (line 79) | def post(self, url, post_data, _josn=False, binary=False, retry=5): method crawl_etf (line 82) | def crawl_etf(self): method process_etf (line 101) | def process_etf(self, js_data): method run (line 115) | def run(self): method process_model (line 125) | def process_model(self, code, name, date, share, type_): FILE: datahub/store_news.py function create_tb (line 18) | def create_tb(): function save_sql (line 31) | def save_sql(): FILE: datahub/ttjj_new_stock.py function parse_json (line 23) | def parse_json(content): function Aupdate_data (line 29) | async def Aupdate_data(data): function update_data (line 36) | def update_data(data): function fetch (line 44) | async def fetch(session,page): function main (line 71) | async def main(): FILE: datahub/xueqiu_group.py function main (line 10) | def main(): FILE: datahub/xueqiu_sync_portfolio.py function trade_record (line 19) | def trade_record(cookie, data): function history_trade (line 56) | def history_trade(se, cookie, tableid): function main (line 81) | def main(): FILE: datahub/yanbao_crawl.py function main (line 7) | def main(): FILE: datahub/zdt.py class GetZDT (line 23) | class GetZDT(BaseService): method __init__ (line 25) | def __init__(self, today=None): method download (line 61) | def download(self, url, headers, retry=5): method convert_json (line 82) | def convert_json(self, content): method convert_dataframe (line 104) | def convert_dataframe(self, data, index, choice, post_fix): method today_zt (line 122) | def today_zt(self, df, post_fix, engine): method yesterday_zt (line 134) | def yesterday_zt(self, df, post_fix, engine): method generate_html (line 155) | def generate_html(self,df): method run (line 171) | def run(self): FILE: fund/ETFShareDetection.py function main (line 6) | def main(): FILE: fund/ETF_Finder.py class ETFFinder (line 19) | class ETFFinder(SQLHelper): method __init__ (line 21) | def __init__(self, date=None): method range_increment (line 35) | def range_increment(self): method query_data (line 43) | def query_data(self, code, count): method count (line 51) | def count(self, code): method high_low_count (line 56) | def high_low_count(self): method _low_high_process (line 73) | def _low_high_process(self, code, day): method update_result (line 90) | def update_result(self,data): method latest (line 93) | def latest(self, code): method is_low_high (line 102) | def is_low_high(self, code, day): method ma_line_up_factor (line 118) | def ma_line_up_factor(self, code, ret_data): method long_bottom_factor (line 136) | def long_bottom_factor(self, code, ret_data): method long_bottom_down (line 149) | def long_bottom_down(self, code): method get_increment (line 157) | def get_increment(self): function main (line 166) | def main(opt=None, date=None): FILE: fund/JJTool.py class TTFund (line 19) | class TTFund(BaseService): method __init__ (line 21) | def __init__(self, key='股票'): method headers (line 37) | def headers(self): method rank (line 52) | def rank(self): method category_rank (line 59) | def category_rank(self, key, time_interval): method save_data (line 78) | def save_data(self, rank_list): method parseMethod (line 85) | def parseMethod(self,jquery_data): method parse (line 90) | def parse(self, content): method key_remap (line 95) | def key_remap(self, rank_data, type_): method turnover_rate (line 116) | def turnover_rate(self): method is_crawl (line 131) | def is_crawl(self, db, code): method __turnover_rate (line 134) | def __turnover_rate(self, code): method get_turnover_db (line 140) | def get_turnover_db(self): method __parse_turnover_data (line 143) | def __parse_turnover_data(self, jquery_data, code): method fund_detail (line 153) | def fund_detail(self, db,code): method parse_detail_info (line 189) | def parse_detail_info(self,content): method update_basic_info (line 200) | def update_basic_info(self): method get_basic_db (line 203) | def get_basic_db(self): method basic_info (line 206) | def basic_info(self): function main (line 221) | def main(kind, option): function debug (line 241) | def debug(): FILE: fund/LOFShareDetection.py function main (line 7) | def main(): FILE: fund/LOF_Model.py class FundBaseInfoModel (line 13) | class FundBaseInfoModel(Base): method __str__ (line 29) | def __str__(self): class ShareModel (line 33) | class ShareModel(Base): FILE: fund/LOF_arbitrage.py class LOF_arbitrage (line 19) | class LOF_arbitrage: method __init__ (line 20) | def __init__(self, save): method update_premiun (line 25) | def update_premiun(self): method get_realtime_time (line 38) | def get_realtime_time(self): method dump_mongodb (line 64) | def dump_mongodb(self, data): method fund_detail (line 76) | def fund_detail(self, code): method parse (line 102) | def parse(self, content): method postfix (line 134) | def postfix(self, code): method get_page (line 140) | def get_page(self, p): method run (line 155) | def run(self): function main (line 194) | def main(save=False): FILE: fund/ShareDetection.py class FundDetection (line 26) | class FundDetection(BaseService): method __init__ (line 28) | def __init__(self): method get_engine (line 36) | def get_engine(): method create_table (line 39) | def create_table(self): method get_session (line 43) | def get_session(self): method lof_start (line 46) | def lof_start(self): method etf_start (line 58) | def etf_start(self): method query_big_volatility_share (line 70) | def query_big_volatility_share(self, category): method formator (line 138) | def formator(*args): FILE: fund/ark_funds.py class ARKFundSpider (line 14) | class ARKFundSpider(BaseService): method __init__ (line 16) | def __init__(self): method mongodb (line 23) | def mongodb(self): method headers (line 32) | def headers(self): method get_content (line 46) | def get_content(self, fund_name): method parse (line 55) | def parse(self, content,types): method save_data (line 90) | def save_data(self,date_list): method get_fund_holding (line 101) | def get_fund_holding(self,fund_name = 'ARKK'): method start (line 109) | def start(self): FILE: fund/closed_end_fund.py class CloseEndFundCls (line 19) | class CloseEndFundCls(BaseService): method __init__ (line 21) | def __init__(self): method headers (line 31) | def headers(self): method crawl (line 36) | def crawl(self): method save_mongo (line 56) | def save_mongo(self, row_list): method run (line 65) | def run(self): function main (line 79) | def main(): FILE: fund/closed_end_fund_backtrade/backtrade_fund_weekly_share_increment.py class Runner (line 7) | class Runner: method __init__ (line 9) | def __init__(self, opt): method fetch (line 17) | def fetch(self): method other (line 20) | def other(self): method position_intialize (line 23) | def position_intialize(self): method get_max_withdraw (line 41) | def get_max_withdraw(self,indexs): method daily_netvalue (line 59) | def daily_netvalue(self,df_copy,i,profit,date): method backtrade (line 74) | def backtrade(self): method evaluate (line 141) | def evaluate(self): method each_fund_profit (line 154) | def each_fund_profit(self,row): method compare_all_market (line 162) | def compare_all_market(self): method run (line 179) | def run(self): FILE: fund/closed_end_fund_backtrade/fund_data_source.py class DataSource (line 11) | class DataSource(): method __init__ (line 13) | def __init__(self): method get_fund_code (line 16) | def get_fund_code(self): method get_fund_code_local (line 22) | def get_fund_code_local(self): method get_data (line 31) | def get_data(self,source): method df_into_csv (line 38) | def df_into_csv(self,df): method all_market_data (line 44) | def all_market_data(self,source='local'): method df_into_mongo (line 62) | def df_into_mongo(self, df): method get_net_value (line 70) | def get_net_value(self,code): method get_closed_fund_netvalue (line 77) | def get_closed_fund_netvalue(self,code): method get_data_from_mongo (line 81) | def get_data_from_mongo(self): method get_data_from_ak (line 93) | def get_data_from_ak(self): FILE: fund/closed_end_fund_backtrade/main.py function main (line 7) | def main(func): FILE: fund/danjuan_fund.py class Danjuan (line 11) | class Danjuan(BaseService): method __init__ (line 13) | def __init__(self) -> None: method mongo_init (line 33) | def mongo_init(self): method headers (line 40) | def headers(self): method crawl (line 43) | def crawl(self, page): method parse (line 50) | def parse(self, content): method save_data (line 53) | def save_data(self, data_list): method get_plan_code (line 61) | def get_plan_code(self): method code_list (line 71) | def code_list(self): method update_data (line 74) | def update_data(self, condition, data): method plan_detail (line 83) | def plan_detail(self): method post_process (line 96) | def post_process(self, detail_info): method get_holding_fund_detail (line 112) | def get_holding_fund_detail(self): method run (line 127) | def run(self): FILE: fund/danjuan_fund_data_analysis.py class DanjuanAnalyser (line 17) | class DanjuanAnalyser(BaseService): method __init__ (line 19) | def __init__(self): method select_collection (line 23) | def select_collection(self,current_date): method get_top_plan (line 32) | def get_top_plan(self,collection,top=10): method get_top_plan_percent (line 45) | def get_top_plan_percent(self,collection,top=10): method start (line 57) | def start(self): method simple_display (line 90) | def simple_display(self,data,date): method pretty (line 98) | def pretty(self,fund_dict,date,kind): method new_fund (line 103) | def new_fund(self,new_fund_dict,old_fund_dict): method clear_warehouse_fund (line 109) | def clear_warehouse_fund(self,collection,top): function main (line 128) | def main(): FILE: fund/etf_info.py class Fund (line 26) | class Fund(BaseService): method __init__ (line 28) | def __init__(self, first_use=False): method get_engine (line 33) | def get_engine(self): method create_table (line 36) | def create_table(self): method get_session (line 40) | def get_session(self): method get (line 43) | def get(self, url, retry=5, js=True): class IndexSpider (line 66) | class IndexSpider(Fund): method __init__ (line 68) | def __init__(self, first_use=False): method basic_info (line 78) | def basic_info(self): method etf_detail_with_product_inuse (line 134) | def etf_detail_with_product_inuse(self): method full_market (line 151) | def full_market(self): method download_excel_file (line 211) | def download_excel_file(self, sess, code, name): method get_qz_page (line 216) | def get_qz_page(self, sess, code): method parse_qz_data (line 226) | def parse_qz_data(self, resp, code, name): method more_etf_product (line 259) | def more_etf_product(self,resp): method etf_product_list (line 264) | def etf_product_list(self, resp_selector): method store_product_list (line 274) | def store_product_list(self, code, name, products): method etf_detail_constituent_stock (line 280) | def etf_detail_constituent_stock(self, sess, code, name): method store_data (line 303) | def store_data(self, detail_data_json, collection_name, key=''): FILE: fund/etf_models.py class IndexObject (line 13) | class IndexObject(Base): class IndexObjectNew (line 31) | class IndexObjectNew(Base): class IndexObjectSZ (line 55) | class IndexObjectSZ(Base): FILE: fund/etf_range_increment.py class ETFBase (line 20) | class ETFBase(SQLHelper): method __init__ (line 22) | def __init__(self): class ETFDataCrawler (line 36) | class ETFDataCrawler(ETFBase): method __init__ (line 38) | def __init__(self, history_data): method history_data_all (line 42) | def history_data_all(self): method update_current_data (line 54) | def update_current_data(self): method _update_current_data (line 66) | def _update_current_data(self, code, date, open, high, low, close, vol... method update_index (line 73) | def update_index(self): method fix (line 80) | def fix(self): method run (line 90) | def run(self): function main (line 99) | def main(history_data=False): FILE: fund/fund_annouce.py class FundAnnouce (line 16) | class FundAnnouce(BaseService): method __init__ (line 18) | def __init__(self): method headers (line 25) | def headers(self): method get_page (line 42) | def get_page(self): method run (line 48) | def run(self): method parse (line 58) | def parse(self, content): function main (line 62) | def main(): FILE: fund/fund_holding_list_gen_dynamic_flourish.py function get_df (line 10) | def get_df(): function weight (line 16) | def weight(df): function scale (line 24) | def scale(df): function main (line 30) | def main(): FILE: fund/fund_holding_person.py function get_mongo_doc (line 13) | def get_mongo_doc(): function get_mongo_target_doc (line 22) | def get_mongo_target_doc(): function insert_one (line 32) | def insert_one(doc,data): function get_basic_info (line 39) | def get_basic_info(): function find_top_holding_stock (line 51) | def find_top_holding_stock(code): function latest_holding (line 61) | def latest_holding(code): function get_fund_code (line 79) | def get_fund_code(): function run (line 103) | def run(): FILE: fund/fund_info_spider.py class TencentFundSpider (line 40) | class TencentFundSpider(BaseService): method __init__ (line 42) | def __init__(self): method headers (line 51) | def headers(self): method create_table (line 64) | def create_table(self): method crawl_fund_info_by_code_table (line 77) | def crawl_fund_info_by_code_table(self): method get_fund_code (line 82) | def get_fund_code(self, valid=True): method convert (line 93) | def convert(self, float_str): method insert_data (line 101) | def insert_data(self, jjdm, jjjc, zxgm, zxjg, jgzffd, cj_total_amount,... method check_exist (line 127) | def check_exist(self, code): method get (line 133) | def get(self, url, params, retry=5, js=False): method crawl (line 155) | def crawl(self): method get_info_by_code (line 196) | def get_info_by_code(self, code): method parse_content_and_save (line 216) | def parse_content_and_save(self, content): method parse_html (line 223) | def parse_html(self, content): method change_table_field (line 253) | def change_table_field(self, table): method get_fund_info (line 259) | def get_fund_info(self, table): method udpate_db (line 263) | def udpate_db(self, table, jz, yjl, is_realtime, code): method update_netvalue (line 267) | def update_netvalue(self): method get_netvalue (line 288) | def get_netvalue(self, table, item): method get_fund (line 321) | def get_fund(self, table, code): method query_fund_data (line 330) | def query_fund_data(self, today, order): method html_formator (line 335) | def html_formator(self, ret, html): method combine_html (line 342) | def combine_html(self, html, today): method check_content (line 360) | def check_content(self, content): method notice_me (line 367) | def notice_me(self, today): FILE: fund/fund_jsl.py class JSLFund (line 50) | class JSLFund(BaseService): method __init__ (line 55) | def __init__(self): method headers (line 68) | def headers(self): method get (line 73) | def get(self, url, retry=5): method crawl (line 92) | def crawl(self): method parse_json (line 96) | def parse_json(self, types): function main (line 119) | def main(): FILE: fund/fund_profit_info.py function parse_fund_code_in_txt (line 14) | def parse_fund_code_in_txt(filename): function convert_time (line 28) | def convert_time(x): function get_net_value (line 33) | def get_net_value(code): function get_year (line 41) | def get_year(start,end): function get_profit_rate (line 49) | def get_profit_rate(df): function get_yearly_profit_rate (line 56) | def get_yearly_profit_rate(df): function fund_profit (line 73) | def fund_profit(code,name=''): function automatic_investment_plan (line 91) | def automatic_investment_plan(code): function xirr (line 123) | def xirr(cashflows): function irr (line 145) | def irr(values): function get_max_withdraw (line 158) | def get_max_withdraw(indexs): function plot_profit_line (line 180) | def plot_profit_line(df,code,name=""): function draw_profit_curve (line 208) | def draw_profit_curve(code,name): function automatic_investment_plan_result (line 213) | def automatic_investment_plan_result(code): function help (line 217) | def help(): function main (line 225) | def main(code='513050',kind='profit'): function batch_run_draw (line 237) | def batch_run_draw(): function batch_run_profit (line 246) | def batch_run_profit(): FILE: fund/fund_raise_speed.py class MonitorFund (line 14) | class MonitorFund(BaseService): method __init__ (line 16) | def __init__(self): method fast_speed_up (line 20) | def fast_speed_up(self): FILE: fund/fund_share_crawl.py class Fund (line 23) | class Fund(BaseService): method __init__ (line 24) | def __init__(self, first_use=False): method get_engine (line 31) | def get_engine(): method set_proxy_enable (line 34) | def set_proxy_enable(self): method create_table (line 39) | def create_table(self): method get_session (line 43) | def get_session(self): method get (line 46) | def get(self, url, _json=False, binary=False, retry=5): class SZFundShare (line 77) | class SZFundShare(Fund): method __init__ (line 83) | def __init__(self, first_use=False): method headers (line 100) | def headers(self): method convert (line 118) | def convert(float_str): method json_parse (line 126) | def json_parse(self, js_data): method extract_name (line 154) | def extract_name(self, name): method extract_code (line 157) | def extract_code(self, code): method extract_glrmc (line 160) | def extract_glrmc(self, glrmc): method model_process (line 165) | def model_process(self, jjlb, tzlb, ssrq, dqgm, glrmc, code, name, date): method convert_number (line 200) | def convert_number(s): method run (line 203) | def run(self): class SHFundShare (line 214) | class SHFundShare(Fund): method __init__ (line 219) | def __init__(self, kind, date, first_use=False): method headers (line 255) | def headers(self): method crawl_lof (line 266) | def crawl_lof(self): method process_lof (line 274) | def process_lof(self, js_data): method crawl_etf (line 289) | def crawl_etf(self): method process_etf (line 308) | def process_etf(self, js_data): method run (line 322) | def run(self): method process_model (line 333) | def process_model(self, code, name, date, share, type_): function patch_fix_missing_data (line 369) | def patch_fix_missing_data(): FILE: fund/fund_share_monitor.py class ShareMonitor (line 15) | class ShareMonitor(Fund): method __init__ (line 17) | def __init__(self,): method query (line 23) | def query(self,code,date): FILE: fund/fund_share_update.py class FundBaseInfoModel (line 29) | class FundBaseInfoModel(Base): method __str__ (line 44) | def __str__(self): class ShareModel (line 48) | class ShareModel(Base): class Fund (line 63) | class Fund(BaseService): method __init__ (line 64) | def __init__(self, first_use=False): method get_engine (line 69) | def get_engine(self): method create_table (line 72) | def create_table(self): method get_session (line 76) | def get_session(self): method get (line 79) | def get(self, url, retry=5, js=True): class SZFundShare (line 102) | class SZFundShare(Fund): method __init__ (line 104) | def __init__(self, first_use=False): method headers (line 121) | def headers(self): method convert (line 138) | def convert(self, float_str): method json_parse (line 146) | def json_parse(self, js_data): method extract_name (line 171) | def extract_name(self, name): method extract_code (line 174) | def extract_code(self, code): method extract_glrmc (line 177) | def extract_glrmc(self, glrmc): method model_process (line 182) | def model_process(self, jjlb, tzlb, ssrq, dqgm, glrmc, code, name, date): method convert_number (line 208) | def convert_number(self, s): method run (line 211) | def run(self): class SHFundShare (line 222) | class SHFundShare(Fund): method __init__ (line 224) | def __init__(self, kind,date,first_use=False): method headers (line 259) | def headers(self): method crawl_lof (line 270) | def crawl_lof(self): method process_lof (line 278) | def process_lof(self, js_data): method crawl_etf (line 293) | def crawl_etf(self): method process_etf (line 312) | def process_etf(self, js_data): method run (line 326) | def run(self): method process_model (line 336) | def process_model(self, code, name, date, share, type_): FILE: fund/reits_data_crawler.py function reits_realtime_em (line 11) | def reits_realtime_em() -> pd.DataFrame: function get_reits_data (line 73) | def get_reits_data(): FILE: fund/reits_history.py class ReitsHistoryData (line 9) | class ReitsHistoryData: method __init__ (line 11) | def __init__(self): method crawl (line 14) | def crawl(self, code, ts): method gen_params (line 60) | def gen_params(self): method convert_int (line 75) | def convert_int(self, t): method convert_float (line 83) | def convert_float(self, f): method parse (line 91) | def parse(self, js_data, code): method run (line 108) | def run(self): class SQLCls (line 148) | class SQLCls: method __init__ (line 150) | def __init__(self): method insert_data (line 156) | def insert_data(self, item): function main (line 167) | def main(): FILE: fund/reits_netvalue.py class ReitsNetValue (line 14) | class ReitsNetValue: method __init__ (line 16) | def __init__(self): method parse (line 21) | def parse(self, js, code): method _crawl (line 33) | def _crawl(self, code): method _crawl_xueqiu (line 92) | def _crawl_xueqiu(self, code): method update_sql (line 137) | def update_sql(self, sql_str, data): method dump_mysql (line 147) | def dump_mysql(self, code, name, netvalue, updated): method parse_xueqiu (line 151) | def parse_xueqiu(self, content): method get_netvalue_by_code (line 158) | def get_netvalue_by_code(self, code, name): method read_sql (line 170) | def read_sql(self, sql_str, data): method get_all_codes (line 181) | def get_all_codes(self): method init_db (line 189) | def init_db(self): method run (line 193) | def run(self): FILE: fund/run_sh_fundshare.py function main (line 10) | def main(kind,date='now'): FILE: fund/sqlhelper.py class SQLHelper (line 7) | class SQLHelper(): method __init__ (line 9) | def __init__(self,host,db_name): method query (line 14) | def query(self, sql_str, args): method update (line 26) | def update(self, sql_str, args=None): FILE: fund/stop_purchase_lof_fund.py class FundPurchaseEm (line 40) | class FundPurchaseEm: method fund_purchase_em (line 43) | def fund_purchase_em(self,types) -> pd.DataFrame: method run (line 138) | def run(self): FILE: fund/sz_etf.py function szse_etf (line 11) | def szse_etf(): function szse_etf_detail (line 49) | def szse_etf_detail(): FILE: fund/ttfund_etf_holding.py class FundHolding (line 27) | class FundHolding(): method __init__ (line 29) | def __init__(self, code, year,is_stock=True) -> None: method FLAG (line 37) | def FLAG(self): method get_content (line 40) | def get_content(self, code, year): method insert_mongodb (line 54) | def insert_mongodb(self, item): method parse (line 60) | def parse(self, content): method run (line 112) | def run(self): function main (line 122) | def main(year='2022', code='008331',is_stock=False): function paralle_run (line 126) | def paralle_run(): FILE: fund/ttjj.py class TTFund (line 25) | class TTFund(BaseService): method __init__ (line 30) | def __init__(self, key='股票'): method headers (line 49) | def headers(self): method mongo (line 63) | def mongo(self): method rank (line 66) | def rank(self): method category_rank (line 73) | def category_rank(self, key, time_interval): method save_data (line 90) | def save_data(self, rank_list): method parse (line 96) | def parse(self, rp): method key_remap (line 104) | def key_remap(self, rank_data, type_): method turnover_rate (line 125) | def turnover_rate(self): method is_crawl (line 140) | def is_crawl(self, db, code, cond): method __turnover_rate (line 143) | def __turnover_rate(self, code): method get_turnover_db (line 149) | def get_turnover_db(self): method __parse_turnover_data (line 152) | def __parse_turnover_data(self, jquery_data, code): method fund_detail (line 162) | def fund_detail(self, db, code): method parse_detail_info (line 199) | def parse_detail_info(self, content): method update_basic_info (line 212) | def update_basic_info(self): method get_basic_db (line 215) | def get_basic_db(self): method basic_info (line 218) | def basic_info(self): method convert_data_type (line 231) | def convert_data_type(self): method get_fund (line 243) | def get_fund(self,page): method get_funds (line 260) | def get_funds(self): function main (line 265) | def main(kind, option): FILE: fund/ttjj_others.py function rank_data_crawl (line 8) | def rank_data_crawl(time_interval='3n', ft='all'): function get_allFund_content (line 33) | def get_allFund_content(single_fund_url): function old_main (line 92) | def old_main(): FILE: fund/xueqiu_private_fund.py class PrivateFund (line 14) | class PrivateFund(BaseService): method __init__ (line 16) | def __init__(self): method get_cookies (line 24) | def get_cookies(self): method headers (line 28) | def headers(self): method update_with_missing_data (line 42) | def update_with_missing_data(self): method update_db (line 52) | def update_db(self, data): method isExist (line 59) | def isExist(self, code): method run (line 62) | def run(self): method init_db (line 71) | def init_db(self): method parse (line 74) | def parse(self, content): method store_db (line 81) | def store_db(self, data): method debug (line 84) | def debug(self): method get_details (line 90) | def get_details(self): method get_detail (line 94) | def get_detail(self, code): method update_create_publish_date (line 103) | def update_create_publish_date(self, code, create_date, publish_date): method parse_detail (line 107) | def parse_detail(self, content): method this_year_vshs300 (line 128) | def this_year_vshs300(self,code): method isCrawl (line 136) | def isCrawl(self, symbol): method checkValid (line 142) | def checkValid(self, content): method get_ (line 144) | def get_(self, url, _json=False, binary=False, retry=5): method fund (line 189) | def fund(self, symbol): method parse_detect (line 223) | def parse_detect(self, symbol, content): method get_all_code (line 282) | def get_all_code(self): method generate_code (line 288) | def generate_code(self): method brute_force (line 297) | def brute_force(self): method seq_run (line 306) | def seq_run(self): method update_nick_name (line 311) | def update_nick_name(self): method update_normal (line 322) | def update_normal(self,code,normal_item): method this_year_return (line 329) | def this_year_return(self): function main (line 343) | def main(): FILE: futu/basic_usage.py function deep_print (line 3) | def deep_print(obj): FILE: futu/subscribe.py class OrderBookTest (line 3) | class OrderBookTest(OrderBookHandlerBase): method on_recv_rsp (line 4) | def on_recv_rsp(self, rsp_pb): FILE: futu/util.py function deep_print (line 3) | def deep_print(obj): FILE: hk_stock/aastock_new_stock.py class AAStockNewStock (line 24) | class AAStockNewStock(BaseService): method __init__ (line 26) | def __init__(self): method create_table (line 31) | def create_table(self): method fetch (line 59) | def fetch(self, page): method convert_float (line 76) | def convert_float(self, data): method convert_date (line 94) | def convert_date(self, data_str): method convert_hand_int (line 103) | def convert_hand_int(self, data): method parse (line 110) | def parse(self, content): method run (line 148) | def run(self): method clear_data (line 159) | def clear_data(self): function main (line 164) | def main(): FILE: hk_stock/new_stock_release.py class HKNewStock (line 17) | class HKNewStock(BaseService): method __init__ (line 19) | def __init__(self): method get_engine (line 27) | def get_engine(self): method doc (line 31) | def doc(self): method headers (line 35) | def headers(self): method form_data (line 53) | def form_data(self, page): method crawl (line 61) | def crawl(self): method parse (line 73) | def parse(self, content): method insert_mongo (line 86) | def insert_mongo(self, data): method rename (line 108) | def rename(self): method run (line 128) | def run(self): FILE: jisilu_bond_release.py function main (line 8) | def main(): FILE: jisilu_daily.py function run (line 8) | def run(remote='qq'): FILE: jubi.py class Jubi_web (line 21) | class Jubi_web(): method __init__ (line 22) | def __init__(self, send=None): method send_wechat (line 66) | def send_wechat(self, name, content, user): method send_text (line 72) | def send_text(self, name, content): method warming (line 88) | def warming(self, coin, up_price, down_price, user): method getContent (line 122) | def getContent(self): method getHash (line 127) | def getHash(self, s): method sha_convert (line 132) | def sha_convert(self, s): method get_nonce (line 135) | def get_nonce(self): method get_signiture (line 139) | def get_signiture(self): method real_time_ticker (line 156) | def real_time_ticker(self, coin): method real_time_depth (line 166) | def real_time_depth(self, coin): method list_all_price (line 183) | def list_all_price(self): method getOrder (line 191) | def getOrder(self, coin): method turnover (line 202) | def turnover(self, coin): method multi_thread (line 217) | def multi_thread(self, coin_list, price_list, username): FILE: k-line/basic_usage.py function get_k_data (line 7) | def get_k_data(code="sz123073",name="同和转债k.xlsx"): function kline_demo (line 14) | def kline_demo(): function axis_date (line 25) | def axis_date(): function ma_line (line 57) | def ma_line(): function add_vol (line 102) | def add_vol(): function long_up_shadow (line 146) | def long_up_shadow(o,c,h,l): function run (line 150) | def run(): FILE: k-line/main.py function main (line 3) | def main(): FILE: k-line/recognize_form.py function two_crow (line 9) | def two_crow(): function plot_image (line 43) | def plot_image(df,target): FILE: k-line/search_target.py function plot (line 19) | def plot(df): function get_all_codes (line 49) | def get_all_codes(): function get_daily (line 53) | def get_daily(code): function search (line 57) | def search(df): function run (line 74) | def run(): FILE: k_line.py class Kline (line 24) | class Kline(BaseService): method __init__ (line 25) | def __init__(self): method store_base_data (line 35) | def store_base_data(self, target): method store_hist_data (line 48) | def store_hist_data(self): method get_hist_data (line 58) | def get_hist_data(self, code, name, start_data): method inital_data (line 74) | def inital_data(self, target): method _xiayingxian (line 79) | def _xiayingxian(self, row, ratio): method store_data_not (line 114) | def store_data_not(self): method redis_init (line 119) | def redis_init(self): method get_hist_line (line 127) | def get_hist_line(self, date): method add_code_redis (line 147) | def add_code_redis(self): function get_hist_data (line 170) | def get_hist_data(code, name, start_data): class StockThread (line 192) | class StockThread(Thread): method __init__ (line 193) | def __init__(self, loop): method run (line 198) | def run(self): method loops (line 201) | def loops(self): function StoreData (line 225) | def StoreData(): function main (line 238) | def main(): FILE: longhuban.py function get_content (line 6) | def get_content(url,retry=5): function convert_json (line 20) | def convert_json(url): function convert_json (line 36) | def convert_json(url,pattern): function get_result (line 57) | def get_result(): FILE: machine_learning/贝叶斯预测涨跌.py function apply_func (line 32) | def apply_func(x): FILE: monitor/alert_me.py function main (line 11) | def main(monitor_type='jsl'): FILE: monitor/big_deal.py class Monitor_Stock (line 17) | class Monitor_Stock(BaseService): method __init__ (line 18) | def __init__(self): method getBigDeal (line 22) | def getBigDeal(self, code, vol): method init_market (line 35) | def init_market(self): method run (line 47) | def run(self): function main (line 57) | def main(): FILE: monitor/ceiling_break.py class BreakMonitor (line 24) | class BreakMonitor(BaseService): method __init__ (line 26) | def __init__(self, send=True): method read_stock_list (line 33) | def read_stock_list(self, file=None): method percent (line 43) | def percent(self, current, close): method break_ceil (line 47) | def break_ceil(self, code): method monitor_break (line 81) | def monitor_break(self): FILE: monitor/crawler_monitor.py class Monitor (line 10) | class Monitor: method __init__ (line 12) | def __init__(self): method jsl_data_monitor (line 15) | def jsl_data_monitor(self): method run (line 53) | def run(self): function main (line 57) | def main(): FILE: monitor/jsl_monitor.py class ReachTargetJSL (line 33) | class ReachTargetJSL(BaseService): method __init__ (line 34) | def __init__(self): method get_session (line 73) | def get_session(self): method get (line 76) | def get(self, *args, **kwargs): method redis_client_init (line 90) | def redis_client_init(self): method send_redis (line 94) | def send_redis(self,data_list,key): method once (line 111) | def once(self): method fetch_data (line 117) | def fetch_data(self): method realtime_fetch (line 151) | def realtime_fetch(self): method monitor (line 162) | def monitor(self): FILE: monitor/realtime_monitor_ts.py class ReachTarget (line 33) | class ReachTarget(BaseService): method __init__ (line 35) | def __init__(self): method all_bond_market (line 64) | def all_bond_market(self): method stock_pool (line 80) | def stock_pool(self): method identify_market (line 87) | def identify_market(self, x): method get_current_position (line 94) | def get_current_position(self): method zg_bond (line 124) | def zg_bond(self): method monitor (line 139) | def monitor(self, total_market=True): method get_realtime_info (line 185) | def get_realtime_info(self, codes, has_sent, types, stock, yjl, percent): method get_price_diff (line 250) | def get_price_diff(self, codes, has_sent_, types, kzz_stocks, kzz_stoc... FILE: monitor/server_api.py class ServerAPI (line 4) | class ServerAPI(ReachTargetJSL): method __init__ (line 6) | def __init__(self): method update (line 9) | def update(self): FILE: new_stock_break.py class NewStockBreak (line 12) | class NewStockBreak(): method __init__ (line 13) | def __init__(self,start_date=20170101,end_date=20170401): method calc_open_by_percent (line 30) | def calc_open_by_percent(self,code): method calc_open_day (line 68) | def calc_open_day(self,code): method testcase (line 96) | def testcase(self): method getData (line 122) | def getData(self,filename): function main (line 153) | def main(): FILE: new_stock_fund.py class TianTianFund (line 21) | class TianTianFund(): method __init__ (line 22) | def __init__(self): method get_fund (line 34) | def get_fund(self): method start (line 70) | def start(self): FILE: pledged_validation.py function pledge_info (line 20) | def pledge_info(): function pledged_detail (line 45) | def pledged_detail(): function do_calculation (line 54) | def do_calculation(): FILE: plot_line.py function get_basic_info (line 34) | def get_basic_info(): function check_path (line 40) | def check_path(root_path,current,filename): function plot_stock_line (line 51) | def plot_stock_line(api,code, name, table_type, current, root_path,start... FILE: ptrade/逆回购.py function reverse_repurchase (line 6) | def reverse_repurchase(context): function initialize (line 18) | def initialize(context): FILE: real_time_big_deal.py class BigMonitor (line 14) | class BigMonitor(): method __init__ (line 15) | def __init__(self): method loop (line 25) | def loop(self,code): method multi_thread (line 48) | def multi_thread(self,code_list): method testcase (line 58) | def testcase(self): function main (line 61) | def main(): FILE: recordMyChoice.py class Prediction_rate (line 19) | class Prediction_rate(): method __init__ (line 21) | def __init__(self): method stock_pool (line 32) | def stock_pool(self, stock_list): method first_record (line 35) | def first_record(self, stockID): method update (line 63) | def update(self): class StockRecord (line 73) | class StockRecord: method __init__ (line 75) | def __init__(self): method holding_stock_sql (line 82) | def holding_stock_sql(self): method delete (line 105) | def delete(self, content): method insert (line 110) | def insert(self, code, name, safe_price, count): method _exe (line 124) | def _exe(self, cmd): method update_daily (line 136) | def update_daily(self): method update_item (line 161) | def update_item(self, code, content): method update_sold (line 165) | def update_sold(self): FILE: relationship_case.py function ban_share (line 13) | def ban_share(code,name): function read_index (line 51) | def read_index(): function main (line 60) | def main(): FILE: select_stock.py class filter_stock (line 22) | class filter_stock(): method __init__ (line 23) | def __init__(self,retry=5,local=False): method save_data_excel (line 53) | def save_data_excel(self): method insert_garbe (line 61) | def insert_garbe(self): method showInfo (line 65) | def showInfo(self, df): method count_area (line 76) | def count_area(self, writeable=False): method get_area (line 85) | def get_area(self, area, writeable=False): method get_all_location (line 94) | def get_all_location(self): method fetch_new_ipo (line 102) | def fetch_new_ipo(self, start_time, writeable=False): method get_chengfenggu (line 118) | def get_chengfenggu(self, writeable=False): method drop_down_from_high (line 129) | def drop_down_from_high(self, start, code): method loop_each_cixin (line 148) | def loop_each_cixin(self): method macd (line 169) | def macd(self): method get_all_code (line 199) | def get_all_code(self): method volume_calculate (line 203) | def volume_calculate(self, codes): method turnover_check (line 245) | def turnover_check(self): method write_to_text (line 266) | def write_to_text(self): method saveList (line 278) | def saveList(self, l, name): method read_csv (line 292) | def read_csv(self): method own_drop_down (line 298) | def own_drop_down(self): method _break_line (line 305) | def _break_line(self, codes, k_type): method break_line (line 343) | def break_line(self, code, k_type='20', writeable=False, mystock=False): method _break_line_thread (line 360) | def _break_line_thread(self, codes, k_type='5'): method multi_thread_break_line (line 395) | def multi_thread_break_line(self, ktype='20'): method relation (line 433) | def relation(self): method profit (line 451) | def profit(self): method mydaily_check (line 477) | def mydaily_check(self): method all_stock (line 480) | def all_stock(self): function get_break_bvps (line 484) | def get_break_bvps(): function main (line 492) | def main(): FILE: shareholder_info.py class ShareHolderInfo (line 15) | class ShareHolderInfo(): method __init__ (line 19) | def __init__(self): method db_init (line 23) | def db_init(self): method init_mongo (line 27) | def init_mongo(self): method tushare_init (line 32) | def tushare_init(self): method exists (line 35) | def exists(self, code): method get_stock_list (line 39) | def get_stock_list(self, exchange): method create_date (line 45) | def create_date(): method get_stockholder (line 56) | def get_stockholder(self, code, start, end): method dumpMongo (line 84) | def dumpMongo(self, doc, df): method valid_code (line 95) | def valid_code(self, code): method run (line 98) | def run(self): function main (line 124) | def main(): FILE: statistices.py function percentage (line 11) | def percentage(sold,buy): function plan_buy_price (line 21) | def plan_buy_price(sold,percent): FILE: stockInfo.py function create_tb (line 39) | def create_tb(conn): function getinfo (line 52) | def getinfo(days=-30): FILE: stock_check.py class CheckStock (line 18) | class CheckStock(): method __init__ (line 19) | def __init__(self): method multi_thread (line 30) | def multi_thread(self): method get_info (line 42) | def get_info(self,id): method multi_process (line 95) | def multi_process(self): method show_name (line 128) | def show_name(self): method sinle_thread (line 145) | def sinle_thread(self,start,end): method scan_all (line 153) | def scan_all(self): method monitor (line 171) | def monitor(self): function sub_process_ratio (line 180) | def sub_process_ratio(i,q): function testcase1 (line 226) | def testcase1(i,j,q): function multi_process (line 230) | def multi_process(): FILE: store_data.py class TS_DB (line 9) | class TS_DB(): method __init__ (line 10) | def __init__(self): method save_csv (line 14) | def save_csv(self,code): FILE: strategy_verify.py function create_table (line 16) | def create_table(strategy): function insert (line 41) | def insert(strategy,date_time,code,name,trigger_time,profit,trigger_pric... class Strategy (line 62) | class Strategy(): method __init__ (line 64) | def __init__(self): method getData (line 74) | def getData(self,page): method show_strategy (line 81) | def show_strategy(self): method getStock (line 110) | def getStock(self,strategy,page): method dataStore_SQLite (line 122) | def dataStore_SQLite(self,strategy,page): method dataFilter (line 161) | def dataFilter(self,strategy,page): method DataDup (line 183) | def DataDup(self,strategy): method loops (line 204) | def loops(self): method monitor (line 213) | def monitor(self,strategy): function main (line 234) | def main(): FILE: toolkit.py class Toolkit (line 10) | class Toolkit(): method save2file (line 12) | def save2file( filename, content): method save2filecn (line 20) | def save2filecn( filename, content): method getUserData (line 28) | def getUserData(cfg_file): method read_stock (line 40) | def read_stock(cfg_file): FILE: trader/auto_trader.py class AutoTrader (line 20) | class AutoTrader(): method __init__ (line 22) | def __init__(self): method get_close_price (line 40) | def get_close_price(self): method set_ceiling (line 59) | def set_ceiling(self): method get_candidates (line 79) | def get_candidates(self): method get_market_data (line 85) | def get_market_data(self): method get_blacklist (line 90) | def get_blacklist(self): method morning_start (line 95) | def morning_start(self, p): method get_position (line 133) | def get_position(self): method get_position_df (line 144) | def get_position_df(self): method save_position (line 150) | def save_position(self): method llogger (line 160) | def llogger(self, filename): method end (line 179) | def end(self): FILE: utils/delivery_order.py class DeliveryOrder (line 22) | class DeliveryOrder(): method __init__ (line 24) | def __init__(self): method db_init (line 29) | def db_init(self): method setpath (line 34) | def setpath(self, path): method merge_data_HuaBao (line 41) | def merge_data_HuaBao(self, filename): method years_ht (line 95) | def years_ht(self): method caculation (line 125) | def caculation(self, df): method month (line 131) | def month(self): method years_gj (line 135) | def years_gj(self): method file_exists (line 165) | def file_exists(self, filepath): method years_gj_each_month_day (line 169) | def years_gj_each_month_day(self, filename): method pretty (line 219) | def pretty(self): method data_sync (line 227) | def data_sync(self): method bank_account (line 258) | def bank_account(self): function GJfunc (line 290) | def GJfunc(obj, path, name): function HBfunc (line 302) | def HBfunc(obj, path, name): function main (line 307) | def main(broker, name): FILE: utils/profit_compare.py class ProfitTool (line 2) | class ProfitTool: method __init__ (line 4) | def __init__(self,codes) -> None: function main (line 15) | def main(codes): FILE: utils/push_msn.py class MailSend (line 16) | class MailSend(): method __init__ (line 17) | def __init__(self, smtp_server, from_mail, password, to_mail): method send_txt (line 26) | def send_txt(self, name, price, percent, status): function push_msg (line 54) | def push_msg(name, price, percent, status): function read_stock (line 63) | def read_stock(name): function meet_price (line 78) | def meet_price(code, price_up, price_down,type): function meet_percent (line 110) | def meet_percent(code, percent_up, percent_down,type): function general_info (line 144) | def general_info(): function break_ceil (line 160) | def break_ceil(code): function monitor_break (line 181) | def monitor_break(): function visual (line 185) | def visual(): function main (line 194) | def main(): FILE: yesterday_zt_monitor.py class PlotYesterdayZT (line 18) | class PlotYesterdayZT(BaseService): method __init__ (line 20) | def __init__(self): method get_data (line 24) | def get_data(self,table): method plot_yesterday_zt (line 37) | def plot_yesterday_zt(self,api,type_name='zrzt', current=datetime.date... function main (line 51) | def main(current=None):