SYMBOL INDEX (476 symbols across 50 files) FILE: setup.py function read (line 6) | def read(fname): function read_install_requires (line 65) | def read_install_requires(): FILE: test/bar_test.py class Test (line 9) | class Test(unittest.TestCase): method set_data (line 11) | def set_data(self): method test_bar_data (line 16) | def test_bar_data(self): FILE: test/billboard_test.py class Test (line 9) | class Test(unittest.TestCase): method set_data (line 11) | def set_data(self): method test_top_list (line 15) | def test_top_list(self): method test_cap_tops (line 19) | def test_cap_tops(self): method test_broker_tops (line 23) | def test_broker_tops(self): method test_inst_tops (line 27) | def test_inst_tops(self): method test_inst_detail (line 31) | def test_inst_detail(self): FILE: test/classifying_test.py class Test (line 9) | class Test(unittest.TestCase): method set_data (line 11) | def set_data(self): method test_get_industry_classified (line 18) | def test_get_industry_classified(self): method test_get_concept_classified (line 21) | def test_get_concept_classified(self): method test_get_area_classified (line 24) | def test_get_area_classified(self): method test_get_gem_classified (line 27) | def test_get_gem_classified(self): method test_get_sme_classified (line 30) | def test_get_sme_classified(self): method test_get_st_classified (line 33) | def test_get_st_classified(self): method test_get_hs300s (line 36) | def test_get_hs300s(self): method test_get_sz50s (line 39) | def test_get_sz50s(self): method test_get_zz500s (line 42) | def test_get_zz500s(self): FILE: test/dateu_test.py class Test_Is_holiday (line 12) | class Test_Is_holiday(TestCase): method test_is_holiday (line 13) | def test_is_holiday(self): FILE: test/fund_test.py class Test (line 6) | class Test(unittest.TestCase): method set_data (line 8) | def set_data(self): method test_get_stock_basics (line 15) | def test_get_stock_basics(self): FILE: test/indictor_test.py class Test (line 11) | class Test(unittest.TestCase): method test_plot_all (line 13) | def test_plot_all(self): FILE: test/macro_test.py class Test (line 9) | class Test(unittest.TestCase): method test_get_gdp_year (line 11) | def test_get_gdp_year(self): method test_get_gdp_quarter (line 14) | def test_get_gdp_quarter(self): method test_get_gdp_for (line 17) | def test_get_gdp_for(self): method test_get_gdp_pull (line 20) | def test_get_gdp_pull(self): method test_get_gdp_contrib (line 23) | def test_get_gdp_contrib(self): method test_get_cpi (line 26) | def test_get_cpi(self): method test_get_ppi (line 29) | def test_get_ppi(self): method test_get_deposit_rate (line 32) | def test_get_deposit_rate(self): method test_get_loan_rate (line 35) | def test_get_loan_rate(self): method test_get_rrr (line 38) | def test_get_rrr(self): method test_get_money_supply (line 41) | def test_get_money_supply(self): method test_get_money_supply_bal (line 44) | def test_get_money_supply_bal(self): FILE: test/nav_test.py class Test (line 10) | class Test(unittest.TestCase): method set_data (line 12) | def set_data(self): method test_get_nav_open (line 18) | def test_get_nav_open(self): method test_get_nav_close (line 28) | def test_get_nav_close(self): method test_get_nav_grading (line 57) | def test_get_nav_grading(self): method test_nav_history (line 79) | def test_nav_history(self): method test_get_fund_info (line 91) | def test_get_fund_info(self): FILE: test/news_test.py class Test (line 9) | class Test(unittest.TestCase): method set_data (line 11) | def set_data(self): method test_get_latest_news (line 21) | def test_get_latest_news(self): method test_get_notices (line 26) | def test_get_notices(self): method test_guba_sina (line 32) | def test_guba_sina(self): FILE: test/ref_test.py class Test (line 9) | class Test(unittest.TestCase): method set_data (line 11) | def set_data(self): method test_profit_data (line 20) | def test_profit_data(self): method test_forecast_data (line 24) | def test_forecast_data(self): method test_xsg_data (line 28) | def test_xsg_data(self): method test_fund_holdings (line 31) | def test_fund_holdings(self): method test_new_stocksa (line 35) | def test_new_stocksa(self): method test_sh_margin_details (line 39) | def test_sh_margin_details(self): method test_sh_margins (line 43) | def test_sh_margins(self): method test_sz_margins (line 47) | def test_sz_margins(self): method test_sz_margin_details (line 51) | def test_sz_margin_details(self): FILE: test/shibor_test.py class Test (line 6) | class Test(unittest.TestCase): method set_data (line 8) | def set_data(self): method test_shibor_data (line 12) | def test_shibor_data(self): method test_shibor_quote_data (line 16) | def test_shibor_quote_data(self): method test_shibor_ma_data (line 20) | def test_shibor_ma_data(self): method test_lpr_data (line 24) | def test_lpr_data(self): method test_lpr_ma_data (line 28) | def test_lpr_ma_data(self): FILE: test/storing_test.py function csv (line 8) | def csv(): function xls (line 12) | def xls(): function hdf (line 17) | def hdf(): function json (line 25) | def json(): function appends (line 32) | def appends(): function db (line 41) | def db(): function nosql (line 49) | def nosql(): FILE: test/trading_test.py class Test (line 9) | class Test(unittest.TestCase): method set_data (line 11) | def set_data(self): method test_get_hist_data (line 18) | def test_get_hist_data(self): method test_get_tick_data (line 22) | def test_get_tick_data(self): method test_get_today_all (line 26) | def test_get_today_all(self): method test_get_realtime_quotesa (line 29) | def test_get_realtime_quotesa(self): method test_get_h_data (line 33) | def test_get_h_data(self): method test_get_today_ticks (line 37) | def test_get_today_ticks(self): FILE: test_unittest.py class TestTrading (line 8) | class TestTrading(unittest.TestCase): method set_data (line 10) | def set_data(self): method test_tickData (line 15) | def test_tickData(self): FILE: tushare/bond/bonds.py function get_bond_info (line 11) | def get_bond_info(code): FILE: tushare/coins/market.py function coins_tick (line 86) | def coins_tick(broker='hb', code='btc'): function coins_bar (line 152) | def coins_bar(broker='hb', code='btc', ktype='D', size='2000'): function coins_snapshot (line 184) | def coins_snapshot(broker='hb', code='btc', size='5'): function coins_trade (line 216) | def coins_trade(broker='hb', code='btc'): function _get_data (line 252) | def _get_data(url): function int2time (line 264) | def int2time(timestamp): FILE: tushare/fund/cons.py function _write_head (line 125) | def _write_head(): function _write_console (line 130) | def _write_console(): function _write_tips (line 135) | def _write_tips(tip): function _write_msg (line 140) | def _write_msg(msg): function _check_nav_oft_input (line 145) | def _check_nav_oft_input(found_type): function _check_input (line 152) | def _check_input(year, quarter): FILE: tushare/fund/nav.py function get_nav_open (line 25) | def get_nav_open(fund_type='all'): function get_nav_close (line 79) | def get_nav_close(fund_type='all', sub_type='all'): function get_nav_grading (line 139) | def get_nav_grading(fund_type='all', sub_type='all'): function get_nav_history (line 193) | def get_nav_history(code, start=None, end=None, retry_count=3, pause=0.0... function get_fund_info (line 236) | def get_fund_info(code): function _parse_fund_data (line 281) | def _parse_fund_data(url, fund_type='open'): function _get_fund_num (line 310) | def _get_fund_num(url): function _get_nav_histroy_num (line 335) | def _get_nav_histroy_num(code, start, end, ismonetary=False): function _parse_nav_history_data (line 366) | def _parse_nav_history_data(code, start, end, nums, ismonetary=False, re... FILE: tushare/futures/domestic.py function get_cffex_daily (line 26) | def get_cffex_daily(date = None): function get_czce_daily (line 89) | def get_czce_daily(date=None, type="future"): function get_shfe_vwap (line 183) | def get_shfe_vwap(date = None): function get_shfe_daily (line 218) | def get_shfe_daily(date = None): function get_dce_daily (line 270) | def get_dce_daily(date = None, type="future", retries=0): function get_future_daily (line 401) | def get_future_daily(start = None, end = None, market = 'CFFEX'): FILE: tushare/futures/domestic_cons.py function convert_date (line 37) | def convert_date(date): FILE: tushare/futures/intlfutures.py function get_intlfuture (line 22) | def get_intlfuture(symbols=None): function _get_data (line 29) | def _get_data(url): function _random (line 47) | def _random(n=13): FILE: tushare/internet/boxoffice.py function realtime_boxoffice (line 19) | def realtime_boxoffice(retry_count=3,pause=0.001): function day_boxoffice (line 58) | def day_boxoffice(date=None, retry_count=3, pause=0.001): function month_boxoffice (line 104) | def month_boxoffice(date=None, retry_count=3, pause=0.001): function day_cinema (line 151) | def day_cinema(date=None, retry_count=3, pause=0.001): function _day_cinema (line 187) | def _day_cinema(date=None, pNo=1, retry_count=3, pause=0.001): function _random (line 206) | def _random(n=13): FILE: tushare/internet/caixinnews.py function read_url (line 45) | def read_url(url): function get_soup (line 59) | def get_soup(url): function query_news (line 69) | def query_news(keywords='*',start_date=None,end_date=None): function is_blog (line 102) | def is_blog(url): function read_page (line 114) | def read_page(url): function read_normal_artical (line 130) | def read_normal_artical(url): function read_blog (line 139) | def read_blog(url): FILE: tushare/internet/indexes.py function bdi (line 23) | def bdi(itype='D', retry_count=3, FILE: tushare/pro/client.py class DataApi (line 17) | class DataApi: method __init__ (line 22) | def __init__(self, token, timeout=10): method query (line 32) | def query(self, api_name, fields='', **kwargs): method __getattr__ (line 50) | def __getattr__(self, name): FILE: tushare/pro/data_pro.py function pro_api (line 21) | def pro_api(token=''): function pro_bar (line 34) | def pro_bar(ts_code='', pro_api=None, start_date=None, end_date=None, fr... FILE: tushare/stock/billboard.py function top_list (line 28) | def top_list(date = None, retry_count=3, pause=0.001): function cap_tops (line 98) | def cap_tops(days= 5, retry_count= 3, pause= 0.001): function _cap_tops (line 132) | def _cap_tops(last=5, pageNo=1, retry_count=3, pause=0.001, dataArr=pd.D... function broker_tops (line 162) | def broker_tops(days= 5, retry_count= 3, pause= 0.001): function _broker_tops (line 190) | def _broker_tops(last=5, pageNo=1, retry_count=3, pause=0.001, dataArr=p... function inst_tops (line 220) | def inst_tops(days= 5, retry_count= 3, pause= 0.001): function _inst_tops (line 250) | def _inst_tops(last=5, pageNo=1, retry_count=3, pause=0.001, dataArr=pd.... function inst_detail (line 281) | def inst_detail(retry_count= 3, pause= 0.001): function _inst_detail (line 308) | def _inst_detail(pageNo=1, retry_count=3, pause=0.001, dataArr=pd.DataFr... function _f_rows (line 338) | def _f_rows(x): FILE: tushare/stock/classifying.py function get_industry_classified (line 27) | def get_industry_classified(standard='sina'): function get_concept_classified (line 62) | def get_concept_classified(): function concetps (line 77) | def concetps(): function get_concepts (line 93) | def get_concepts(src='dfcf'): function get_area_classified (line 118) | def get_area_classified(): function get_gem_classified (line 135) | def get_gem_classified(): function get_sme_classified (line 152) | def get_sme_classified(): function get_st_classified (line 168) | def get_st_classified(): function _get_detail (line 185) | def _get_detail(tag, retry_count=3, pause=0.001): function _get_type_data (line 219) | def _get_type_data(url): function get_hs300s (line 233) | def get_hs300s(): function get_sz50s (line 254) | def get_sz50s(): function get_zz500s (line 274) | def get_zz500s(): function get_terminated (line 295) | def get_terminated(): function get_suspended (line 323) | def get_suspended(): function _random (line 352) | def _random(n=13): FILE: tushare/stock/cons.py function _write_head (line 359) | def _write_head(): function _write_console (line 363) | def _write_console(): function _write_tips (line 367) | def _write_tips(tip): function _write_msg (line 371) | def _write_msg(msg): function _check_input (line 375) | def _check_input(year, quarter): function _check_lhb_input (line 383) | def _check_lhb_input(last): function _market_code (line 391) | def _market_code(code): function _idx_market_code (line 400) | def _idx_market_code(code): function _code_to_symbol (line 409) | def _code_to_symbol(code): function _code_to_symbol_dgt (line 424) | def _code_to_symbol_dgt(code): function _get_server (line 437) | def _get_server(): function _get_xserver (line 443) | def _get_xserver(): function _get_xxserver (line 449) | def _get_xxserver(): FILE: tushare/stock/fundamental.py function get_stock_basics (line 22) | def get_stock_basics(date=None): function get_report_data (line 62) | def get_report_data(year, quarter): function _get_report_data (line 95) | def _get_report_data(year, quarter, pageNo, dataArr, function get_profit_data (line 129) | def get_profit_data(year, quarter): function _get_profit_data (line 160) | def _get_profit_data(year, quarter, pageNo, dataArr, function get_operation_data (line 194) | def get_operation_data(year, quarter): function _get_operation_data (line 224) | def _get_operation_data(year, quarter, pageNo, dataArr, function get_growth_data (line 258) | def get_growth_data(year, quarter): function _get_growth_data (line 288) | def _get_growth_data(year, quarter, pageNo, dataArr, function get_debtpaying_data (line 322) | def get_debtpaying_data(year, quarter): function _get_debtpaying_data (line 352) | def _get_debtpaying_data(year, quarter, pageNo, dataArr, function get_cashflow_data (line 385) | def get_cashflow_data(year, quarter): function _get_cashflow_data (line 414) | def _get_cashflow_data(year, quarter, pageNo, dataArr, function _data_path (line 448) | def _data_path(): function get_balance_sheet (line 456) | def get_balance_sheet(code): function get_profit_statement (line 477) | def get_profit_statement(code): function get_cash_flow (line 499) | def get_cash_flow(code): FILE: tushare/stock/globals.py function global_realtime (line 19) | def global_realtime(symbols=None): FILE: tushare/stock/indictor.py function ma (line 12) | def ma(data, n=10, val_name="close"): function md (line 45) | def md(data, n=10, val_name="close"): function _get_day_ema (line 78) | def _get_day_ema(prices, n): function ema (line 88) | def ema(data, n=12, val_name="close"): function macd (line 125) | def macd(data, quick_n=12, slow_n=26, dem_n=9, val_name="close"): function kdj (line 161) | def kdj(data): function rsi (line 203) | def rsi(data, n=6, val_name="close"): function boll (line 250) | def boll(data, n=10, val_name="close", k=2): function wnr (line 280) | def wnr(data, n=14): function _get_any_ma (line 316) | def _get_any_ma(arr, n): function dmi (line 328) | def dmi(data, n=14, m=14, k=6): function bias (line 439) | def bias(data, n=5): function asi (line 462) | def asi(data, n=5): function vr (line 517) | def vr(data, n=26): function arbr (line 566) | def arbr(data, n=26): function dpo (line 623) | def dpo(data, n=20, m=6): function trix (line 649) | def trix(data, n=12, m=20): function bbi (line 695) | def bbi(data): function mtm (line 725) | def mtm(data, n=6): function obv (line 754) | def obv(data): function sar (line 775) | def sar(data, n=4): function plot_all (line 779) | def plot_all(data, is_show=True, output=None): FILE: tushare/stock/macro.py function get_gdp_year (line 23) | def get_gdp_year(): function get_gdp_quarter (line 58) | def get_gdp_quarter(): function get_gdp_for (line 92) | def get_gdp_for(): function get_gdp_pull (line 122) | def get_gdp_pull(): function get_gdp_contrib (line 151) | def get_gdp_contrib(): function get_cpi (line 179) | def get_cpi(): function get_ppi (line 204) | def get_ppi(): function get_deposit_rate (line 241) | def get_deposit_rate(): function get_loan_rate (line 268) | def get_loan_rate(): function get_rrr (line 295) | def get_rrr(): function get_money_supply (line 323) | def get_money_supply(): function get_money_supply_bal (line 364) | def get_money_supply_bal(): function get_gold_and_foreign_reserves (line 397) | def get_gold_and_foreign_reserves(): FILE: tushare/stock/macro_vars.py function random (line 21) | def random(n=13): FILE: tushare/stock/newsevent.py function get_latest_news (line 26) | def get_latest_news(top=None, show_content=False): function latest_content (line 71) | def latest_content(url): function get_notices (line 97) | def get_notices(code=None, date=None): function notice_content (line 132) | def notice_content(url): function guba_sina (line 151) | def guba_sina(show_content=False): function _guba_content (line 195) | def _guba_content(url): function _random (line 215) | def _random(n=16): FILE: tushare/stock/reference.py function profit_data (line 28) | def profit_data(year=2017, top=25, function _fun_divi (line 77) | def _fun_divi(x): function _fun_into (line 93) | def _fun_into(x): function _dist_cotent (line 118) | def _dist_cotent(year, pageNo, retry_count, pause): function profit_divis (line 156) | def profit_divis(): function _profit_divis (line 184) | def _profit_divis(pageNo, dataArr, nextPage): function forecast_data (line 205) | def forecast_data(year, quarter): function _get_forecast_data (line 233) | def _get_forecast_data(year, quarter, pageNo, dataArr): function xsg_data (line 263) | def xsg_data(year=None, month=None, function fund_holdings (line 314) | def fund_holdings(year, quarter, function _holding_cotent (line 354) | def _holding_cotent(start, end, pageNo, retry_count, pause): function new_stocks (line 394) | def new_stocks(retry_count=3, pause=0.001): function _newstocks (line 427) | def _newstocks(data, pageNo, retry_count, pause): function new_cbonds (line 462) | def new_cbonds(default=1, retry_count=3, pause=0.001): function _newcbonds (line 506) | def _newcbonds(pageNo, retry_count, pause): function sh_margins (line 538) | def sh_margins(start=None, end=None, retry_count=3, pause=0.001): function _sh_hz (line 576) | def _sh_hz(data, start=None, end=None, function sh_margin_details (line 619) | def sh_margin_details(date='', symbol='', function _sh_mx (line 666) | def _sh_mx(data, date='', start='', end='', function sz_margins (line 713) | def sz_margins(start=None, end=None, retry_count=3, pause=0.001): function _sz_hz (line 759) | def _sz_hz(date='', retry_count=3, pause=0.001): function sz_margin_details (line 779) | def sz_margin_details(date='', retry_count=3, pause=0.001): function top10_holders (line 823) | def top10_holders(code=None, year=None, quarter=None, gdtype='0', function moneyflow_hsgt (line 874) | def moneyflow_hsgt(): function margin_detail (line 902) | def margin_detail(date=''): function margin_target (line 931) | def margin_target(date=''): function margin_offset (line 954) | def margin_offset(date): function stock_pledged (line 975) | def stock_pledged(): function pledged_detail (line 995) | def pledged_detail(): function margin_zsl (line 1019) | def margin_zsl(date='', broker=''): function stock_issuance (line 1050) | def stock_issuance(start_date='', end_date=''): function _random (line 1085) | def _random(n=13): FILE: tushare/stock/shibor.py function shibor_data (line 16) | def shibor_data(year=None): function shibor_quote_data (line 55) | def shibor_quote_data(year=None): function shibor_ma_data (line 105) | def shibor_ma_data(year=None): function lpr_data (line 138) | def lpr_data(year=None): function lpr_ma_data (line 171) | def lpr_ma_data(year=None): FILE: tushare/stock/trading.py function get_hist_data (line 32) | def get_hist_data(code=None, start=None, end=None, function _parsing_dayprice_json (line 103) | def _parsing_dayprice_json(types=None, page=1): function get_tick_data (line 135) | def get_tick_data(code=None, date=None, retry_count=3, pause=0.001, function get_sina_dd (line 190) | def get_sina_dd(code=None, date=None, vol=400, retry_count=3, pause=0.001): function get_today_ticks (line 232) | def get_today_ticks(code=None, retry_count=3, pause=0.001): function _today_ticks (line 278) | def _today_ticks(symbol, tdate, pageNo, retry_count, pause): function get_today_all (line 305) | def get_today_all(): function get_realtime_quotes (line 324) | def get_realtime_quotes(symbols=None): function get_h_data (line 397) | def get_h_data(code, start=None, end=None, autype='qfq', function _parase_fq_factor (line 512) | def _parase_fq_factor(code, start, end): function _fun_except (line 535) | def _fun_except(x): function _parse_fq_data (line 542) | def _parse_fq_data(url, index, retry_count, pause): function get_index (line 578) | def get_index(): function _get_index_url (line 614) | def _get_index_url(index, code, qt): function get_k_data (line 624) | def get_k_data(code=None, start='', end='', function _get_k_data (line 710) | def _get_k_data(url, dataflag='', function get_hists (line 750) | def get_hists(symbols, start=None, end=None, function get_day_all (line 769) | def get_day_all(date=None): function get_dt_time (line 801) | def get_dt_time(t): function bar2h5 (line 807) | def bar2h5(market='', date='', freq='D', asset='E', filepath=''): function bar (line 900) | def bar(code, conn=None, start_date=None, end_date=None, freq='D', asset... function _get_mkcode (line 1040) | def _get_mkcode(code='', asset='E', xapi=None): function tick (line 1056) | def tick(code, conn=None, date='', asset='E', market='', retry_count = 3): function quotes (line 1142) | def quotes(symbols, conn=None, asset='E', market=[], retry_count = 3): function get_security (line 1197) | def get_security(api): function reset_instrument (line 1211) | def reset_instrument(xapi=None): function get_instrument (line 1229) | def get_instrument(xapi=None): function get_markets (line 1248) | def get_markets(xapi=None): function factor_adj (line 1260) | def factor_adj(code): function factor_shares (line 1267) | def factor_shares(code): function _random (line 1274) | def _random(n=13): FILE: tushare/stock/trendline.py function ma (line 17) | def ma(df, n=10): function _ma (line 28) | def _ma(series, n): function md (line 35) | def md(df, n=10): function _md (line 46) | def _md(series, n): function ema (line 53) | def ema(df, n=12): function _ema (line 65) | def _ema(series, n): function macd (line 72) | def macd(df, n=12, m=26, k=9): function kdj (line 92) | def kdj(df, n=9): function rsi (line 109) | def rsi(df, n=6): function vrsi (line 130) | def vrsi(df, n=6): function boll (line 143) | def boll(df, n=26, k=2): function bbiboll (line 159) | def bbiboll(df, n=10, k=3): function wr (line 177) | def wr(df, n=14): function bias (line 190) | def bias(df, n=12): function asi (line 203) | def asi(df, n=5): function vr_rate (line 224) | def vr_rate(df, n=26): function vr (line 246) | def vr(df, n=5): function arbr (line 261) | def arbr(df, n=26): function dpo (line 276) | def dpo(df, n=20, m=6): function trix (line 289) | def trix(df, n=12, m=20): function bbi (line 304) | def bbi(df): function mtm (line 315) | def mtm(df, n=6, m=5): function obv (line 329) | def obv(df): function cci (line 353) | def cci(df, n=14): function priceosc (line 368) | def priceosc(df, n=12, m=26): function sma (line 380) | def sma(a, n, m=1): function dbcd (line 412) | def dbcd(df, n=5, m=16, t=76): function roc (line 430) | def roc(df, n=12, m=6): function vroc (line 445) | def vroc(df, n=12): function cr (line 456) | def cr(df, n=26): function psy (line 471) | def psy(df, n=12): function wad (line 486) | def wad(df, n=30): function mfi (line 517) | def mfi(df, n=14): function pvt (line 540) | def pvt(df): function wvad (line 554) | def wvad(df, n=24, m=6): function cdp (line 568) | def cdp(df): function env (line 588) | def env(df, n=14): function mike (line 601) | def mike(df, n=12): function vma (line 628) | def vma(df, n=5): function vmacd (line 639) | def vmacd(df, qn=12, sn=26, m=9): function vosc (line 655) | def vosc(df, n=12, m=26): function tapi (line 666) | def tapi(df, n=6): function vstd (line 678) | def vstd(df, n=10): function adtm (line 689) | def adtm(df, n=23, m=8): function mi (line 719) | def mi(df, n=12): function micd (line 731) | def micd(df, n=3, m=10, k=20): function rc (line 747) | def rc(df, n=50): function rccd (line 760) | def rccd(df, n=59, m=21, k=28): function srmi (line 777) | def srmi(df, n=9): function dptb (line 794) | def dptb(df, n=7): function jdqs (line 814) | def jdqs(df, n=20): function jdrs (line 836) | def jdrs(df, n=20): function zdzb (line 858) | def zdzb(df, n=125, m=5, k=20): function atr (line 877) | def atr(df, n=14): function mass (line 892) | def mass(df, n=9, m=25): function vhf (line 908) | def vhf(df, n=28): function cvlt (line 919) | def cvlt(df, n=10): function up_n (line 931) | def up_n(df): function down_n (line 954) | def down_n(df): function join_frame (line 976) | def join_frame(d1, d2, column='date'): FILE: tushare/trader/trader.py class TraderAPI (line 20) | class TraderAPI(object): method __init__ (line 27) | def __init__(self, broker = ''): method login (line 44) | def login(self): method _login (line 56) | def _login(self, v_code): method keepalive (line 78) | def keepalive(self): method send_heartbeat (line 85) | def send_heartbeat(self): method heartbeat (line 98) | def heartbeat(self): method exit (line 102) | def exit(self): method buy (line 106) | def buy(self, stkcode, price=0, count=0, amount=0): method sell (line 122) | def sell(self, stkcode, price=0, count=0, amount=0): method _trading (line 138) | def _trading(self, stkcode, price, count, amount, tradeflag, tradetype): method position (line 176) | def position(self): method _get_position (line 192) | def _get_position(self): method entrust_list (line 202) | def entrust_list(self): method deal_list (line 228) | def deal_list(self, begin=None, end=None): method cancel (line 267) | def cancel(self, ordersno='', orderdate=''): method baseinfo (line 292) | def baseinfo(self): method _get_baseinfo (line 309) | def _get_baseinfo(self): method check_login_status (line 318) | def check_login_status(self, return_data): class NotLoginError (line 323) | class NotLoginError(Exception): method __init__ (line 324) | def __init__(self, result=None): method heartbeat (line 327) | def heartbeat(self): FILE: tushare/trader/utils.py function nowtime_str (line 16) | def nowtime_str(): function get_jdata (line 20) | def get_jdata(txtdata): function get_vcode (line 28) | def get_vcode(broker, res): FILE: tushare/util/common.py class Client (line 18) | class Client: method __init__ (line 20) | def __init__(self , token): method __del__ (line 25) | def __del__( self ): method encodepath (line 30) | def encodepath(self, path): method init (line 64) | def init(self, token): method getData (line 68) | def getData(self, path): FILE: tushare/util/conns.py function api (line 14) | def api(retry_count=3): function xapi (line 26) | def xapi(retry_count=3): function xapi_x (line 38) | def xapi_x(retry_count=3): function get_apis (line 50) | def get_apis(): function close_apis (line 54) | def close_apis(conn): FILE: tushare/util/dateu.py function year_qua (line 8) | def year_qua(date): function _quar (line 14) | def _quar(mon): function today (line 27) | def today(): function get_year (line 32) | def get_year(): function get_month (line 37) | def get_month(): function get_hour (line 41) | def get_hour(): function today_last_year (line 45) | def today_last_year(): function day_last_week (line 50) | def day_last_week(days=-7): function get_now (line 55) | def get_now(): function int2time (line 59) | def int2time(timestamp): function diff_day (line 65) | def diff_day(start=None, end=None): function get_quarts (line 72) | def get_quarts(start, end): function trade_cal (line 78) | def trade_cal(): function is_holiday (line 87) | def is_holiday(date): function last_tddate (line 102) | def last_tddate(): function tt_dates (line 111) | def tt_dates(start='', end=''): function _random (line 118) | def _random(n=13): function get_q_date (line 124) | def get_q_date(year=None, quarter=None): FILE: tushare/util/formula.py function EMA (line 8) | def EMA(DF, N): function MA (line 12) | def MA(DF, N): function SMA (line 16) | def SMA(DF, N, M): function ATR (line 28) | def ATR(DF, N): function HHV (line 37) | def HHV(DF, N): function LLV (line 41) | def LLV(DF, N): function SUM (line 45) | def SUM(DF, N): function ABS (line 49) | def ABS(DF): function MAX (line 53) | def MAX(A, B): function MIN (line 58) | def MIN(A, B): function IF (line 63) | def IF(COND, V1, V2): function REF (line 70) | def REF(DF, N): function STD (line 76) | def STD(DF, N): function MACD (line 80) | def MACD(DF, FAST, SLOW, MID): function KDJ (line 91) | def KDJ(DF, N, M1, M2): function OSC (line 104) | def OSC(DF, N, M): # 变动速率线 function BBI (line 113) | def BBI(DF, N1, N2, N3, N4): # 多空指标 function BBIBOLL (line 121) | def BBIBOLL(DF, N1, N2, N3, N4, N, M): # 多空布林线 function PBX (line 130) | def PBX(DF, N1, N2, N3, N4, N5, N6): # 瀑布线 function BOLL (line 144) | def BOLL(DF, N): # 布林线 function ROC (line 154) | def ROC(DF, N, M): # 变动率指标 function MTM (line 163) | def MTM(DF, N, M): # 动量线 function MFI (line 172) | def MFI(DF, N): # 资金指标 function SKDJ (line 186) | def SKDJ(DF, N, M): function WR (line 198) | def WR(DF, N, N1): # 威廉指标 function BIAS (line 209) | def BIAS(DF, N1, N2, N3): # 乖离率 function RSI (line 219) | def RSI(DF, N1, N2, N3): # 相对强弱指标RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS... function ADTM (line 230) | def ADTM(DF, N, M): # 动态买卖气指标 function DDI (line 247) | def DDI(DF, N, N1, M, M1): # 方向标准离差指数 FILE: tushare/util/mailmerge.py class MailMerge (line 22) | class MailMerge(object): method __init__ (line 23) | def __init__(self, file, remove_empty_tables=False): method __get_tree_of_file (line 90) | def __get_tree_of_file(self, file): method write (line 95) | def write(self, file): method get_merge_fields (line 112) | def get_merge_fields(self, parts=None): method merge_pages (line 121) | def merge_pages(self, replacements): method merge (line 152) | def merge(self, parts=None, **replacements): method __merge_field (line 163) | def __merge_field(self, part, field, text): method merge_rows (line 194) | def merge_rows(self, anchor, rows): method __find_row_anchor (line 210) | def __find_row_anchor(self, field, parts=None): FILE: tushare/util/netbase.py class Client (line 9) | class Client(object): method __init__ (line 10) | def __init__(self, url=None, ref=None, cookie=None): method _setOpener (line 16) | def _setOpener(self): method gvalue (line 26) | def gvalue(self): FILE: tushare/util/store.py class Store (line 14) | class Store(object): method __init__ (line 16) | def __init__(self, data=None, name=None, path=None): method save_as (line 24) | def save_as(self, name, path, to='csv'): FILE: tushare/util/upass.py function set_token (line 16) | def set_token(token): function get_token (line 23) | def get_token(): function set_broker (line 34) | def set_broker(broker='', user='', passwd=''): function get_broker (line 48) | def get_broker(broker=''): function remove_broker (line 59) | def remove_broker():