임시커밋
This commit is contained in:
@@ -29,7 +29,7 @@ const AFTER_HOURS_SINGLE_END_MINUTES = 18 * 60; // 18:00
|
||||
/**
|
||||
* @description Converts external string to strict session enum.
|
||||
* @see lib/kis/domestic.ts getDomesticOrderBook
|
||||
* @see features/dashboard/hooks/useKisTradeWebSocket.ts resolveSessionInClient
|
||||
* @see features/trade/hooks/useKisTradeWebSocket.ts resolveSessionInClient
|
||||
*/
|
||||
export function parseDomesticKisSession(value?: string | null) {
|
||||
if (!value) return null;
|
||||
@@ -53,7 +53,7 @@ export function parseDomesticKisSession(value?: string | null) {
|
||||
|
||||
/**
|
||||
* @description Returns current session in KST.
|
||||
* @see features/dashboard/hooks/useKisTradeWebSocket.ts WebSocket TR switching
|
||||
* @see features/trade/hooks/useKisTradeWebSocket.ts WebSocket TR switching
|
||||
* @see lib/kis/domestic.ts REST orderbook source switching
|
||||
*/
|
||||
export function getDomesticKisSessionInKst(now = new Date()): DomesticKisSession {
|
||||
@@ -104,7 +104,7 @@ export function getDomesticKisSessionInKst(now = new Date()): DomesticKisSession
|
||||
/**
|
||||
* @description If override is valid, use it. Otherwise use real KST time.
|
||||
* @see app/api/kis/domestic/orderbook/route.ts session override header
|
||||
* @see features/dashboard/hooks/useKisTradeWebSocket.ts localStorage override
|
||||
* @see features/trade/hooks/useKisTradeWebSocket.ts localStorage override
|
||||
*/
|
||||
export function resolveDomesticKisSession(
|
||||
override?: string | null,
|
||||
@@ -143,7 +143,7 @@ export function shouldUseOvertimeOrderBookApi(session: DomesticKisSession) {
|
||||
|
||||
/**
|
||||
* @description Whether trade tick should use expected-execution TR.
|
||||
* @see features/dashboard/hooks/useKisTradeWebSocket.ts resolveTradeTrId
|
||||
* @see features/trade/hooks/useKisTradeWebSocket.ts resolveTradeTrId
|
||||
*/
|
||||
export function shouldUseExpectedExecutionTr(session: DomesticKisSession) {
|
||||
return session === "openAuction" || session === "closeAuction";
|
||||
@@ -151,7 +151,7 @@ export function shouldUseExpectedExecutionTr(session: DomesticKisSession) {
|
||||
|
||||
/**
|
||||
* @description Whether trade tick/orderbook should use after-hours single-price TR.
|
||||
* @see features/dashboard/hooks/useKisTradeWebSocket.ts resolveTradeTrId
|
||||
* @see features/trade/hooks/useKisTradeWebSocket.ts resolveTradeTrId
|
||||
*/
|
||||
export function shouldUseAfterHoursSinglePriceTr(session: DomesticKisSession) {
|
||||
return session === "afterHoursSinglePrice";
|
||||
|
||||
Reference in New Issue
Block a user