<?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>信易科技用户论坛| 全站动态</title>
	<link>https://forum.shinnytech.com/%e5%8a%a8%e6%80%81/</link>
	<atom:link href="https://forum.shinnytech.com/%e5%8a%a8%e6%80%81/feed/" rel="self" type="application/rss+xml" />
	<description>全站动态信息。</description>
	<lastBuildDate>Fri, 13 Nov 2026 01:59:35 +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">da76033c1205a539e46a1679918b6874</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26599</link>
				<pubDate>Wed, 04 Nov 2026 02:23:50 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，程序结束前调用 api.close() 是正确的用法。这条日志表示程序退出时，WebSocket 的心跳任务还没清理完。如果下一次运行是重新启动一个独立的 Python 进程，上一进程的这个任务不会带过去。</p>
<p>方便贴一下能复现的最小代码，以及 TqSdk 和 websockets 的版本吗？保留 TqApi 的创建、使用和关闭这几步就行，账号密码记得删掉。我们按您的运行方式复现一下。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9cfd35c6020bdb0566117d892ab027e3</guid>
				<title>maxiaoqi 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26598</link>
				<pubDate>Fri, 30 Oct 2026 07:12:48 +0800</pubDate>

									<content:encoded><![CDATA[<p>print(&#8216;成交记录&#8217;,len(df),&#8217;条。&#8217;)<br />
api.close()</p>
<p>在程序的最后一行，写了api.close()，引发了报错：</p>
<p>Task was destroyed but it is pending!<br />
task: </p>
<p>关键词是Connection.keepalive() running</p>
<p>虽然是最后一行，不影响当前程序运行，但可能会影响下一个py进程。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">1580dd6d056d64f0c4ecd6bef4576e4c</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26596</link>
				<pubDate>Fri, 30 Oct 2026 05:48:54 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，非常理解您的提议。我们也一直在跟进和优化相关处理。这项调整还涉及历史数据的清洗和修正，也要保证历史和实时数据的口径一致，工作量比较大。同时还要兼顾新功能开发和问题修复，整体推进得比较慢，还请您多理解一下。后续有明确进展，我们也会在群里同步。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">deb2ba9297856872fb4e564650eb0a23</guid>
				<title>tygk98 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26593</link>
				<pubDate>Fri, 30 Oct 2026 05:06:12 +0800</pubDate>

									<content:encoded><![CDATA[<p>多年来，tqsdk郑商所夜盘品种分钟K线早上9:00开盘价的问题始，终未能解决，总是在强调客观理由；那么人家其它软件都能正常解决的问题，你们却始终无法解决。是不是应该反思一下？</p>
<p>至少应该去问一下，人家别的软件是怎么解决的？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">adea860ee51ffa91f3724aebcfa1fc03</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26592</link>
				<pubDate>Fri, 30 Oct 2026 01:24:58 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，先说明一下郑商所开盘前的特殊行情推送：对于正常有夜盘的品种，日盘开盘前可能收到买一、卖一等盘口更新，但 Tick 中的最新价仍沿用上一夜盘收盘价，累计成交量没有增加。这些推送不代表日盘已经发生新的成交。<br />
针对您的问题，逐项说明如下：</p>
<p>open 来自 Tick 里的最新价，盘前成交量没有变化的快照也会参与日盘首根 K 线的合成 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">1026f42dcb3468dff09ea827140aa692</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26589</link>
				<pubDate>Wed, 28 Oct 2026 09:03:14 +0800</pubDate>

									<content:encoded><![CDATA[<p>快期账号用于天勤服务的身份和权限认证，像期货账号、交易委托单这些是直接发到期货公司服务器的，不经过天勤</p>
<p>或者您可以直接描述一下现在是遇到什么问题呢</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">cc44481b737fa89c640b580b90f2741a</guid>
				<title>charlie89 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26588</link>
				<pubDate>Wed, 28 Oct 2026 05:21:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好。我们用 TqSdk(3.9.1)的 1 分钟 K 线做回测,实盘用 CTP tick 自己合成 1 分钟 K 线,<br />
需要两边口径一致。关于郑商所夜盘品种日盘第一根 K 线(09:00)的开盘价,想向官方确认规则。</p>
<p>一、现象</p>
<p>用 api.get_kline_serial(symbol, 60, data_length=10000) 取 2026- [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b886447477cea088b8e6e0c9dbeb8a67</guid>
				<title>775300227 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26587</link>
				<pubDate>Tue, 27 Oct 2026 17:15:56 +0800</pubDate>

									<content:encoded><![CDATA[<p>使用 TqSdk 3.10.1、TqSim，仅实时读取 DCE.jm2701 的 Quote，并最多观察两行 300 秒 K 线，不下单、不交易、不回测。请官方确认：</p>
<p>1. 此场景首次携带 Bearer 令牌的 WSS 连接，其确切域名、端口、路径是什么？服务由谁运营，地址是否随账号类型或权限不同？请提供适用的官方说明。<br />
2. 官方是否支持为此用途显式固定 url？若支持，请说明适用地址、条件及针对 3.10. [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">4298c5a7f58539dcbcc5ef69ae92d5a6</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26586</link>
				<pubDate>Tue, 27 Oct 2026 08:00:50 +0800</pubDate>

									<content:encoded><![CDATA[<p>可以加下Q群748265037，然后把你的快期账号、ip地址、觉得速度慢的时间段可以发过来我们后台看看的</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">419021bca3f66d61ded9ba0aac0153b0</guid>
				<title>maxiaoqi 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26585</link>
				<pubDate>Tue, 27 Oct 2026 06:46:55 +0800</pubDate>

									<content:encoded><![CDATA[<p>我调用的都是日线数据，而且根数很少，不应该限流吧？</p>
<p>盘中慢的难以理解，盘后就快的很。</p>
<p>跟我更换交易主机有关系吗？或是因为同一账号在多点登录了？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9b44dad012d902dd2ce12b73185f7979</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26584</link>
				<pubDate>Tue, 27 Oct 2026 02:58:17 +0800</pubDate>

									<content:encoded><![CDATA[<p>现在应该可以了哈</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">33ae61b7661f201c609d46dbac7a0c4a</guid>
				<title>zpsw123 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26583</link>
				<pubDate>Mon, 26 Oct 2026 10:49:04 +0800</pubDate>

									<content:encoded><![CDATA[<p>api = TqApi(backtest=TqBacktest(start_dt=date(2026,10,8), end_dt=date(2026,10,8)),auth=TqAuth())<br />
File &#8220;C:UsershuaweiAppDataLocalProgramsPythonPython312Libsite-packagestqsdkapi.py&#8221;, line 289, in [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">8809685876ead809319ff5e04d31e255</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26582</link>
				<pubDate>Mon, 26 Oct 2026 08:55:27 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，核对后，这两例差额可以由期权到期后，盘后行权及期货自对冲形成的量仓变化完整解释。<br />
MA610 对应期权于 2026-09-11 到期，MA611 对应期权于 2026-10-13 到期，恰好是您举例的两天。期权行权会产生对应的期货持仓，因此也会影响这两个期货合约的统计。<br />
按郑商所规则，行权建立期货仓位，会增加期货成交量和持仓量；随后办理期货自对冲平仓，会减少持仓，但仍计入成交量。这些属于盘后处理，不 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ab92998b56a0f28e9ebfc2ffcf0aef4b</guid>
				<title>erwererwe 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26581</link>
				<pubDate>Mon, 26 Oct 2026 06:33:28 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，我们使用公开 EDB /md/kline，按 period=60 下载甲醇逐合约分钟数据，并与 period=86400 及郑商所官方每日行情核对。以下两例已重新拉取，分钟字段复现保存的原档；按同一交易日汇总（含对应夜盘 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">4886ba3d6b6d8fb365c8fe1c76ec1a7e</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26580</link>
				<pubDate>Mon, 26 Oct 2026 05:46:05 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，今天天勤回测服务器负载较高，回测服务暂时无法使用。请您在今晚夜盘开盘前再试一下，给您带来不便，敬请谅解。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">714c0ae9e1ded20d2802c456ba3d74d7</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26579</link>
				<pubDate>Mon, 26 Oct 2026 05:45:45 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，今天天勤回测服务器负载较高，回测服务暂时无法使用。请您在今晚夜盘开盘前再试一下，给您带来不便，敬请谅解。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">f8f5d23b0d6265d5840b22f87c35cedd</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26578</link>
				<pubDate>Mon, 26 Oct 2026 05:43:34 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，建议先去掉多进程、队列等封装，用单进程、单线程、一个 TqApi 获取一个合约 K 线的最小代码单独测试，看看是否仍会出现全 NaN 或等待不返回的问题。</p>
<p>如果仍然出现，请贴出可以直接运行的最小代码（隐去账号密码）、具体 Python 和 TqSdk 版本、实际运行输出及脱敏 debug 日志；如果最小代码正常，再逐步加回原有逻辑，确认从哪一步开始出现问题。这样我们才能根据实际可复现的情况进一步排查。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3a9261c419951343a9fab9062c7668ee</guid>
				<title>ambitjohnson 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26577</link>
				<pubDate>Mon, 26 Oct 2026 05:23:11 +0800</pubDate>

									<content:encoded><![CDATA[<p>诊断结论：`tianQin_backtest_demo.py` 的 TqTimeoutError<br />
根因定位：天勤回测行情服务器挂了<br />
通过对比实验 + monkey-patch TqApi 初始化流程， 100% 确认 ：<br />
关键证据 ：monkey-patch 后打印出`_setup_connection done, md_url=wss://backtest.shinnytech.com/t/nfmd/front/mobi [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">f8c471711cd5735e1aadc6be57e4d0c0</guid>
				<title>testme 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26576</link>
				<pubDate>Mon, 26 Oct 2026 05:11:56 +0800</pubDate>

									<content:encoded><![CDATA[<p>api = TqApi(<br />
    backtest=TqBacktest(<br />
        start_dt=datetime.date(2026, 9, 1),<br />
        end_dt=datetime.date(2026, 10, 1),<br />
    ),<br />
    auth=TqAuth(os.getenv(&#8220;TQ_USERNAME&#8221;), os.getenv(&#8220;TQ [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">c0987215980629634da302b7440338d1</guid>
				<title>jlepcs 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26575</link>
				<pubDate>Fri, 23 Oct 2026 08:19:41 +0800</pubDate>

									<content:encoded><![CDATA[<p>注：主故障（多进程提交内存）已收敛并修复；本帖基于旧口径（2025-12-05“10个以内+动态调整”）深挖 4 个文档空白/语义澄清问题。<br />
【一句话摘要】​</p>
<p>多进程并发建连取数主故障已修复，但衍生出 4 个文档未明确覆盖的问题（Q2 全NaN无异常判别+deadline绕 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">706df69db72d52f0954068bde6e92035</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26574</link>
				<pubDate>Mon, 12 Oct 2026 02:34:47 +0800</pubDate>

									<content:encoded><![CDATA[<p>2026-09-23 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">29aff7dd4a3b13930dfc7f195f12ddc2</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26573</link>
				<pubDate>Mon, 12 Oct 2026 02:34:43 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤主力合约的切换规则是：某合约的成交量和持仓量均成为该品种最大后，在下一个交易日开盘后切换。我们核对了历史主力映射，`KQ.m@SHFE.ni` 在 2026-09-23 对应 `SHFE.ni2610`，2026-09-24 已切换为 `SHFE.ni2611`。</p>
<p>如果策略仍向 `ni2610` 报单，常见原因是程序启动时把 `quote.underlying_symbol` 赋值给了一个普通字符串变量。后续即使 ` [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">25e7a9647205ac6b8948cd032355f537</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26572</link>
				<pubDate>Mon, 12 Oct 2026 02:34:39 +0800</pubDate>

									<content:encoded><![CDATA[<p>目前 TqKq 没有对外提供“下单前只读查询逐合约开仓、平今、平昨手续费率”的公开接口。</p>
<p>需要注意：</p>
<p>1. `TqSim.get_commission()` 只适用于本地 `TqSim`，不能用来代表 TqKq 服务端模拟账户的实际扣费规则。<br />
2. TqKq 成交后可以从账户对象的 `commission` 查看当日累计手续费，但当前没有公开的逐笔手续费字段或完整 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ceb071f599fe0832667d7c4cb041715c</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26570</link>
				<pubDate>Mon, 12 Oct 2026 02:33:38 +0800</pubDate>

									<content:encoded><![CDATA[<p>从你贴出的日期看，K 线本身没有错位，应该是转换 `datetime` 字段时受 Linux 服务器 UTC 时区影响，导致日期显示为前一天。</p>
<p>K 线的 `datetime` 是纳秒时间戳，天勤已经提供了 `time_to_str()` 函数，可以直接转换为北京时间字符串。先导入 `from tqsdk.tafunc import time_to_str`，然 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">36cb641ca5d8fcab47910a932c6cbc60</guid>
				<title>baihualin 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26569</link>
				<pubDate>Fri, 09 Oct 2026 14:20:12 +0800</pubDate>

									<content:encoded><![CDATA[<p>=== 当前时段 ===<br />
现在时间: 2026-10-09 21:57:48 Friday<br />
是否可开仓: &#x274c; 否<br />
原因: 夜盘开仓时段（品种【甲醇】不在允许列表）</p>
<p>=== 连接天勤 ===<br />
/sys/firmware/dmi/tables/smbios_entry_point: Permission denied<br />
/dev/mem: Perm [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9a5fc8ca308162fddca546ee58262a4b</guid>
				<title>zjy8461 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26568</link>
				<pubDate>Fri, 09 Oct 2026 08:28:32 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，想确认服务端快期模拟账户（TqKq，不是本地 TqSim）的手续费查询接口及适用规则，用于模拟执行前的费用核算。</p>
<p>已观察到的现象：<br />
1. 快期3模拟客户端已登录，启用“手续费率/保证金率”列并逐一选择合约后，状态栏提示开始查询，但两列为空。<br />
2. TqKq 主模拟账户可正常连接。按照当前 SDK 的 pre_insert_order 保证金预估协议，只查询、不下 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b90973759b333ef74f5b84428a8dda03</guid>
				<title>qyh46 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26567</link>
				<pubDate>Thu, 24 Sep 2026 03:04:30 +0800</pubDate>

									<content:encoded><![CDATA[<p>我还以为代码出错，行情推送的有差异啊，主连和主力，要么就都是2611，要么就都是2610，搞出两种标准是什么情况</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">dfb7644d5754e736da12fa7b9edee697</guid>
				<title>wds_tom 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26563</link>
				<pubDate>Wed, 23 Sep 2026 11:01:02 +0800</pubDate>

									<content:encoded><![CDATA[<p>一、环境信息<br />
============================================================<br />
&#8211; 产品：TqSdk（python），版本 3.10.2<br />
&#8211; 账户：免费版（信易账户登录，1 个实盘账户 宏源期货账户）<br />
&#8211; 部署：Linux 云服务器，常驻一个 scheduler 进程，仅此一个进程使用本信易账户<br />
&#8211; 订阅内容：约 65 个期货品种主连 KQ.m@XXXX 的 3 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">0c4914116a5d090c1a5bf8f5c3d3627c</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26561</link>
				<pubDate>Wed, 23 Sep 2026 05:48:30 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤里面没有直接计算vp指标的函数，软件内部的公式估计不会对外公开，你可以截图让AI反推看看</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">808fbafcc4910d11c5a083b75c6ecb3e</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26560</link>
				<pubDate>Wed, 23 Sep 2026 05:41:33 +0800</pubDate>

									<content:encoded><![CDATA[<p>这是回测框架的既定规则，不是异步或多品种导致的。</p>
<p>天勤文档《策略程序回测》里“回测时的成交规则和推进”的规则3写得很明确：某个合约订阅的最小 K 线周期大于 1 分钟时，回测框架会隐式再订阅一根 1 分钟 K 线，保证这个合约 quote 的更新周期不超过 1 分钟。</p>
<p>你用的是日线，周期 86400 秒，远大于 1 分钟，所以必然命中这条。表现就是：日线序列本身仍按天推进，但框架额外挂了一根 1 分钟序列，wa [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3c54307aaa6453689cbf36d1534b1a61</guid>
				<title>mazhonghui 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26559</link>
				<pubDate>Wed, 23 Sep 2026 01:12:26 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好老师，快期里VP成交量指标中的VAH POC VAL三线有公式吗，数据结果和软件显示一致的。或者告知这三线的计算方法逻辑。谢谢！</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">68173cb4add05eeb7bacf82e543c2015</guid>
				<title>amendsan 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26558</link>
				<pubDate>Tue, 22 Sep 2026 14:53:38 +0800</pubDate>

									<content:encoded><![CDATA[<p> klines = await api.get_kline_serial(symbol, 86400, data_length=300)<br />
代码里我就调用了日线，以及这些：</p>
<p>  position = api.get_position(symbol)<br />
    account = api.get_account(）<br />
天勤gui也能日线显示跑的起来，但 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">be83aad2abe16ba347899970c19e7145</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26557</link>
				<pubDate>Tue, 22 Sep 2026 03:26:13 +0800</pubDate>

									<content:encoded><![CDATA[<p>TqSdk 底层使用 Python，快期3使用 C++，两边采用的指标计算库和具体实现并不相同。因此，即使合约、K线周期和 ATR 参数相同，计算结果也不保证完全一致。</p>
<p>对比时还需要确认两边使用的历史数据范围、当前未结束 K 线是否参与计算、数据初始化及精度处理等条件完全相同。</p>
<p>建议同一套策略固定使用同一平台、同一计算库生成的 ATR，不要将快期3的指标值与 `tqsdk.ta.ATR` 的结果直接混用。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">9512c2ff553a1906bb69557860ddc6e8</guid>
				<title>1126400579 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26556</link>
				<pubDate>Mon, 21 Sep 2026 14:39:01 +0800</pubDate>

									<content:encoded><![CDATA[<p>举个例：20260921 22：37  SHFE.cu2610  30分钟K线 20周期的ATR: 天勤=220 ，快期3=233.64 。不仅是30分钟K线，其他K线都不一样，盼老师解答，谢谢。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">505a6eb79dc75e336993e51c02903430</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26555</link>
				<pubDate>Mon, 21 Sep 2026 09:23:00 +0800</pubDate>

									<content:encoded><![CDATA[<p>这是回测的时间推进机制导致的：回测只在已订阅的历史行情到来时推进，并不会在交易时段结束时额外生成一个“已经收盘”的事件。因此最后一笔行情停在 14:59:59.xxx 是正常现象。</p>
<p>api.is_changing(quote) 只表示本轮更新中 quote 是否发生变化，并不能表示当前是否处于交易时段。</p>
<p>如果收盘操作包含平仓或撤单，建议改成收盘前触发：根据 quote.trading_time 取得当前时段的结束 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">e4c0e6057f1cc1bc60d26ba48fe81ca3</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26554</link>
				<pubDate>Mon, 21 Sep 2026 09:22:48 +0800</pubDate>

									<content:encoded><![CDATA[<p>set_target_volume(0) 调整的是该合约的净持仓，不等同于“只平仓、绝不反向开仓”。</p>
<p>你设置的 offset_priority 为 昨今,开，其中包含“开”：程序会先尝试平昨仓和平今仓，如果根据当前持仓、冻结仓位及委托状态仍未达到目标净持仓，就允许通过反向开仓达到目 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">8e7c66e10a55bd1f8a5729a0c77a40e7</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26552</link>
				<pubDate>Mon, 21 Sep 2026 09:21:45 +0800</pubDate>

									<content:encoded><![CDATA[<p>web_gui=True [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">1059146e0bfbe7430502baac6a170758</guid>
				<title>shanel 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26551</link>
				<pubDate>Mon, 21 Sep 2026 07:50:10 +0800</pubDate>

									<content:encoded><![CDATA[<p>控制台打印的天勤webgui端口号会被我后续代码的清屏给清除掉，这个时候怎么找webgui的端口，或者有什么函数可以获取端口号？不想用固定的端口，因为会运行多个策略，端口会冲突，不想取消清屏。是不是只有先手动把端口号记录下来之后，再清屏了？-_-||</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">56dea72855b53d8fc9963a60d5e2c961</guid>
				<title>queshw 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26547</link>
				<pubDate>Sat, 19 Sep 2026 09:47:10 +0800</pubDate>

									<content:encoded><![CDATA[<p>快疯了，用TargetPosTask来调仓，同样是set_target_volume(0)，有时是直接清仓，有时是反向对冲，这到底是怎么回事啊，其他设置都是一样的啊。构造TargetPosTask的语句如下：</p>
<p>其中的参数price是一个函数，定义如下：</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">b4315039c29b46aa4230fa5ef631edad</guid>
				<title>queshw 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26546</link>
				<pubDate>Fri, 18 Sep 2026 14:43:53 +0800</pubDate>

									<content:encoded><![CDATA[<p>我有一个需求，要在收盘进行一些操作。在回测模式下，无法获取系统时间，也不能用 api.get_trading_status 来判断状态。那么如何来准确判断某合约是否处于交易状态呢？</p>
<p>目前，我用 if is_trading_time(api, iid) and api.is [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">acfc093491ebd7b64e849c447c9d4f25</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26545</link>
				<pubDate>Fri, 18 Sep 2026 05:28:58 +0800</pubDate>

									<content:encoded><![CDATA[<p>您当前的tqsdk版本号是多少呢，我这边用3.10.2最新版的没有遇到这个问题<br />
然后可以给一个最小复现问题的代码我们查一下吗</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">24938f29d3406b930a0c14fe11c8137e</guid>
				<title>黄金龙 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26544</link>
				<pubDate>Fri, 18 Sep 2026 01:06:51 +0800</pubDate>

									<content:encoded><![CDATA[<p>返回数据如下：&#8217;expire_datetime&#8217;、&#8217;delivery_year&#8217;错误，数据为2016，正确是2026。{&#8216;datetime&#8217;: &#8216;2026-09-18 08:56:31.000000&#8217;, &#8216;ask_price1&#8217;: nan, &#8216;ask_volume1&#8217;: 0, &#8216;bid_price1&#8217;: nan, &#8216;bid_volume1&#8217;: 0, &#8216;ask_price2&#8217;: nan, &#8216;ask_volume2&#8217;: 0, [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">4e19f9c1a9519171eb7ac40bcadded30</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26543</link>
				<pubDate>Thu, 17 Sep 2026 01:25:14 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，是的，创建 `TqApi` 时设置 `debug=False`，重新启动程序即可关闭调试日志文件输出。默认的 `debug=None` 不等于关闭，其行为取决于账户类型。旧日志可在对应程序停止后手动清理。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">11180e291427b144ead71d6082c62ccf</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26542</link>
				<pubDate>Thu, 17 Sep 2026 01:24:55 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，您找到的 `debug=False` 是正确的。在创建 `TqApi` 时加上这个参数，保留原有账户和认证参数，重新启动程序即可关闭调试日志文件输出。这些日志用于排查问题，运行时间较长时可能较大。旧日志确认不再需要后，可在对应程序停止后手动清理。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">77f0250127739ce9386ec6d4dbcdefa1</guid>
				<title>queshw 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26541</link>
				<pubDate>Wed, 16 Sep 2026 13:41:15 +0800</pubDate>

									<content:encoded><![CDATA[<p>在.tqsdk下的logs目录中，有日志文件，特别大，才一天的时间就有快500M了。打开看，比较乱，感觉好像是把所有接收和发送的数据都保存下来了。有必要吗？能否关掉这个功能。 <img loading="lazy" src="https://forum.shinnytech.com/wp-content/uploads/anspress-uploads/0bd160343250681affd7b66bbf94ef73725f351c_6269.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">72193677f0acb0e7806403352a20b4d4</guid>
				<title>queshw 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26540</link>
				<pubDate>Wed, 16 Sep 2026 13:18:36 +0800</pubDate>

									<content:encoded><![CDATA[<p>怎么处理？能关掉保存那么详细日志的功能吗？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">ada15b844299a06f06dfc302fb33f775</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26539</link>
				<pubDate>Wed, 16 Sep 2026 01:19:58 +0800</pubDate>

									<content:encoded><![CDATA[<p>目前没有收到其他用户反馈，可以用最小登录代码看看程序里有没有什么报错，或者是检查下网络环境有没有关掉vpn代理这些</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3cf309985fbadb104820df536ea8e142</guid>
				<title>almmb 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26538</link>
				<pubDate>Wed, 16 Sep 2026 00:55:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>怎么今天一直不能链接服务器？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">c09292096a473c07ca75fdb05fb6c7f4</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26537</link>
				<pubDate>Tue, 15 Sep 2026 06:06:54 +0800</pubDate>

									<content:encoded><![CDATA[<p>continuous_table.json 属于 TqSdk 内部使 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">bf582bb69322401acdc79ef0365b47f1</guid>
				<title>xiaoheiheia 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26536</link>
				<pubDate>Mon, 14 Sep 2026 06:23:10 +0800</pubDate>

									<content:encoded><![CDATA[<p>您好，我看到论坛问题 26501 关于历史行情修订及版本留存的回复，想进一步确认主力映射是否适用同样政策。</p>
<p>环境：TqSdk 3.10.2。<br />
研究范围：2024—2025 年 CZCE.MA、CZCE.TA。</p>
<p>请官方技术支持确认：</p>
<p> 	query_his_cont_quotes() 返回的 date=t，是否表示 t 日生效的主力？当时用户最迟在 t 日收盘后能否获取同一映射？<br />
 	contin [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>