Giter Club home page Giter Club logo

Comments (4)

ypochien avatar ypochien commented on August 23, 2024

週六公司資料庫有進行異動,造成功能異常,請見諒。

另外針對期貨資訊的處理,現在已列入開發中,會完善整個交易相關資訊,才會將get_account_openposition 拿掉

from shioaji.

Tingchu avatar Tingchu commented on August 23, 2024

請問現在有任何方式能得到期貨持倉部位嗎?
我的期貨帳戶應該有一口未平倉,
但是 api.list_positions(self.api.futopt_account) 回傳 empty list []
而 api.get_account_openposition(query_type='1', account=self.api.futopt_account) 也只回傳 person_id, broker_id, account_id, username 等等
@ypochien Can somebody help me for this?

from shioaji.

ian15937 avatar ian15937 commented on August 23, 2024

請問現在有任何方式能得到期貨持倉部位嗎?
我的期貨帳戶應該有一口未平倉,
但是 api.list_positions(self.api.futopt_account) 回傳 empty list []
而 api.get_account_openposition(query_type='1', account=self.api.futopt_account) 也只回傳 person_id, broker_id, account_id, username 等等
@ypochien Can somebody help me for this?

Same issue+1

from shioaji.

Tingchu avatar Tingchu commented on August 23, 2024

請問現在有任何方式能得到期貨持倉部位嗎?
我的期貨帳戶應該有一口未平倉,
但是 api.list_positions(self.api.futopt_account) 回傳 empty list []
而 api.get_account_openposition(query_type='1', account=self.api.futopt_account) 也只回傳 person_id, broker_id, account_id, username 等等
@ypochien Can somebody help me for this?

Same issue+1

我後來在Gitter問,有得到解答了:

    positions = self.api.get_account_openposition(query_type='0', account=self.api.futopt_account)
    positions = positions.data() # get the list

from shioaji.

Related Issues (20)

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.