api.get_index_bars(9,1, '000001', 1, 2)6 : 查询分时行情参数:市场代码, 股票代码, 如: 0,000001 或 1,600300api.get_minute_time_data(1, '600300')7 : 查询历史分时行情参数:市场代码, 股票代码,时间 如: 0,000001,20161209 或 1,600300,20161209...
get_security_bars(int(category), int(market), code, int(start), int(count))) def get_security_count(params): return (api.get_security_count(int(params[0]))) def get_security_list(params): return (api.get_security_list(int(params[0]), int(params[1]))) def get_index_bars(params...
api.get_index_bars(9,1, '000001', 1, 2) 6 : 查询分时行情 参数:市场代码, 股票代码, 如: 0,000001 或 1,600300 + api.get_minute_time_data(1, '600300') 7 : 查询历史分时行情 参数:市场代码, 股票代码,时间 如: 0,000001,20161209 或 1,600300,20161209 + api.get_history_minute_time_...
api.get_security_bars(9, 0, code,index_of_end, index_length) # 返回普通list data = api.to_df(api.get_security_bars(9, 0, code,index_of_end, index_length)) # 返回DataFrame return data print(QA_fetch_get_stock_day('000001','2017-07-03','2017-07-10')) print(QA_fetch_get_...
# data = api.get_index_bars(9, 1, '000001', 1, 2) # pprint.pprint(data) # log.info("查询分时行情") # data = api.get_minute_time_data(TDXParams.MARKET_SH, '600300') # pprint.pprint(data) # log.info("查询历史分时行情") # data = api.get_history_minute_time_data( # TDXPar...
api.get_index_bars(9,1, '000001', 1, 2) ``` ### 6 : 查询分时行情 参数:市场代码, 股票代码, 如: 0,000001 或 1,600300 ``` api.get_minute_time_data(1, '600300') ``` ### 7 : 查询历史分时行情 参数:市场代码, 股票代码,时间 如: 0,0000...
成交量为0 @update_last_ack_time def get_security_bars(self, category, market, code, start, count): cmd = GetSecurityBarsCmd(self.client, lock=self.lock) cmd.setParams(category, market, code, start, count) return cmd.call_api() @update_last_ack_time def get_index_bars(self, category...
api.get_index_bars(9,1, '000001', 1, 2) ''' @update_last_ack_time def get_security_quotes(self, all_stock, code=None): """ 支持三种形式的参数 get_security_quotes(market, code ) get_security_quotes((market, code)) get_security_quotes([(market1, code1), (market2, code2)] )...