當(dāng) ORDER_OrderStatusEx事件觸發(fā),且 Fille>0 時(shí)調(diào)用 HoldingInfoByCode2 想查看品種總體持倉情況怎么返回值為哦 [金字塔]
- 咨詢內(nèi)容:
當(dāng) ORDER_OrderStatusEx事件觸發(fā),且 Fille>0 時(shí)調(diào)用,表示有成交,調(diào)用HoldingInfoByCode2 想查看品種總體持倉情況怎么持倉的返回值都為0哦
HoldingInfoByCode2(Code, Market, BuyHoding, BuyCost, BuyTodayHoding, SellHoding, SellCost, SellTodayHoding, PNL, UseMargin,"")
- 金字塔客服:
且調(diào)用
HoldingInfoByCode2 這個(gè)函數(shù)的返回值為0,為什么
- 用戶回復(fù):
返回值為0的主要原因有;
1 當(dāng)前登錄賬戶異常,或者未登錄有效賬戶
2 Code,Market這2個(gè)參數(shù)有誤導(dǎo)致無法找到合約
你地情況可能跟第2種有關(guān),建議你用Application.msgout函數(shù)調(diào)試輸出一下看看
- 網(wǎng)友回復(fù):
code 和 market都是正常的,因此復(fù)用的是 ORDER_OrderStatusEx(OrderID,Status,Filled,Remaining,Price,Code,Market,OrderType,Aspect,Kaiping)中的code 和market參數(shù),登陸也是正常的
- 網(wǎng)友回復(fù):
code 和 market都是正常的,因?yàn)閺?fù)用的是 ORDER_OrderStatusEx(OrderID,Status,Filled,Remaining,Price,Code,Market,OrderType,Aspect,Kaiping)中的code 和market參數(shù),登陸也是正常的
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容