<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>信易科技用户论坛| chaos | 动态</title>
	<link>https://forum.shinnytech.com/%e6%88%90%e5%91%98/6252148c-45a4-4d01-bed8-9c9673ddb01a/activity/</link>
	<atom:link href="https://forum.shinnytech.com/%e6%88%90%e5%91%98/6252148c-45a4-4d01-bed8-9c9673ddb01a/activity/feed/" rel="self" type="application/rss+xml" />
	<description>chaos的动态信息。</description>
	<lastBuildDate>Tue, 01 Sep 2026 00:58:58 +0800</lastBuildDate>
	<generator>https://buddypress.org/?v=10.4.0</generator>
	<language>zh-CN</language>
	<ttl>30</ttl>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>2</sy:updateFrequency>
	
						<item>
				<guid isPermaLink="false">07cc0faba33be0a94a626c4afbc0172e</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26514</link>
				<pubDate>Mon, 31 Aug 2026 03:07:40 +0800</pubDate>

									<content:encoded><![CDATA[<p>银河期货定制版是在 TqSdk 免费版基础上增加银河期货免费实盘功 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">c4330844f3e1f269ce3c9949c04a9a5a</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26512</link>
				<pubDate>Mon, 31 Aug 2026 03:06:59 +0800</pubDate>

									<content:encoded><![CDATA[<p>1. 可以使用。Ubuntu 22.04 和 Python 3.10 满足 TqSdk 的运行要求，执行 `python3.10 -m pip install -U tqsdk` 安装即可。只获取行情时使用 `TqApi(auth=TqAuth(&#8230;))`，无需登录实盘交易账户。</p>
<p>2. 天勤期货历史数据从 2016 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0dde9d16b9390b5247929ea4da2b14e3</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26511</link>
				<pubDate>Mon, 31 Aug 2026 03:06:49 +0800</pubDate>

									<content:encoded><![CDATA[<p>`insert_order()` [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">dfd14a6b161655e27e88d1844f579f72</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26509</link>
				<pubDate>Mon, 31 Aug 2026 03:06:07 +0800</pubDate>

									<content:encoded><![CDATA[<p>两者用途不同，没有统一的“更推荐”。</p>
<p>如果策略直接管理委托价格、撤单、部分成交和订单状态，使用 `insert_order()`。</p>
<p>如果策略只关心某合约最终应持有多少净仓位，希望程序自动处理开平仓、撤单和追单，使用 `TargetPosTask` 的 `set_target_ [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">bb4f6cdcff0e3d874a1cd1fc364c1e4c</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26504</link>
				<pubDate>Mon, 24 Aug 2026 02:06:45 +0800</pubDate>

									<content:encoded><![CDATA[<p>15 天指的是 TqSdk 专业版试用期，不是 TqSdk 整体只能使用 15 天。试用到期后仍可继续使用免费版提供的功能；如果需要继续使用历史数据下载、股票行情等专业版增值功能，则需要购买专业版。</p>
<p>免费版和专业版的具体功能区别可以参考：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9927aa25ebf481b3423ef8aa24899f24</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26503</link>
				<pubDate>Mon, 24 Aug 2026 02:06:21 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，按您的问题逐项回复：</p>
<p> 	历史数据是否可能修订？<br />
TqSdk 的期货行情直接接收并转发交易所数据，不经过第三方数据供应商清洗。历史数据通常保持不变，但我们不 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">cfa3c50e0514d00390dc9af81e618196</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26500</link>
				<pubDate>Mon, 17 Aug 2026 02:44:24 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以到快期3官方Q群675261943反馈哈</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">5834abfe86e585b771f607be0771bbf2</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26496</link>
				<pubDate>Thu, 13 Aug 2026 06:42:15 +0800</pubDate>

									<content:encoded><![CDATA[<p>TqSdk 免费版支持广期所行情。请先确认合约代码大小写正确，例如 `GFEX.si2609`，交易所代码为大写，广期所品种代码为小写。</p>
<p>同时建议执行 `pip install -U tqsdk` 升级，并调用 `query_quotes()` 检查当前可用合约，其中 `exchange_id` 设为 `GFEX`、`expired` 设为 `False`。</p>
<p>如果仍无法读取，请补充 TqSdk 版本、完整合 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">01acc286c48b658a5aba8ea143cdbf75</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26495</link>
				<pubDate>Thu, 13 Aug 2026 06:42:11 +0800</pubDate>

									<content:encoded><![CDATA[<p>支持。TqSdk 免费版可以获取广期所商品期权行情。</p>
<p>您这里返回空列表，是因为查询的 `GFEX.lc2609`、`GFEX.ps2609`、`GFEX.si2609` 并不是当前挂牌期权对应的标的月份，并非免费版不支持广期所期权。并不是每个期货月份都会挂牌期权。</p>
<p>建议先调用 `query_quotes()` 查 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6445ad22bbabfb381b999ea3a5567fc4</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26494</link>
				<pubDate>Thu, 13 Aug 2026 06:42:07 +0800</pubDate>

									<content:encoded><![CDATA[<p>目前程序可能在跨日后继续保持连接，普通网络断线时 TqSdk 也会尝试自动重连，但不建议将其理解为模拟盘承诺 24 小时持续在线。</p>
<p>结算、系统维护或网络变化都可能影响连接及数据状态。为保证策略运行稳定，仍建议每天开盘前重启程序，重新建立连接和行情订阅，并检查账户、持仓和委托状态后再开始交易。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">5d41c87775039496d70ce01452156ed1</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26493</link>
				<pubDate>Thu, 13 Aug 2026 06:41:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>期货与股票的机制不同。股票会因分红、送股等发生除权除息，因此有前复权、后复权等概念；期货本身不存在这种意义上的复权。</p>
<p>主力连续合约在换月时出现价格跳变，是不同交割月份合约之间存在价差造成的。采用差值调整、比例调整或其他方式处理，都会引入人为规则，而且不同处理方式得到的结果也不同，因此我们不会提供所谓的“复权期货主连”数据。</p>
<p>TqSdk 提供原始主连行情及历史主连映射。若研究中需要消除换月跳变，可以使用 `query_hi [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7a335eb850c74121796cc4c024a388a2</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26485</link>
				<pubDate>Mon, 10 Aug 2026 01:51:15 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以分为历史映射和实时映射两种情况。</p>
<p>历史日 K 对应的实际主力合约，可调用 `query_his_cont_quotes()` 查询，参数为主连代码 `KQ.m@CZCE.TA`，`n` 按需指定。</p>
<p>返回结果中，`date` 是交易日，`KQ.m@CZCE.TA` 列就是当日对应的实际合约代码，例如 `CZCE.TA2601`。将日 K 线按交易日与该表对齐，即 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">63f03dc018920d543d5e486ce5584f0c</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26483</link>
				<pubDate>Fri, 07 Aug 2026 02:16:46 +0800</pubDate>

									<content:encoded><![CDATA[<p>我们这边是没有做限制的，你可能得问下期货公司CTP柜台是否支持多个账号同时登录</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">27eb9778bd8b6447055cb3e6ea553993</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26482</link>
				<pubDate>Fri, 07 Aug 2026 02:15:50 +0800</pubDate>

									<content:encoded><![CDATA[<p>1.可以购买专业版，然后用datadownload把历史数据下载来做本地回测<br />
2.回测信息可以账号里面的tqsdk_stat参数获取，参考文档https://doc.shinnytech.com/tqsdk/latest/usage/backtest.html#id3<br />
如果想让web_gui保持打开状态，也可以再程序最后加上循环让程序保持运行状态</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b2d97a2fd3a948f3a2dba0a225ddf174</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26475</link>
				<pubDate>Mon, 27 Jul 2026 02:45:38 +0800</pubDate>

									<content:encoded><![CDATA[<p>已收到我们会记录这个问题，但外盘我们维护优先级也比较低。<br />
我们提供免费的延时外盘数据主要是给长期行情走势做一个参考，也不支持外盘交易。而且外盘实时数据需要很大费用，由于成本问题目前不考虑。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0585b47017a1f31da9cae6036f39843d</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26473</link>
				<pubDate>Mon, 27 Jul 2026 02:41:54 +0800</pubDate>

									<content:encoded><![CDATA[<p>1.目前没有对外承诺固定的行情延迟指标。您采用“本地接收时间减去行情时间戳”的方式，测得的是一个端到端时间差，其中包含交易所时间戳、行情采集与转发、公网传输、本机时钟误差以及程序调度等多个环节，并不等同于 TqSdk 行情服务器自身的推送延迟。</p>
<p>此外，交易所行情时间与用户本机时间并非严格同步，仅通过单边时间比较，无法准确计算行情从交易所到本地的毫秒级延迟。具体原因可以参考这篇说明：</p>
<p>2.行情服务器收到行情更新后会向客户端 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">2438453e3f6358521414b5326e8ce5fb</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26469</link>
				<pubDate>Thu, 23 Jul 2026 08:48:19 +0800</pubDate>

									<content:encoded><![CDATA[<p>建议还是用在线文档，可以实时更新</p>
<p>然后您可以试试克隆到本地后让AI生成一个pdf文件，或者加下我们Q群748265037，群文件里应该有之前老版本的pdf文件</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">37405b799414028c2922810dc8784675</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26468</link>
				<pubDate>Thu, 23 Jul 2026 07:41:51 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以直接在程序中同时订阅两个合约：</p>
<p>&#8220;`python<br />
quote1 = api.get_quote(&#8220;合约1&#8221;)<br />
quote2 = api.get_quote(&#8220;合约2&#8221;)<br />
&#8220;`</p>
<p>然后根据需要读取对应合约的行情即可。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">493ea1a17081ed932f4cde0b1259a628</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26467</link>
				<pubDate>Thu, 23 Jul 2026 07:41:33 +0800</pubDate>

									<content:encoded><![CDATA[<p>历史数据下载建议控制在 5 个进程以内。增加更多进程不一定能继续提高速度，反而可能增加账号会话、网络及服务端压力。</p>
<p>盘中断线后需要补充 Tick 数据时，可以记录最后一条已保存数据的时间，再使用 `DataDownloader` 下载断线期间的数据。重连后应同时恢复实时行情接收，最后合并补充数据和实时数据。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">66f969ce05b1eb5f8c5854f806dffe6d</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26460</link>
				<pubDate>Fri, 17 Jul 2026 02:31:12 +0800</pubDate>

									<content:encoded><![CDATA[<p>建议可以下载本地AI来分析https://doc.shinnytech.com/tqsdk/latest/ai_editor/index.html</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">88f7d7d98e5d083a145b464f927acaf3</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26458</link>
				<pubDate>Fri, 17 Jul 2026 02:29:48 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤订阅数量是有限制的，get_quote数量超过1000可能会触发流控<br />
您的需求是要找到昨日出现MACD金叉的股票，可以下载昨日的历史行情做分析不需要实时订阅</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">464bc4286c78e51f02f98c7a7c7a89d8</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26455</link>
				<pubDate>Thu, 16 Jul 2026 06:44:41 +0800</pubDate>

									<content:encoded><![CDATA[<p>应该是数据有缺失，和免费付费无关，目前外盘数据主要是用于提供长期行情走势参考，但不保证数据质量</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d99e4bb261ce11794dd4bd2c28ba59be</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26453</link>
				<pubDate>Mon, 13 Jul 2026 01:57:49 +0800</pubDate>

									<content:encoded><![CDATA[<p>用datadownloader下载历史数据，可以参考这篇文章https://doc.shinnytech.com/tqsdk/latest/reference/tqsdk.tools.download.html#tqsdk.tools.DataDownloader</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">1517067ad06b59811c61bff5ef961e8f</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26452</link>
				<pubDate>Mon, 13 Jul 2026 01:56:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>期货相关的比如商品期权这些历史数据也是16年及之后</p>
<p>股票相关比如ETF期权、个股的是18年及之后</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b0b1588eadc80df52696707ed8614470</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26447</link>
				<pubDate>Fri, 10 Jul 2026 02:00:30 +0800</pubDate>

									<content:encoded><![CDATA[<p>按您描述的权限范围，应该是 EDB 行情历史服务，不需要通过 OpenCTP/CTP 接口连接。它是直接的 HTTPS CSV 接口：</p>
<p>免费访问无需 token：可取任意历史区间的日线（`period=86400`），以及最近 1 年的分钟线（`period=60`）。数据预计自 2021-01-01 起提供，具体以合约上 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">443043ace67507c30354272b0e94106d</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26445</link>
				<pubDate>Tue, 07 Jul 2026 01:21:05 +0800</pubDate>

									<content:encoded><![CDATA[<p>专业版也只有l1数据的，目前就上期所上期能源有五档行情</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">5611855984bb63aec415b88f13b85224</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26441</link>
				<pubDate>Tue, 30 Jun 2026 07:27:54 +0800</pubDate>

									<content:encoded><![CDATA[<p>哪家期货公司呢，可以加Q群748265037在里面咨询哈</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0c6eeb9c3d0277ec4c06f9b220a85b46</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26437</link>
				<pubDate>Fri, 26 Jun 2026 07:56:10 +0800</pubDate>

									<content:encoded><![CDATA[<p>持仓列表里不会区分手动还是程序下单哈，可以用get_position把持仓合约筛选出来，然后通过get_quote_list获取持仓合约的行情</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">dc328adc76f718f44d352676da3d9ec3</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26436</link>
				<pubDate>Fri, 26 Jun 2026 07:54:38 +0800</pubDate>

									<content:encoded><![CDATA[<p>我们的期货数据是16年及之后哈</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">afa9d1b8fd54bfd8af5e12667a81ffad</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26435</link>
				<pubDate>Fri, 26 Jun 2026 07:53:58 +0800</pubDate>

									<content:encoded><![CDATA[<p>外盘延时数据是不收费的，可以参考这篇文档https://doc.shinnytech.com/tqsdk/latest/usage/kqd_symbol.html</p>
<p>如果程序报不存在的话应该是没有这个外盘合约</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">7d792539519ebbfa1b9d65def2acaf7a</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26430</link>
				<pubDate>Thu, 25 Jun 2026 01:55:50 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以，分两种情况处理：</p>
<p>1. 如果是想知道“主连当前对应的实际主力合约”，订阅主连代码后看 `quote.underlying_symbol`。例如主连代码是 `KQ.m@SHFE.rb`，先 `api.get_quote(主连代码)`，再 `api.wait_update()`，然后读取这个 quote 的 `underlying_symbol` 字段即可。</p>
<p>回测里也可以用这个字段。如果需 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3f567b2e3523782cd75805ede19afc20</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26428</link>
				<pubDate>Wed, 24 Jun 2026 01:53:42 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以交易商品期权的</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e882f20ae689d307ad48947958fa04b1</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26425</link>
				<pubDate>Tue, 23 Jun 2026 01:32:39 +0800</pubDate>

									<content:encoded><![CDATA[<p>先说结论：同花顺回放里显示的 PTA2609，不能直接和天勤的 CZCE.TA605 对比，它们并不是同一合约。TA605 是 2026 年 5 月合约，TA2609 是 2026 年 9 月合约；还需要确认同花顺回放使用的是具体合约、主连还是其内部连续合约规则。</p>
<p>另外，天勤 1 分钟 K 线的 datetime 是该 K 线的起始时刻。因此天勤的 09:00 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ad84f07f191b1ef09449e29d136d5fbf</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26420</link>
				<pubDate>Wed, 17 Jun 2026 05:45:37 +0800</pubDate>

									<content:encoded><![CDATA[<p>你说的专业版是指天勤还是快期呢，然后什么场景下还要用token来登录api呢</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9efff785d0a4e935d4650eb1f91349db</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26418</link>
				<pubDate>Mon, 15 Jun 2026 09:08:41 +0800</pubDate>

									<content:encoded><![CDATA[<p>这个报错的意思是当前 Python 环境里缺少 `aiohttp` 这个依赖包。通常是安装不完整，或者运行代码用的 Python 环境和安装 TqSdk 时的环境不是同一个。</p>
<p>可以在当前运行代码的环境里重新安装/升级 TqSdk，命令是：`python -m pip install -U tqsdk`。</p>
<p>如果仍然提示缺 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">a037515a7ef191c7e9859ee61b405483</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26417</link>
				<pubDate>Mon, 15 Jun 2026 09:08:25 +0800</pubDate>

									<content:encoded><![CDATA[<p>这是因为 `get_kline_serial()` 返回的是一个会被后续行情包更新的引用。刚创建订阅对象时，首包数据还不一定已经回来，所以立刻 `print(k_1)` 可能看到 `NaN` 或未初始化值；等外层 `api.wait_update()` 继续驱动之后，这个对象才会被填充和更新。</p>
<p>你图里的 `k_2` 之所以正常，是因为它在主流程里先创建，后续创建 task、进入 `wait_upd [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">db98c51588c7d43d1020abb71dbbbd4e</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26415</link>
				<pubDate>Mon, 15 Jun 2026 09:07:22 +0800</pubDate>

									<content:encoded><![CDATA[<p>回测模式下取不到是正常的：`quote.upper_limit` 和 `quote.lower_limit` 在回测中会是 `nan`。这两个字段依赖行情侧提供的合约状态数据，回测数据里目前不包含这部分 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">49b2c9da9ee7020082b03d82a763ce92</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26414</link>
				<pubDate>Mon, 15 Jun 2026 07:01:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>query_all_level_finance_options  的 入参 has_A=False 这里把可用的合约过滤掉了，把这个参数改成none</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b2b58827f2c06d34318107a4b501adcf</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26409</link>
				<pubDate>Fri, 12 Jun 2026 03:27:44 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤没有实时的外盘数据哈</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0be05b9c988de9689ce8d3daa20edc8a</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26407</link>
				<pubDate>Tue, 09 Jun 2026 08:00:46 +0800</pubDate>

									<content:encoded><![CDATA[<p>文华商品指数的具体成分、权重及换月规则并非 TqSdk 提供的数据，无法保证自行计算结果与文华指数一致。官方也不提供代写代码服务。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3a1882983e0e6c3cfc6107de09f43dad</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26406</link>
				<pubDate>Tue, 09 Jun 2026 08:00:46 +0800</pubDate>

									<content:encoded><![CDATA[<p>中证商品期货指数的具体成分、权重及换月规则并非 TqSdk 提供的数据，无法保证自行计算结果与官方指数一致。官方也不提供代写代码服务。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">2a57b5f1c942d3bfd7054a39580bb487</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26405</link>
				<pubDate>Tue, 09 Jun 2026 08:00:46 +0800</pubDate>

									<content:encoded><![CDATA[<p>`api is not None` 只能说明 Python 中的 `TqApi` 对象已经创建，不能代表客户端与服务端连接始终正常。</p>
<p>程序需要持续调用 `api.wait_update()` 才能收发数据和驱动后台任务。可以使用 `api.wait_update(deadline=time.time() + 10)` 设置等待超时，但没有更新不 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b291b58442da8d65f0a7c0378ff8a851</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26401</link>
				<pubDate>Mon, 08 Jun 2026 06:44:23 +0800</pubDate>

									<content:encoded><![CDATA[<p>需要看具体成交明细才能判断。模拟账户的盈亏以开平仓成交价、方向、手数和合约乘数计算，“止损”本身可能只是策略里的触发/记录标签，最终是否盈利要看实际开仓价和平仓成交价。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d4d8a314ce9c185d329364247b85129d</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26400</link>
				<pubDate>Mon, 08 Jun 2026 06:44:23 +0800</pubDate>

									<content:encoded><![CDATA[<p>麻烦提供一下卡住时的原始报错，我们先看具体卡在哪一步。</p>
<p>这类情况可能和网络、DNS、代理、防火墙、认证连接或行情服务器连接有关，只看当前代码片段还不太好判断。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">67c450e521cfae34729bec590f1b3aae</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26399</link>
				<pubDate>Mon, 08 Jun 2026 06:44:23 +0800</pubDate>

									<content:encoded><![CDATA[<p>期货回测里可以通过 `TqSim.set_commission()` 设置每手手续费。回测时先创建 `sim = TqSim()`，把它传给 `TqApi`，然后对需要的合约设置手续费即可，例如 `sim.set_commission(&#8220;SHFE.cu2607&#8221;, 50)`。</p>
<p>需要注意：这是按“每手手续费”设置；如果多个合约都交易，需要分别设置。股票本地模拟 `TqSimStock` 暂不支持设置手续费。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">6460ccacb386104f54e40feece6be8ec</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26398</link>
				<pubDate>Mon, 08 Jun 2026 06:44:03 +0800</pubDate>

									<content:encoded><![CDATA[<p>目前天勤没有 `TqReplay` 这个复盘模式，因此不建议按这个方向处理。</p>
<p>如果是想做历史数据回放/策略验证，可以使用 `TqBacktest` 回测模式。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">79a6f80f8ad0986dd60d6bde61b7b39e</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26389</link>
				<pubDate>Thu, 04 Jun 2026 01:19:54 +0800</pubDate>

									<content:encoded><![CDATA[<p>不会，如果是今仓应该也在pos_short_today上，可以再测试一下或者给个最小复现问题的代码</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">43d0a997e4924e1a9d926094944efa6f</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26385</link>
				<pubDate>Wed, 03 Jun 2026 03:04:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>﻿不是普通的向量化回测，可以理解成“带撮合过程的账户模拟回测”，但也不要把它理解成简单的“信号一出就按K线价格立刻成交”。</p>
<p>天勤回测是事件驱动的，回测里下单、撤单、成交都要跟着 `api.wait_update()` 往后推进；而且撮合不是只看你这一根 5 分钟 K 线的收盘价。对最小订阅周期的 K 线，回测内部会按生成出来的盘口去做撮合，所以就可能出现你看到的两类现象：</p>
<p>1. 反手时，平空和开多不是同一个时刻完成，看起 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">2d937f25835e8337b96ca0eeffe28271</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26379</link>
				<pubDate>Tue, 02 Jun 2026 05:54:29 +0800</pubDate>

									<content:encoded><![CDATA[<p>支持的。你这段代码里目前只是计算并打印了 `ma_fast_val`、`ma_slow_val`，还没有把指标序列写回 `klines`，所以 web_gui 没有可绘制的数据。</p>
<p>处理方式是：在 `api.wait_update()` 之后，把完整的均线序列加到 K 线 DataFrame 的附加列上。</p>
<p>画到主图：新增 `ma_fast_MAIN`、`ma_slow_MAIN` 两列，值分别用 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">eadeeeba3dba122f8b53db98feedae5b</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26375</link>
				<pubDate>Fri, 29 May 2026 05:53:33 +0800</pubDate>

									<content:encoded><![CDATA[<p>实时情况下如果只需要 1 分钟 K 线，订阅时用 `api.get_kline_serial(symbol, 60, data_length=2)`。</p>
<p>这里第二个参数 `60` 就表示 1 分钟周期，`data_length` 表示这个 DataFrame 里保留最近多少根 K 线。刚订阅时 TqSdk 会先补齐最近的历史 K 线，所以看起来会“一下子来一大堆”，这是正常的初始化数据，不是推送了多个周期的 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>