如何查看miniQMT软件调用的xtquant模块API接口文档XtQuant

PTD 阅读:118 2025-05-23 17:05:52 评论:0
# -*- coding: utf-8 -*-
from xtquant import xtdata
from xtquant import xttrader

# 列出 xtdata 的所有函数和类
print(dir(xtdata))

# 列出 xttrader 的所有函数和类
print(dir(xttrader))

#  xtdata 有一个函数 get_full_tick
help(xtdata.get_full_tick)

null

代码运行输出内容:

Reloaded modules: xtquant, xtquant.xtbson.bson37.binary, xtquant.xtbson.bson37.code, xtquant.xtbson.bson37.codec_options, xtquant.xtbson.bson37.tz_util, xtquant.xtbson.bson37.datetime_ms, xtquant.xtbson.bson37._helpers, xtquant.xtbson.bson37.son, xtquant.xtbson.bson37.dbref, xtquant.xtbson.bson37.decimal128, xtquant.xtbson.bson37.errors, xtquant.xtbson.bson37.int64, xtquant.xtbson.bson37.max_key, xtquant.xtbson.bson37.min_key, xtquant.xtbson.bson37.objectid, xtquant.xtbson.bson37.regex, xtquant.xtbson.bson37.timestamp, xtquant.xtbson.bson37, xtquant.xtbson, xtquant.xtdata_config, xtquant.IPythonApiClient, xtquant.xtdata, xtquant.xtpythonclient, xtquant.xtconstant, xtquant.xttype, xtquant.xttrader
['CLIENT', 'MergeData', 'RPCClient', 'TimeListBuilder', '__all__', '__builtins__', '__cached__', '__curdir', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__rpc_config', '__rpc_init_status', '__spec__', '__xtdata_config', '_get_market_data_ex_221207', '_get_market_data_ex_ori_221207', 'abspath', 'add_sector', 'bson', 'create_array', 'data_dir', 'datetime_to_timetag', 'debug_mode', 'default_data_dir', 'dirname', 'download_cb_data', 'download_financial_data', 'download_financial_data2', 'download_history_contracts', 'download_history_data', 'download_history_data2', 'download_index_weight', 'download_sector_data', 'getDividFactors', 'get_cb_info', 'get_client', 'get_divid_factors', 'get_etf_info', 'get_financial_data', 'get_full_tick', 'get_holidays', 'get_index_weight', 'get_industry', 'get_instrument_detail', 'get_instrument_type', 'get_l2_order', 'get_l2_quote', 'get_l2_transaction', 'get_local_data', 'get_main_contract', 'get_market_data', 'get_market_data3', 'get_market_data_ex', 'get_market_data_ex_ori', 'get_market_data_ori', 'get_option_detail_data', 'get_option_list', 'get_option_undl_data', 'get_sector_list', 'get_stock_list_in_sector', 'get_stock_type', 'get_trade_times', 'get_trading_calendar', 'get_trading_dates', 'gld', 'gmd', 'gmd2', 'gmd3', 'gsl', 'init_data_dir', 'is_stock_type', 'json', 'load_global_config', 'merge_data', 'merge_data_first', 'merge_data_last', 'merge_data_max', 'merge_data_min', 'merge_data_sum', 'os', 'reconnect', 'register_create_nparray', 'remove_sector', 'rpc_init', 'run', 'subscribe_callback_wrapper', 'subscribe_l2thousand', 'subscribe_quote', 'subscribe_whole_quote', 'supply_history_data', 'sys', 't2d', 'time', 'timetagToDateTime', 'timetag_to_datetime', 'traceback', 'try_except', 'unsubscribe_quote', 'xtdata_config']
['Future', 'Thread', 'ThreadPoolExecutor', 'XTQC', 'XtQuantTrader', 'XtQuantTraderCallback', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'asyncio', 'cp', 'current_thread', 'os', 'title', 'xttype']
Help on function get_full_tick in module xtquant.xtdata:

get_full_tick(code_list)
    获取盘口tick数据
    :param code_list: (list)stock.market组成的股票代码列表
    :return: dict
    {'stock.market': {dict}}

OK

本文由 海星量化研究所 作者提供,转载请保留链接和署名!网址:https://qmt.hxquant.com/?id=35

声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源; 2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任; 3.作者投稿可能会经我们编辑修改或补充。

搜索
排行榜
关注我们

扫码开通QMT/ptrade