<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>COCO研究院 - Python討論區</title>
    <link>https://coco-in.net/forum-148-1.html</link>
    <description>Latest 20 threads of Python討論區</description>
    <copyright>Copyright(C) COCO研究院</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Tue, 07 Apr 2026 20:48:32 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://coco-in.net/static/image/common/logo_88_31.gif</url>
      <title>COCO研究院</title>
      <link>https://coco-in.net/</link>
    </image>
    <item>
      <title>如何用twstock抓00878的日線資料</title>
      <link>https://coco-in.net/thread-156361-1-1.html</link>
      <description><![CDATA[程式碼在最下面
重點是要更新代碼，才有00878的代碼
更新代碼的方法：





參考資料
https://hackmd.io/@s02260441/HJcMcnds8
https://github.com/mlouielu/twstock#update-codes]]></description>
      <category>Python討論區</category>
      <author>綠茶妹</author>
      <pubDate>Sun, 06 Aug 2023 07:25:00 +0000</pubDate>
    </item>
    <item>
      <title>python 爬取即時股價</title>
      <link>https://coco-in.net/thread-156338-1-1.html</link>
      <description><![CDATA[python 爬取即時股價

資料來源
https://mis.twse.com.tw/stock/index.jsp


這個很簡單，也非常實用






參考資料 
https://kbwen.com/2020/09/08/pyt ... %E8%82%A1%E5%83%B9/]]></description>
      <category>Python討論區</category>
      <author>綠茶妹</author>
      <pubDate>Sun, 16 Jul 2023 10:25:50 +0000</pubDate>
    </item>
    <item>
      <title>如何用TradingView的webhook觸發IB自動下單</title>
      <link>https://coco-in.net/thread-156155-1-1.html</link>
      <description><![CDATA[如何用TradingView的webhook觸發IB自動下單 (Interactive Brokers)

1) 先了解怎麼樣發出TradingView的webhook，
範例如下：
設定交易訊號：與 TradingView Webhooks 共舞

注意，可以用自己寫的策略訊號觸發。
這才是我們真正會用到的。下面是範例：



2) 再來是local ...]]></description>
      <category>Python討論區</category>
      <author>綠茶妹</author>
      <pubDate>Sat, 04 Mar 2023 02:12:03 +0000</pubDate>
    </item>
    <item>
      <title>１分鐘線數據給backtrader用</title>
      <link>https://coco-in.net/thread-156114-1-1.html</link>
      <description><![CDATA[感覺很簡單的東西我弄了一整天



請先參考這一篇
https://www.backtrader.com/docu/datafeed/

Datatrader的Data feed有以下幾種

[*]Yahoo (online or already saved to a file)
[*]VisualChart (see www.visualchart.com
[*]Backtrader CSV (own cooked format for t ...]]></description>
      <category>Python討論區</category>
      <author>綠茶妹</author>
      <pubDate>Sat, 11 Feb 2023 18:33:44 +0000</pubDate>
    </item>
    <item>
      <title>Backtrader的hello world (Python回測)</title>
      <link>https://coco-in.net/thread-156100-1-1.html</link>
      <description><![CDATA[https://www.backtrader.com/home/helloalgotrading/


這個sample直接跑會有error。有2個地方要改，改了才會好。
(還真麻煩，我以為一下載就可以用  ) 

1) Yahoo下載報錯

解決方法在這裡看到的
https://community.backtrader.com/topic/3979/help-with-yahoofinance- ...]]></description>
      <category>Python討論區</category>
      <author>綠茶妹</author>
      <pubDate>Sun, 05 Feb 2023 14:38:36 +0000</pubDate>
    </item>
    <item>
      <title>Interactive Brokers Python API (官方原生) 新手教學</title>
      <link>https://coco-in.net/thread-156094-1-1.html</link>
      <description><![CDATA[Interactive Brokers Python API (官方原生)
下面這一篇寫的很清楚。
我也不知道原生API有沒有比第三方API好用。反正就學學看
https://algotrading101.com/learn ... n-api-native-guide/

今天做到中間這裡 ，還滿好上手的。


我的測試









 ...]]></description>
      <category>Python討論區</category>
      <author>綠茶妹</author>
      <pubDate>Tue, 31 Jan 2023 15:01:32 +0000</pubDate>
    </item>
    <item>
      <title>IB帳戶開第2個使用者以登入2個裝置</title>
      <link>https://coco-in.net/thread-156093-1-1.html</link>
      <description><![CDATA[昨天在網路上看到的，今天來申請。聽說1天會核准。
https://zhuanlan.zhihu.com/p/386919040

1.前期准备
[*]申请一个新用户。默认情况下，一个人只有一个账号和一个用户身份。但其实一个账号下可以有多个用户。因为我的需求是手机和机器人同时在线查看盈透行情和下单 ...]]></description>
      <category>Python討論區</category>
      <author>綠茶妹</author>
      <pubDate>Tue, 31 Jan 2023 13:57:03 +0000</pubDate>
    </item>
  </channel>
</rss>