查詢歷史成交
filledHistory
輸入參數
參數 | 類別 | 說明 |
---|---|---|
account | Account | 帳 號 |
startDate | string | 查詢開始日 ( YYYYMMDD ) |
endDate | string | 查詢終止日 ( YYYYMMDD ) |
成交資訊 FilledRecordOutput 欄位
Return type : Object
參數 | 類型 | 說明 |
---|---|---|
orderNo | String | 委託書號 |
sysCode | String | 來源別 |
symbol | String | 股票代號 |
mktSeqNo | String | 成交序號 |
marketType | MarketType | 市場類型 :Common 整股、AfterMarket 盤後 、Odd 盤後零股、Emg 、 興櫃、IntradayOdd 盤中零股 |
market | String | 市場 : T 上市、O 上櫃、R 興櫃 |
buySell | BSAction | 買賣方向 : Buy 買、Sell 賣 |
orderType | OrderType | 委託單類型 : Stock 股票 、 Margin 融資、 Short 融券、DayTradeShort 現股當沖賣 |
payment | Double | 應收付總金額 |
filledDate | String | 成交日期 |
filledTime | String | 成交時間 |
filledQty | Int | 成交股數 |
filledPrice | Double | 成交價格 |
請求範例
const filled_history = sdk.stock.filled_history(account,"20230921","20230922");
console.log(filled_history)
回傳範例
{
orderNo: "g0002", // 委託書號 (String)
sysCode: "4U", // 來源別 (String)
symbol: "2889", // 股票代號 (String)
mktSeqNo: "00000009", // 成交序號 (String)
marketType: 1, // 盤別 (Int)
market: "T", // 市場 (String)
buySell: "Buy", // 買賣方向 (BsAction)
orderType: "Common", // 委託單類型 (OrderType)
payment: 15000.0, // 應收付總金額 (Double)
filledDate: "20241004", // 成交日期 (String)
filledTime: "152549030", // 成交時間 (String)
filledQty: 1000, // 成交股數 (Int)
filledPrice: 15.0, // 成交價格 (Double)
}