Files
auto-trade/features/kis-realtime/utils/websocketUtils.ts

30 lines
603 B
TypeScript
Raw Normal View History

2026-02-13 12:17:35 +09:00
/**
* @file features/kis-realtime/utils/websocketUtils.ts
* @description KIS
*/
/**
* @description KIS / .
*/
export function buildKisRealtimeMessage(
approvalKey: string,
symbol: string,
trId: string,
trType: "1" | "2",
) {
return {
header: {
approval_key: approvalKey,
custtype: "P",
tr_type: trType,
"content-type": "utf-8",
},
body: {
input: {
tr_id: trId,
tr_key: symbol,
},
},
};
}