<?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>Mon, 26 Oct 2026 10:52:51 +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">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>
					<item>
				<guid isPermaLink="false">f8893e012c4c90f17c0a19f11e421a6d</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26535</link>
				<pubDate>Mon, 14 Sep 2026 02:28:42 +0800</pubDate>

									<content:encoded><![CDATA[<p>如果您使用的是天勤，需要在合约到期前自行处理换月逻辑，即平掉旧合约持仓，再开新月份合约的持仓，天勤不会自动换月。</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">55844e9dfd55d9e083013116eac43deb</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26534</link>
				<pubDate>Mon, 14 Sep 2026 01:52:00 +0800</pubDate>

									<content:encoded><![CDATA[<p>免费版和专业版获取实时行情都是一样的，可以再具体描述一下问题哈</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">06b3fd17a9886f99c373a7eb76535a25</guid>
				<title>popularboy666 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26533</link>
				<pubDate>Mon, 14 Sep 2026 01:48:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>模拟盘持有合约没有换月平仓，现在不能平仓，怎么解决 <img loading="lazy" src="https://forum.shinnytech.com/wp-content/uploads/anspress-uploads/0016ed3d5603251aa4ba0f7a0eb6431bb49c824e_6265.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">739e2537f26db906a80021e4cc8f1a86</guid>
				<title>只喝白开水 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26532</link>
				<pubDate>Sun, 13 Sep 2026 12:36:18 +0800</pubDate>

									<content:encoded><![CDATA[<p>为什么免费账号获取实盘行情有时间限制？</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">3a2be585c1b825e19af79da74a8b0dc9</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26531</link>
				<pubDate>Fri, 11 Sep 2026 01:46:32 +0800</pubDate>

									<content:encoded><![CDATA[<p>`api.wait_update()` 不是定时器，也不会按照固定的每秒次数返回。它会等待任意一项业务数据发生更新，然后将更新合并到内存对象并返回。</p>
<p>行情、K 线、账户、持仓、委托、成交以及后台任务等任一数据发生变化，都可能使 `wait_update()` 返回；交易所行情本身也是按事件推送的，所以一秒内返回 2 次或 4 次都属于正常现象。</p>
<p>你现在是在每次 `wait_upda [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">c8c8588702a105688171af9840e7b82b</guid>
				<title>wangzilin2 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26530</link>
				<pubDate>Thu, 10 Sep 2026 11:42:26 +0800</pubDate>

									<content:encoded><![CDATA[<p>代码：</p>
<p>while True:<br />
    api.wait_update()</p>
<p>    #各种if&#8230;</p>
<p>    print(quote.datetime, &#8220;//卖一//&#8221;, quote.ask_price1, &#8220;//卖一量//&#8221;, quote.ask_volume1, &#8220;//买一价//&#8221;,</p>
<p>输出的结果是这样的：</p>
<p>为什么有点时候一秒2喷，有的时候1秒4喷？4喷的时候，后3喷数据基本一致、</p>
<p> <img loading="lazy" src="https://forum.shinnytech.com/wp-content/uploads/anspress-uploads/3e004388dff46815c9ff7ac09ecba2ddcfccf94d_5653.png" /></p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">496e403e98ea3a93a22a2771cf677a73</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26529</link>
				<pubDate>Wed, 09 Sep 2026 07:47:16 +0800</pubDate>

									<content:encoded><![CDATA[<p>open_oi 和 close_oi 分别表示该根 K 线开始和结束时的持仓量。虽然连续 K 线中，前一根的 close_oi 通常等于后一根的 open_oi，但同时保留两个字段可以让每根 K 线成为完整、独立的数据记录，也便于处理查询区间首根 K 线、数据缺口和多合约时间对齐等情况，因此不适合用其他字段替换。</p>
<p>“内盘、外盘成交量”与持仓量属于不同维度。内外盘通常需要根据成交价与当时买卖盘口的关系判 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">41be66854af4acb3674a89413e89baf6</guid>
				<title>争-命-天-子 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26528</link>
				<pubDate>Tue, 08 Sep 2026 14:03:54 +0800</pubDate>

									<content:encoded><![CDATA[<p>天勤做为平台，最大的作用应该是用户可以取到量化时的相关数据，有些数据要计算时需要有往日的一些数据才能计算，有平台的支持应该是省去自己存储数据的各种不切实际，有些数据只要有一个就可以了，用不着多个，比如K线中的起始与结束时的持仓，这个有一个结束持仓就好了，应该就是实时的持仓数据，至于起始时的持仓，不正好就是上一根K线的结束持仓吗？只要一步就自己计算出来了，有没有考虑过将起始持仓改成内盘或外盘成交量啊？只要有一个就可以计算相关的 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">d0d46e88904dd78d1da15b82149c4264</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26527</link>
				<pubDate>Tue, 08 Sep 2026 01:40:36 +0800</pubDate>

									<content:encoded><![CDATA[<p>datetime是时间戳可以用time_to_str来转换成中国时区的标准时间，这个时间是指K线的开始时间</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">dc7e20f4dec90ad705fddac33c674318</guid>
				<title>flydreamer 提了一个新问题 问题</title>
				<link>https://forum.shinnytech.com/?p=26524</link>
				<pubDate>Tue, 08 Sep 2026 01:24:38 +0800</pubDate>

									<content:encoded><![CDATA[<p>klines = api.get_kline_serial(&#8220;CFFEX.IC2609&#8221;, 60*5)<br />
print(klines)</p>
<p>klines.iloc[0]<br />
Out[2]:<br />
datetime 1788231000000000000.0<br />
id 7216.0<br />
open 7784.8<br />
high 7794.6<br />
low 7781.2<br />
close 7783.2<br />
volume 1133.0<br />
open_oi [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
					<item>
				<guid isPermaLink="false">96f408d228f72c0d93e93e682688f877</guid>
				<title>chaos 回答了 一个问题</title>
				<link>https://forum.shinnytech.com/?p=26522</link>
				<pubDate>Mon, 07 Sep 2026 01:29:35 +0800</pubDate>

									<content:encoded><![CDATA[<p>`CZCE.PRT SF611&amp;SF611C6900` 不是把 `SF611C6900` 错误改成了另一个普通合约，而是郑商所的组合持仓代码。</p>
<p>`PRT` 表示有保护期权期货组合，这条记录包含 `SF611` 期货腿和 `SF611C6900` 期权腿。调用不带参数的 `get_position()` 时，返回的是账户全部持仓，TqSdk 会按交易柜台返回的持仓标识展示，因此可能同时看到单腿持仓和这种组合持仓。</p>
<p>如果 [&hellip;]</p>
]]></content:encoded>
				
				
							</item>
		
	</channel>
</rss>