05、國內委託市價送單 NewOrder_MarketPrice ( )
函式
NewOrder_MarketPrice(
    string oIbno,
    string oAccount,
    string oSymbol,
    string oBS,
    string oClientOrdNo,
    string oSymbolFlag,
    string oOrderIP,
    int oQty,
    string oPriceflag="2",
    string oTif="3",
    string oPosition_Effect = "4",
    string oSub_Account = null,
    string strSign = null,
    string CA = null,
    string b2bID = null,
    string check_code = null,
    string total_account = null,
    string order_source = "0"
)輸入
oIbno:分公司代碼
oAccount:帳戶
oSymbol:商品
oBS:買賣別(1-買、2-賣)
oClientOrdNo:自訂序號(預設為空值)
oSymbolFlag:商品別(1-期貨、2-選擇權、3-複式選擇權、4-期貨價差)
oOrderIP:委託IP位置
oQTY:委託數量
oPriceflag:價格條件(1-限價、2-市價、3-市價停損(國外)、4-限價停損(國外)、5-範圍市價,預設為2)
oTif:委託條件(1-ROD、2-FOK、3-IOC,預設為3)
oposition_effect:新平倉碼(1-新增、2-沖銷、3-當沖、4-自動,預設為4)
oSubAccount:子帳號(預設為空值)
strSign:簽章內容(B2B使用者需自行填入,一般使用者無須理會,預設為空值)
CA:憑證值(B2B使用者需自行填入,一般使用者無須理會,預設為空值)
b2bID:客戶之ID(B2B使用者需自行填入,一般使用者無須理會,預設為空值)
check_code:驗證碼(B2B使用者需自行填入由web登入所取得的值,一般使用者無須理會,預設為空值)
total_account:驗證帳號(B2B使用者需自行填入由web登入所取得的值,一般使用者無須理會,預設為空值)
order_source:下單來源別(0-同登入來源別、1-MultiCharts)
回傳
- 透過Report事件通知結果 
- 若送單失敗透過Error事件送出錯誤內容 
說明
國內委託市價送單
Last updated
Was this helpful?