Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

關於list_position function #51

Closed
luanya01 opened this issue Jul 11, 2020 · 4 comments
Closed

關於list_position function #51

luanya01 opened this issue Jul 11, 2020 · 4 comments

Comments

@luanya01
Copy link

請問禮拜六主機維護嗎,抓不到未平倉資訊;

另外看API ,get_account_openposition function這個之後會拿掉;
但是list_position取得的資訊無法得知未平倉商品合約月份(code、cond、direction、pnl、price、quantity、yd_quantity) ,
這會導致無法判斷是否到了換倉日而該換倉(也許商品已經是在次月)
請確認,謝謝!

@ypochien
Copy link
Contributor

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

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

@Tingchu
Copy link

Tingchu commented Mar 15, 2021

請問現在有任何方式能得到期貨持倉部位嗎?
我的期貨帳戶應該有一口未平倉,
但是 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?

@ian15937
Copy link

請問現在有任何方式能得到期貨持倉部位嗎?
我的期貨帳戶應該有一口未平倉,
但是 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

@Tingchu
Copy link

Tingchu commented May 12, 2021

請問現在有任何方式能得到期貨持倉部位嗎?
我的期貨帳戶應該有一口未平倉,
但是 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

@Yvictor Yvictor closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants