GithubHelp home page GithubHelp logo

toomore / goristock Goto Github PK

View Code? Open in Web Editor NEW
66.0 11.0 16.0 1.4 MB

📈 goristock 台灣股市分析機器人 in Google App Engine. 包含其他版本,請參考分支! #stock #twse #gae #appengine

Home Page: http://goristock.appspot.com/

License: MIT License

Python 100.00%

goristock's Introduction

goristock 台灣股市分析機器人

Authors:Toomore
Version:0.5 of 2011/10/05

How it work.

https://docs.google.com/present/view?id=dft5qcw9_95hd66b9dj

Report Issue or get involved

ChangeLog

2011-10-05 v0.5

main change:

  1. spread gae and grs from goristock.
  2. a87bede [issues #35] Build Buy or sell record.
  3. a76edcc Update ck4buy example.
  4. 84fc5bd Rewrite ck4buy example.
  5. c7c9951 [issues #33] Update twseno and add inds no.
  6. 14393dd Change License year from 2010 to 2011.
  7. 1b3d105 [issues #31 #32] Build B4P model.
  8. 2f9c23e [issues #30] Build 4 best buy point model.
  9. 06bc671 [issues #30] Build ckMAO.
  10. 7ccb454 Tiny change for good efficacy.
  11. d30fc52 Change SD,SDAVG,CV default days.(45days)
  12. a3afde3 Fixed a rev bug.
  13. d1a090c Add code note.
  14. b528885 [issues #22] Fixed a zone value type.
  15. 7a12995 [issues #19] Fixed csv file open path.
  16. efa6425 [API] Fixed liststock fault.
  17. d9d8662 Fixed issues #9.
  18. b877a0a Translation to Chinese.
  19. b0ef262 Useing TWTime() for detecting open or not.

goristock's People

Contributors

toomore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar

goristock's Issues

goristock.py 時區判斷問題

GAE 是 UTC +0 時區,目前是指定參數 TIMEZONE = 8,但如果在本機端測試時,時區一定錯誤。

希望利用時區判斷來解決這問題。

買進賣出記錄

class(期初金額):

  • buy(no, price, 張數)
    • [money] → - 收盤價
    • [store] → no: + 張數
    • [Avgprice] → no: [buy/sell]
  • sell(no, price, 張數)
    • [money] → + 收盤價
    • [store] → no: - 張數
    • [Avgprice] - no: [buy/sell]
  • Total: money, store, Avgprice

如何加入

在如何加入的那個網址 點下去出現404錯誤該如何解決

建立範例區

建立一區提供簡單的功能範例

  • 著作權宣告
  • 範例描述
  • code...

將四大買賣點整理成一個 class

class B4P(object):

A. 正/負乖離扣至最大
B. 四大買點

  • B1~B4

C. 四大賣點

  • S1~S4

D. 判斷是否為四大買點(B4PB)
E. 判斷是否為四大買點(B4PS)

無法擷取最新資料

收盤後,無規則的部份股票無法擷取新的資料。
推測原因,該股票檔案如果在一天中存取過多,就容易發生這樣的狀況。
目前使用 /ad/stantisercache 來解決,但效果似乎有限。

/ad/stantisercache

stantisercache every 2 hours synchronized (Asia/Taipei)

建立 stock no. list csv 檔案

建立 stock no. list csv 檔案,將 stock no 從 py 取出,以建立 csv 檔匯入方式讀取名單。

格式

  • 00 "description"
  • 01 "stock no", "stock name"
  • 02 ~

stock no

stock no 應為 str() 或是 int() 有待確定。

虛擬交易

建立簡易的虛擬交易機制

  • 可用金額
  • 買賣交易
  • 損益報告

新增 API Key

因應 11/1 GAE 收費問題,使用 API 需要授權 Key 的設定。

擷取大盤資訊

沒有大盤資訊可以分析,目前只有各股資訊可以用。

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.