GithubHelp home page GithubHelp logo

pycontw2018talk's Introduction

PyConTW2018Talk

土炮一個 Line 股票機器人

影片連結:

投影片連結:

機器人 QR Code,可用 Line 掃描加入好友後使用:

土炮股票機器人

稍微說明一下:

  • 即時股價是直接抓證交所的資料,查詢的次數太"頻繁"的話,證交所會把之後的 request 擋掉。所謂的"頻繁",其實也沒有那麼頻繁,很容易的就會被擋掉了。
  • 歷史股價的部份是從 Yahoo Finance 直接抓,多張股票的時候會等比較久。
  • 圖片的部份因為需要先上傳 imgur,再把連結傳回來,所以花的時間會比較久。
  • 回測的部分,因為要下載多張股票的歷史資料,回測結果又要上傳 imgur,所以花的時間會比較久。
  • 觀察股的數量目前限制為 5 檔股票。

指令大概是這些:

#股票代號 ==> 查詢即時股價
$股票代號 ==> 投資建議
/股票代號 ==> 繪製 K 線圖
!list ==> 列出觀察股
!add 股票代號 ==> 加入觀察股
!del 股票代號 ==> 刪除觀察股
!backtest ==> 回測觀察股清單中的所有股票
!news n ==> 列出 n 則鉅亨股市新聞 (n < 30)

程式沒做甚麼例外處理,如果它沒有回應,歡迎傳訊讓我知道一下,可能是掛掉了。

pycontw2018talk's People

Contributors

victorgau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.