+6
-11
@@ -4,17 +4,12 @@
|
||||
<h1 class="page-title">系统设置</h1>
|
||||
|
||||
<div class="card">
|
||||
<h2>同花顺行情(iFinD HTTP)</h2>
|
||||
<form action="{{ url_for('settings') }}" method="post" class="form-row">
|
||||
<input type="hidden" name="action" value="ths">
|
||||
<input name="ths_refresh_token" type="text" placeholder="refresh_token" value="{{ ths_token }}" style="flex:1;min-width:300px">
|
||||
<button type="submit" class="btn-primary">保存</button>
|
||||
</form>
|
||||
<p style="font-size:.8rem;color:#888;margin-top:.75rem">
|
||||
当前行情源:<strong>{{ quote_source }}</strong>(auto=优先同花顺,失败回退新浪)。
|
||||
在 iFinD 接口包「超级命令 → 工具」查询 refresh_token,
|
||||
或前往 <a href="https://quantapi.10jqka.com.cn/" target="_blank" style="color:#4cc2ff">同花顺数据接口</a> 申请试用。
|
||||
未配置 token 时自动使用新浪行情。
|
||||
<h2>行情说明</h2>
|
||||
<p style="font-size:.9rem;color:#ccc;line-height:1.6">
|
||||
当前行情源:<strong style="color:#4cc2ff">{{ quote_label }}</strong><br>
|
||||
合约代码按<strong>同花顺格式</strong>显示(如 ag2608、IF2606),便于与看盘软件对照;
|
||||
实际价格通过<strong>新浪财经</strong>免费接口获取,普通用户无需申请 token。<br>
|
||||
<span style="color:#888;font-size:.85rem">同花顺 iFinD 接口面向机构用户,个人期货通用户一般无法获取 refresh_token,故系统默认不使用。</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user