fixparser
Version:
FIX.Latest / 5.0 SP2 Parser / AI Agent Trading
31 lines (30 loc) • 1.28 kB
TypeScript
type OptionalKeys<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? K : never;
}[keyof T];
type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
}[keyof T];
export type PickWithOptionality<T, K extends keyof T> = Pick<T, Extract<K, RequiredKeys<T>>> & Partial<Pick<T, Extract<K, OptionalKeys<T>>>>;
export type Version = {
version: string | undefined;
build: string | undefined;
};
declare global {
const __PACKAGE_VERSION__: string;
const __BUILD_TIME__: string;
}
export declare const version: Version;
export type FIXValue = number | string | boolean | null | undefined;
export type Parser = 'FIXServer' | 'FIXParser' | 'FIXParserBrowser';
export declare const parseFixVersion: (version: FIXValue) => string;
export declare const DEFAULT_FIX_VERSION: string;
export declare const DEFAULT_HEARTBEAT_SECONDS: number;
export declare const DEFAULT_TLS_TIMEOUT: number;
export declare const DEFAULT_TLS_ENCODING: BufferEncoding;
export declare const SOH: string;
export declare const STRING_EQUALS: string;
export declare const RE_ESCAPE: RegExp;
export declare const RE_FIND: RegExp;
export declare const READY_MS: number;
export declare const pad: (value: number, size: number) => string;
export { timestamp } from './timestamp.ts';