# 4. 國外委託送單 SeaNewOrder ( ) ## 函式 ``` SeaNewOrder ( string oibno, string oAccount, string oSymbol, string oBS, string oClientOrdNo, string oSymbolFlag, string oOrderIP, string oPriceString, int oQty, string oPriceflag="2", string oTif="1", string oPosition_Effect = "4", string oSub_Account = null, string oExchange = null, string oPriceStringFlag= "1", string oStopCondition = "1", string oStopPriceString = "0", 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:買賣別<font color="#FF5353">(1-買、2-賣)</font> oClientOrdNo:自訂序號<font color="#FF5353">(預設為空值)</font> oSymbolFlag:商品別<font color="#FF5353">(1-期貨、2-選擇權、3-複式選擇權、4-期貨價差)</font> oOrderIP:委託IP位置 oQTY:委託數量 oPriceString:委託價格字串<font color="#FF5353">(市價、範圍市價請帶"0")</font> oPriceflag:價格條件<font color="#FF5353">(1:限價、2:市價、3:市價停損(國外)、4:限價停損(國外)、5:範圍市價,預設為2)</font> oTif:委託條件<font color="#FF5353">(1-ROD、2-FOK、3-IOC,預設為1)</font> oPosition_effect:新平倉碼<font color="#FF5353">(1-新增、2-沖銷、3-當沖、4-自動,預設為4)</font> oSubAccount:子帳號<font color="#FF5353">(預設為空值)</font> oExchange:交易所代碼<font color="#FF5353">(1-Taifex、2-Hkfe、3-Sgx、4-Cme、5-Cbot、6-Comex、7-Nymex、8-Nybot、9-Lif、10-Ipe、11-Eurex、12-Mat、13-Tocom、14-Ose、15-Lme、16-Ice、17-IceUK、18-Jpx,預設為空值)</font> oPriceStringFlag:價格格式<font color="#FF5353">(預設為"1",帶"1"時,oPriceString及oStopPriceString價格格式為小數如:111.3515625;適用於分數商品,帶"2"時,oPriceString及oStopPriceString價格格式為分數如:111+11.25/32)</font> oStopCondition:停損單<font color="#FF5353">(1-一般單、2-停損單,預設為1)</font> oStopPriceString:停損價格<font color="#FF5353">(預設為"0")</font> strSign:簽章內容<font color="#FF5353">(B2B使用者需自行填入,一般使用者無須理會,預設為空值)</font> CA:憑證值<font color="#FF5353">(B2B使用者需自行填入,一般使用者無須理會,預設為空值)</font> b2bID:客戶之ID <font color="#FF5353">(B2B使用者需自行填入,一般使用者無須理會,預設為空值)</font> check_code:驗證碼<font color="#FF5353">(B2B使用者需自行填入由web登入所取得的值,一般使用者無須理會,預設為空值)</font> total_account:驗證帳號<font color="#FF5353">(B2B使用者需自行填入由web登入所取得的值,一般使用者無須理會,預設為空值)</font> order_source:下單來源別<font color="#FF5353">(0-同登入來源別、1-MultiCharts)</font> ## 回傳 1. 透過SeaReportEvent事件通知結果 2. 若送單失敗透過Error事件送出錯誤內容 ## 說明 國外委託下單 --- ###### tags: `下單API技術文件`