Giter Site home page Giter Site logo

capital_api's Introduction

Capital_API

作者:Philipz([email protected])
Blog:http://server.everfine.com.tw/blog/
感謝Lucas([email protected])提供JNA+SWT來接C語言Callback的程式碼

使用Java JNA和SWT去界接群益報價API的範例

1.使用必要條件
 a.需有群益帳戶
 b.有開通報價API,並下載那API相關DLL檔

2.使用方法
 a.將群益帳號密碼輸入到SKQuoteLib_SWT_Example的身分證字號和密碼。
 b.將那SKQuoteLib.dll複製到這專案目錄下。
 c.將Data目錄(內含Stocks.dat)及config.ini複製到JDK或JRE的bin目錄中,以免商品名稱變成亂碼。
 d.如果那SKQuoteLib.dll為32位元,請用32位元版的SWT和JDK,若64位元,則用64位元版的SWT和JDK。
  目前是使用32位元。
 e.執行那SKQuoteLib_SWT_Example.java,就會登入並取得Server端時間,按下接收報價就會取得台指期跟領先指的報價。
 f.要結束請先按結束連線再關閉。

目前TradingBot - 程式交易機器人,就是使用群益報價API
歡迎大家加入討論程式交易,http://www.facebook.com/tradingbot

capital_api.png

capital_api's People

Contributors

philipz avatar

Watchers

 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.