<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[安道生練功房 - Latest posts for "andowson"]]></title>
		<link>https://www.andowson.com/posts/listByUser/2</link>
		<description><![CDATA[Latest posts for "andowson"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[投資理財 Financial Investment] [投資觀念建立]【0 本金投資術】如何用信貸買爆 0050、0056、台積電？揭密銀行不敢說的「套利公式」，小資族也能空手套白狼！</title>
				<description><![CDATA[ <div class="videocontainer">
 <iframe width="640" height="400" src="https://www.youtube-nocookie.com/embed/iMGifN5zqWY" frameborder="0" allowfullscreen></iframe>
</div>
<br>
<br>
這部影片清楚地把通膨對實質購買力的影響說明清楚， 
<br>
雞腿便當現在一個要130元，1萬元可以買76個 
<br>
10年前可能才75元，1萬元可以買133個 
<br>
10年後可能要230元，1萬元只能買43個 
<br>
<br>
債務的秘密: 
<br>
數字沒變，實質價值下降(買到的便當數變少)，時間是盟友(用時間讓債務實質價值縮小) 
<br>
<br>
核心策略=&gt;做空法幣: 
<br>
借現在值錢的錢，換成抗通膨資產，拖延還款時間(讓通常吃掉債務價值) 
<br>
<br>
「信貸 + 質押 + 無限轉貸」 
<br>
實戰教學：如何用「信貸 + 20% 懶人質押」打造自動化賺錢機器？ 
<br>
<br>
獨家策略：每兩年一次的「無限轉貸」大法，如何讓本金復活？ 
<br>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/799/1575</guid>
				<link>https://www.andowson.com/posts/preList/799/1575</link>
				<pubDate><![CDATA[Sun, 22 Feb 2026 21:59:32]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [投資觀念建立]大道至簡投資法</title>
				<description><![CDATA[ <div class="videocontainer">
 <iframe width="640" height="400" src="https://www.youtube-nocookie.com/embed/rfRGchEgc0g" frameborder="0" allowfullscreen></iframe>
</div>
<br>
<br>
參考文件→<a class="snap_shots" href="https://ppt.cc/frDpOx" target="_new" rel="nofollow">https://ppt.cc/frDpOx</a>
<br>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/798/1574</guid>
				<link>https://www.andowson.com/posts/preList/798/1574</link>
				<pubDate><![CDATA[Fri, 24 Oct 2025 23:49:46]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[新技術新發現 New Technology] 中華電信MS-100多合一讀卡機驅動程式下載</title>
				<description><![CDATA[ 手邊剛好還有一台中華電信MS-100多合一讀卡機，電腦重灌後上網搜尋很久都找不到驅動程式的載點，還好先前有備份，上傳到這邊方便日後如果需要時可以取用。 
<br>
<br>
目前只有到MS100Win7X64，實際測試，Win10安裝起來也是沒問題的。 
<br>
<br>
參考網址: 
<br><a class="snap_shots" href="https://intai.blogspot.com/2021/05/ms-100.html" target="_new" rel="nofollow">https://intai.blogspot.com/2021/05/ms-100.html</a>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/797/1573</guid>
				<link>https://www.andowson.com/posts/preList/797/1573</link>
				<pubDate><![CDATA[Sun, 20 Jul 2025 22:35:05]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [投資觀念建立]以為存股就會財富自由？他努力了五年，不但沒養出金雞母，還倒賠30萬——比定存還慘，最後才醒悟：關鍵根本不是股息，而是「這件事」。</title>
				<description><![CDATA[ 這位牛哥很有系統的說明如何打造一套能自動產生現金流的金雞母系統，值得一看 
<br>
<div class="videocontainer">
 <iframe width="640" height="400" src="https://www.youtube-nocookie.com/embed/yMpLmsjH350" frameborder="0" allowfullscreen></iframe>
</div>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/796/1572</guid>
				<link>https://www.andowson.com/posts/preList/796/1572</link>
				<pubDate><![CDATA[Sun, 25 May 2025 19:32:31]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [投資觀念建立]股票賺不賺，跟你懂多少沒啥關係！7個投資致富的真相，震碎你三觀！｜金錢心理學</title>
				<description><![CDATA[ 今天看到一個影片，說靠投資賺到大錢其實是運氣好 
<br>
<div class="videocontainer">
 <iframe width="640" height="400" src="https://www.youtube-nocookie.com/embed/kFQ9vDRAQ7A" frameborder="0" allowfullscreen></iframe>
</div>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/795/1571</guid>
				<link>https://www.andowson.com/posts/preList/795/1571</link>
				<pubDate><![CDATA[Sun, 25 May 2025 14:12:11]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [投資觀念建立]為什麼你不該買4%殖利率的美債</title>
				<description><![CDATA[ 最近台幣匯率升值幅度較大，手上的債券ETF價格下跌產生帳面虧損，這部影片解說了外幣債券的高利風險，持有債券ETF的投資人可以參考看看: 
<br>
<div class="videocontainer">
 <iframe width="640" height="400" src="https://www.youtube-nocookie.com/embed/Q6IlCrwdccU" frameborder="0" allowfullscreen></iframe>
</div>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/794/1570</guid>
				<link>https://www.andowson.com/posts/preList/794/1570</link>
				<pubDate><![CDATA[Mon, 12 May 2025 01:52:06]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [投資觀念建立]CLEC投資理財頻道 第一堂課 — 價值一億元投資人生</title>
				<description><![CDATA[ <div class="videocontainer">
 <iframe width="640" height="400" src="https://www.youtube-nocookie.com/embed/4FMjmyBpTzw" frameborder="0" allowfullscreen></iframe>
</div>
<br>
<br>
講義下載 
<br><a class="snap_shots" href="https://drive.google.com/file/d/1w5qqLAYAZFVthjwwKEnOWos6YSgiXJuB/view" target="_new" rel="nofollow">https://drive.google.com/file/d/1w5qqLAYAZFVthjwwKEnOWos6YSgiXJuB/view</a>
<br>
<br>
資料來源: CLEC投資理財頻道 
<br><a class="snap_shots" href="https://www.youtube.com/@clec168/featured" target="_new" rel="nofollow">https://www.youtube.com/@clec168/featured</a>
<br>
<br>
心得: 
<br>
買NASDAQ-100指數基金QQQ或ETF 00662，長期持續買進不賣]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/793/1569</guid>
				<link>https://www.andowson.com/posts/preList/793/1569</link>
				<pubDate><![CDATA[Sat, 1 Mar 2025 08:57:16]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] 修改ETF股息匯款帳戶</title>
				<description><![CDATA[ 修改ETF股息匯款帳戶為該檔ETF保管銀行之帳戶節省匯費 
<br>
可以參考以下連結說明，找出ETF對應的投信網站進行申請 
<br><a class="snap_shots" href="https://stevenhongisme.com/stocknote/etf-div-account/" target="_new" rel="nofollow">https://stevenhongisme.com/stocknote/etf-div-account/</a>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/792/1568</guid>
				<link>https://www.andowson.com/posts/preList/792/1568</link>
				<pubDate><![CDATA[Tue, 18 Feb 2025 17:41:03]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [數位帳戶開戶推薦]彰銀e財寶</title>
				<description><![CDATA[ 目前買的月配息債券ETF(00933B國泰10Y+金融債）保管銀行是彰化銀行，為了節省每月配息匯入帳戶的10元匯費，因此開了彰銀e財寶，並到國泰投信的網站申請將配息直接匯入彰銀的帳戶，每月節省匯費10元，一年就省下120元，有興趣開彰銀帳戶的可以點選我的推薦連結或輸入代碼DNKU1 
<br><a class="snap_shots" href="https://owa.chb.com.tw/CHANGHWABANK/OnlineOpen.jsp?openExternalBrowser=1&amp;referrer=MGM&amp;Referralcode=DNKU1" target="_new" rel="nofollow">https://owa.chb.com.tw/CHANGHWABANK/OnlineOpen.jsp?openExternalBrowser=1&amp;referrer=MGM&amp;Referralcode=DNKU1</a>
<br>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/791/1567</guid>
				<link>https://www.andowson.com/posts/preList/791/1567</link>
				<pubDate><![CDATA[Tue, 18 Feb 2025 17:31:43]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [程式交易]群益期貨Python API入門 4</title>
				<description><![CDATA[ 第四步 讓程式自動登入並取得期貨帳號權益數 
<br>
<br>
到目前為止，我們都是直接用群益期貨API內附的範例程式來手動執行取得報價或是下單，但我們的目標應該是要打造一組程式可以自動登入並完成交易，所以接下來我們要嘗試讓程式自動化，不用再手動輸入帳號密碼，並點選那些按鈕。 
<br>
<br>
另外群益期貨API範例程式是偏好有視窗GUI介面，但有GUI介面就會需要多處理一些視窗元件顯示的程式，我們先簡化掉這些視窗GUI介面顯示的處理程式。 
<br>
<br>
我們參考TFOrder.py複製相關程式碼到一個新的空白檔案，可以先存檔為Test.py，將原本的這兩行 
<br>
 richTextBoxMessage.insert('end', msg + "\n") 
<br>
 richTextBoxMessage.see('end') 
<br>
都標上#號註解，改用這行取代 
<br>
 print(msg) 
<br>
<br>
另外要注意到沒有GUI程式，即便能正常接收訊息，如果沒有做任何取出訊息的動作，訊息會卡在Message Queue裡面。因此我們要使用pywin32套件裡pythoncom模組包含的PumpWaitingMessages()將獲取到的訊息，從Message Queue裡面取出並利用。 
<br>
<br>
<pre class="line-numbers"><code class="language-python match-braces"><br># API com元件初始化<br>import comtypes.client<br>comtypes.client.GetModule(r'SKCOM.dll')<br>import comtypes.gen.SKCOMLib as sk<br>import time, pythoncom<br><br># 群益API元件導入Python code內用的物件宣告<br>m_pSKCenter = comtypes.client.CreateObject(sk.SKCenterLib,interface=sk.ISKCenterLib)<br>m_pSKReply = comtypes.client.CreateObject(sk.SKReplyLib,interface=sk.ISKReplyLib)<br>m_pSKOrder = comtypes.client.CreateObject(sk.SKOrderLib,interface=sk.ISKOrderLib)<br><br># 全域變數<br><br># 登入帳號:交易帳號<br>dictUserID = {}<br>dictUserID["更新帳號"] = ["無"]<br><br>userID = "身分證字號"<br>password = "密碼"<br><br># ReplyLib事件<br>class SKReplyLibEvent():<br>    def OnReplyMessage(self, bstrUserID, bstrMessages):<br>        nConfirmCode = -1<br>        msg = "【註冊公告OnReplyMessage】" + bstrUserID + "_" + bstrMessages;<br>        #richTextBoxMessage.insert('end', msg + "\n")<br>        #richTextBoxMessage.see('end')<br>        print(msg)<br>        return nConfirmCode<br>SKReplyEvent = SKReplyLibEvent();<br>SKReplyLibEventHandler = comtypes.client.GetEvents(m_pSKReply, SKReplyEvent);<br><br># OrderLib事件<br>class SKOrderLibEvent():<br>    # 帳號資訊<br>    def OnAccount(self, bstrLogInID, bstrAccountData):<br>        msg = "【OnAccount】" + bstrLogInID + "_" + bstrAccountData;        <br>        #richTextBoxMessage.insert('end', msg + "\n")<br>        #richTextBoxMessage.see('end')<br>        print(msg)<br><br>        values = bstrAccountData.split(',')<br>        # broker ID (IB)4碼 + 帳號7碼<br>        Account = values[1] + values[3]<br><br>        if bstrLogInID in dictUserID:<br>            accountExists = False<br>            for value in dictUserID[bstrLogInID]:<br>                if value == Account:<br>                    accountExists = True<br>                    break<br>            if accountExists == False:<br>                dictUserID[bstrLogInID].append(Account)<br>        else:<br>            dictUserID[bstrLogInID] = [Account]<br>            <br>    # (新)期貨未平倉GW。透過呼叫 GetOpenInterestGW 後，資訊由該事件回傳<br>    def OnOpenInterest(self, bstrData):<br>        msg = "【OnOpenInterest】" + bstrData<br>        #richTextBoxMessage.insert('end', msg + "\n")<br>        #richTextBoxMessage.see('end')<br>        print(msg)<br>        <br>    # 國內期貨權益數。透過呼叫 GetFutureRights 後，資訊由該事件回傳<br>    def OnFutureRights(self, bstrData):<br>        msg = "【OnFutureRights】" + bstrData;<br>        #richTextBoxMessage.insert('end', msg + "\n")<br>        #richTextBoxMessage.see('end')<br>        print(msg)<br>          <br>SKOrderEvent = SKOrderLibEvent()<br>SKOrderLibEventHandler = comtypes.client.GetEvents(m_pSKOrder, SKOrderEvent)<br><br>def capital_Login(bstrUserID, bstrPassword):<br>    nCode = m_pSKCenter.SKCenterLib_Login(bstrUserID, bstrPassword)<br>    msg = "【SKCenterLib_Login】" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode)<br>    print(msg)<br>    <br>    # 這裡有做下單初始化<br>    nCode = m_pSKOrder.SKOrderLib_Initialize()<br>    msg = "【SKOrderLib_Initialize】" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode)<br>    print(msg)<br>    <br>    # 拿到交易帳號<br>    nCode = m_pSKOrder.GetUserAccount()<br>    msg = "【GetUserAccount】" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode)<br>    print(msg)<br><br>def capital_GetOpenInterestGW(bstrLogInID, bstrAccount):<br>    nCode = m_pSKOrder.GetOpenInterestGW(bstrLogInID, bstrAccount, 1)<br>    msg = "【GetOpenInterestGW】" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode)<br>    print(msg)<br><br>def capital_GetFutureRights(bstrLogInID, bstrAccount, sCoinType):    <br>    nCode = m_pSKOrder.GetFutureRights(bstrLogInID, bstrAccount, sCoinType)<br>    msg = "【GetFutureRights】" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode)<br>    print(msg)<br>        <br>if __name__ == '__main__':<br>    capital_Login(userID, password)<br>    account = dictUserID[userID][0]<br>    capital_GetOpenInterestGW(userID, account)<br>    # sCoinType 0:全幣別 1:基幣(台幣TWD) 2:人民幣RMB<br>    capital_GetFutureRights(userID, account, 1)<br>    #每秒推一次 event, 推5秒<br>    for i in range(5):<br>        pythoncom.PumpWaitingMessages()<br>        time.sleep(1)<br></code></pre>
<br>
參考資料: 
<br><a class="snap_shots" href="https://medium.com/coding-learning-sharing/%E7%9B%AE%E9%8C%84-5620aafd4d6b" target="_new" rel="nofollow">https://medium.com/coding-learning-sharing/%E7%9B%AE%E9%8C%84-5620aafd4d6b</a>
<br><a class="snap_shots" href="https://easontseng.blogspot.com/p/blog-page.html" target="_new" rel="nofollow">https://easontseng.blogspot.com/p/blog-page.html</a>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/790/1566</guid>
				<link>https://www.andowson.com/posts/preList/790/1566</link>
				<pubDate><![CDATA[Sun, 15 Dec 2024 14:39:35]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [程式交易]群益期貨Python API入門 3</title>
				<description><![CDATA[ 第三步 執行期貨下單範例程式-TFOrder.py 
<br>
<br>
1.複製範例程式到D:\SKCOM\x64目錄下 
<br>
1.1 複製D:\SKCOM\CapitalAPI_2.13.51_PythonExample\PythonExampleV2\Order\TF\TFOrder目錄底下所有程式到D:\SKCOM\x64目錄下 
<br>
<br>
2.執行TFOrder.py 
<br>
2.1 回到Anaconda Prompt 
<br>
2.2 切換目錄到D:\SKCOM\x64目錄下: cd D:\SKCOM\x64 
<br>
2.3 用Python執行TFOrder.py: python TFOrder.py 
<br>
2.4 確認有跳出一個視窗顯示TFOrder 
<br>
<br>
3.測試TFOrder.py 
<br>
3.1 輸入UserID和Password，按下Login 
<br>
3.2 登入後請選擇這裡=&gt;:選擇更新帳號 
<br>
3.3 登入後請選擇這裡=&gt;:下拉式選單選擇身分證字號，後面的下拉式選單選擇期貨帳號 
<br>
3.4 連線環境:選擇正式環境 
<br>
3.5 按下查詢，確認有跳出另一個視窗Read 
<br>
3.6 按期貨未平倉，確認主畫面視窗顯示查詢結果 
<br>
3.7 幣別選擇0.全幣別，再按下國內權益數: 確認主畫面視窗顯示查詢結果，然後關閉這個視窗 
<br>
3.8 按下一般下單，確認出現一個新的視窗顯示Send 
<br>
3.9 勾選非同步委託，依序輸入下列欄位的值 
<br>
期貨代號: TM0000 
<br>
當沖: 否 
<br>
盤別: T盤預約 
<br>
新平倉: 新倉 
<br>
口數: 1 
<br>
ROD/IOC/FOK: ROD 
<br>
委託價: 23050 
<br>
買進/賣出: 買進 
<br>
按下期貨送出 
<br>
<br>
3.10檢查App是否出現下單資訊 
<br>
原本群益期貨提供的範例程式無法正常完成下單，原因是沒有讀取憑證無法完成雙因子認證無法下單，修改TFOrder.py程式中的on_comboBoxSKCenterLib_SetAuthority(event)補上讀取憑證的程式碼m_pSKOrder.ReadCertByID(comboBoxUserID.get())後，即可正常送出交易單 
<br>
<pre class="line-numbers"><code class="language-python match-braces"><br>        def on_comboBoxSKCenterLib_SetAuthority(event):<br>            if comboBoxSKCenterLib_SetAuthority.get() == "正式環境":<br>                nAuthorityFlag = 0<br>            elif comboBoxSKCenterLib_SetAuthority.get() == "正式環境SGX":<br>                nAuthorityFlag = 1<br>            elif comboBoxSKCenterLib_SetAuthority.get() == "測試環境":<br>                nAuthorityFlag = 2<br>            elif comboBoxSKCenterLib_SetAuthority.get() == "測試環境SGX":<br>                nAuthorityFlag = 3<br>            nCode = m_pSKCenter.SKCenterLib_SetAuthority(nAuthorityFlag)<br>            msg = "【SKCenterLib_SetAuthority】" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode)<br>            richTextBoxMethodMessage.insert('end',  msg + "\n")<br>            richTextBoxMethodMessage.see('end')<br>            nCode = m_pSKOrder.ReadCertByID(comboBoxUserID.get())<br>            msg = "【ReadCertByID】" + m_pSKCenter.SKCenterLib_GetReturnCodeMessage(nCode)<br>            richTextBoxMethodMessage.insert('end',  msg + "\n")<br>            richTextBoxMethodMessage.see('end')</code></pre>
<br>
3.11關閉視窗，結束程式]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/789/1565</guid>
				<link>https://www.andowson.com/posts/preList/789/1565</link>
				<pubDate><![CDATA[Sun, 8 Dec 2024 00:57:42]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] 回覆:[程式交易]群益期貨Python API入門 2</title>
				<description><![CDATA[ 如果有執行到Quote.py的五檔&amp;成交明細，會發現在成交彙總(時間/成交價/成交量)上的時間顯示出現奇怪的時間，例如45:95:8。 
<br>
原來是群益期貨的程式範例Quote.py在259~261這三行對時間45958的拆解有誤，夜盤結束時間是上午5:00:00，最後成交時間應該是4:59:58才對。 
<br>
<br>
另外在凌晨12點或0點到1點時，前面的0會被去掉，變成長度只有4碼，只有分跟秒。 
<br>
<br>
因為一般時間格式通常是六位數hhmmss，如果當時間變成五位數hmmss時用原來的方式會拆分錯誤，所以我們可以補上字串長度判斷，決定要用哪種格式來解析時間數字 
<br>
修正前: 
<br>
<pre class="line-numbers"><code class="language-python match-braces"><br>        hour = str(nTimehms)[:2]<br>        min = str(nTimehms)[2:4]<br>        sec = str(nTimehms)[4:6]</code></pre>
<br>
修正後: 
<br>
<pre class="line-numbers"><code class="language-python match-braces"><br>        if len(str(nTimehms)) == 6:<br>            hour = str(nTimehms)[:2]<br>            min = str(nTimehms)[2:4]<br>            sec = str(nTimehms)[4:6]<br>        elif len(str(nTimehms)) == 5:<br>            hour = str(nTimehms)[:1]<br>            min = str(nTimehms)[1:3]<br>            sec = str(nTimehms)[3:5]<br>        else:<br>            hour = "0"<br>            min = str(nTimehms)[:1]<br>            sec = str(nTimehms)[1:3]</code></pre>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/788/1564</guid>
				<link>https://www.andowson.com/posts/preList/788/1564</link>
				<pubDate><![CDATA[Sun, 24 Nov 2024 19:37:53]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [程式交易]群益期貨Python API入門 2</title>
				<description><![CDATA[ 第二步 建立程式執行環境並執行範例程式 
<br>
<br>
1.安裝Anaconda 
<br>
1.1 下載Andconda 
<br><a class="snap_shots" href="https://www.anaconda.com/download" target="_new" rel="nofollow">https://www.anaconda.com/download</a>
<br>
1.2 安裝Anaconda 
<br>
(註: 群益期貨的API文件對開發環境IDE是建議安裝Visual Studio Code，但這樣需要另外安裝Python套件，目前我比較偏好使用Anaconda整合環境，內含Python套件，同時可以搭配Jupyter Notebook使用，故選擇以安裝Anaconda為執行環境) 
<br>
(參閱文件: 群益PythonAPI使用前看我看我.docx) 
<br>
<br>
2.安裝群益期貨API依賴的Python套件 
<br>
2.1 開啟Anaconda Prompt 
<br>
2.2 安裝comtypes及pywin32: 在Anaconda Prompt下輸入 
<br>
<pre class="line-numbers"><code class="language-java match-braces">pip install comtypes pywin32</code></pre>
<br>
(參閱文件: 群益PythonAPI使用前看我看我.docx) 
<br>
<br>
3.複製範例程式到D:\SKCOM\x64目錄下 
<br>
3.1 複製D:\SKCOM\CapitalAPI_2.13.51_PythonExample\PythonExampleV2\Quote\Quote目錄底下所有程式到D:\SKCOM\x64目錄下 
<br>
<br>
4.執行Quote.py 
<br>
4.1 回到Anaconda Prompt 
<br>
4.2 切換目錄到D:\SKCOM\x64目錄下: cd D:\SKCOM\x64 
<br>
4.3 用Python執行Quote.py: python Quote.py 
<br>
4.4 確認有跳出一個視窗顯示Quote 
<br>
<br>
5.測試Quote.py 
<br>
5.1 輸入UserID和Password，按下Login 
<br>
5.2 登入後請選擇這裡=&gt;:選擇更新帳號 
<br>
5.3 登入後請選擇這裡=&gt;:下拉式選單選擇身分證字號，後面的下拉式選單選擇期貨帳號 
<br>
5.4 連線環境:選擇正式環境 
<br>
5.5 按下連線，確認有跳出另一個視窗Connect 
<br>
5.6 按連線報價主機 
<br>
5.7 按檢查連線狀態: 確認出現連線中(其他按鈕也可以按按看，自行測試)，然後關閉這個視窗 
<br>
5.8 按下即時報價，確認出現一個新的視窗顯示Request 
<br>
5.9 在Page輸入1，請輸入商品代號輸入TX00,MTX00,TM0000，按下訂閱 
<br>
5.10檢查是否出現報價 
<br>
5.11關閉視窗，結束程式 
<br>
<br>
<br>
<br>
<br>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/788/1563</guid>
				<link>https://www.andowson.com/posts/preList/788/1563</link>
				<pubDate><![CDATA[Sun, 24 Nov 2024 18:49:51]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[投資理財 Financial Investment] [程式交易]群益期貨Python API入門 1</title>
				<description><![CDATA[ 第一步 正常執行SKCOMTester.exe 
<br>
<div class="videocontainer">
 <iframe width="640" height="400" src="https://www.youtube-nocookie.com/embed/0itf0aA4uio" frameborder="0" allowfullscreen></iframe>
</div>
<br>
步驟: 
<br>
<br>
1.確認該主機已有憑證 
<br><a class="snap_shots" href="https://www.capital.com.tw/web/#/certificate/ap" target="_new" rel="nofollow">https://www.capital.com.tw/web/#/certificate/ap</a>
<br>
1.1 下載RAWinApp 
<br>
1.2 執行RAWinApp 
<br>
1.3 輸入身分證字號及密碼，確認顯示此電腦已安裝您的有效憑證 
<br>
<br>
2.簽署同意書 
<br><a class="snap_shots" href="https://tradeweb.capital.com.tw/Login.aspx?Source=L&amp;Action=TSWEB/agreeList.aspx" target="_new" rel="nofollow">https://tradeweb.capital.com.tw/Login.aspx?Source=L&amp;Action=TSWEB/agreeList.aspx</a>
<br>
2.1 登入群益金鼎網上發網站簽署同意書 
<br>
2.2 確認已簽署<font color="brown">期貨API服務下單聲明書</font>
<br>
2.3 確認已簽署<font color="brown">智慧單風險(國內外皆適用)</font>
<br>
<br>
3.下載Python範例＋API元件 
<br><a class="snap_shots" href="https://www.capital.com.tw/web/#/download/ApiTrading/ApiTradinginfo" target="_new" rel="nofollow">https://www.capital.com.tw/web/#/download/ApiTrading/ApiTradinginfo</a>
<br>
(目前最新版檔名為<font color="blue">CapitalAPI_2.13.51_PythonExample.zip</font>) 
<br>
<br>
4.解壓縮 
<br>
(可以建立D:\SKCOM目錄，將下載的檔案搬移過去，再解壓縮) 
<br>
4.1 建立D:\SKCOM目錄 
<br>
4.2 移動<font color="blue">CapitalAPI_2.13.51_PythonExample.zip</font>到D:\SKCOM目錄 
<br>
4.3 解壓縮<font color="blue">CapitalAPI_2.13.51_PythonExample.zip</font>
<br>
4.4 複製D:\SKCOM\CapitalAPI_2.13.51_PythonExample\元件\x64目錄到D:\SKCOM\x64目錄 
<br>
(可以查閱 D:\SKCOM\CapitalAPI_2.13.51_PythonExample\PythonExampleV2\策略王COM元件使用說明_PythonExampleV2目錄下的<font color="brown">1.環境設置.docx</font> 文件) 
<br>
<br>
5.下載及安裝微軟Microsoft Visual C++ 可轉散發套件 
<br><a class="snap_shots" href="https://aka.ms/vs/16/release/vc_redist.x64.exe" target="_new" rel="nofollow">https://aka.ms/vs/16/release/vc_redist.x64.exe</a>
<br>
(可以查閱 策略王COM元件使用說明_V2.13.51.docx 文件) 
<br>
<br>
6.註冊元件SKCOM.dll 
<br>
6.1 檔案總管切換目錄到D:\SKCOM\x64 
<br>
6.2 在install.bat按滑鼠右鍵，選擇以系統管理者身分執行install.bat 
<br>
<br>
7.執行SKCOMTester 
<br>
7.1 在雙因子認證輸入身分證字號及密碼，按Login1 
<br>
7.2 切換到報價頁籤 
<br>
7.3 按下連線Connect，確認出現綠燈 IsConnected 
<br>
7.4 在商品代號輸入微台代號TM0000，再按查詢 
<br>
7.5 確認結果可以出現報價結果 
<br>
<br>
<br>
參考網址: 
<br><a class="snap_shots" href="https://fir-apartment-286.notion.site/351-TW-Talk-68498c7bf4124490b82d3277a02af808" target="_new" rel="nofollow">https://fir-apartment-286.notion.site/351-TW-Talk-68498c7bf4124490b82d3277a02af808</a>
<br>]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/787/1562</guid>
				<link>https://www.andowson.com/posts/preList/787/1562</link>
				<pubDate><![CDATA[Sun, 24 Nov 2024 16:12:27]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>[公告區 Announcements] 刪除JWorld@TW緊急避難所版面</title>
				<description><![CDATA[ 因JWorld@TW網站已下線，故刪除該版面。]]></description>
				<guid isPermaLink="true">https://www.andowson.com/posts/preList/786/1561</guid>
				<link>https://www.andowson.com/posts/preList/786/1561</link>
				<pubDate><![CDATA[Tue, 30 Apr 2024 17:14:52]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>