import type { ExchCodeValue, MicCodeValue } from "./openfigi/all_values.js"; import type { MappingJobObject } from "./openfigi/mapping.js"; export type { MappingJobObject }; export interface LocalExchange { type: "local"; asOf: number; exchCode: ExchCodeValue; figiName: string; compositeCode: string; compositeName: string; countryCode: string; trueComposite: boolean; fullName: string; } export interface CryptoExchange { type: "crypto"; asOf: number; exchCode: ExchCodeValue; name: string; } /** * @discriminator type */ export type Exchange = LocalExchange | CryptoExchange; export type ExchangeWithMICs = Exchange & { MIC?: MicCodeValue | null; operatingMIC?: string | null; }; export declare const exchanges: Partial>; /** * Get Exchange by Exchange Code (exchCode) * @param exchCode - Exchange Code (exchCode) * @returns Exchange object with MIC and operatingMIC if available, otherwise null */ export declare function getExchange(exchCode: ExchCodeValue): Exchange | null; /** * Get Exchange by object containing Exchange Code (exchCode) * @param MappingJobObject - Object with { exchCode: ExchCodeValue } * @returns Exchange object with MIC and operatingMIC if available, otherwise null */ export declare function getExchange(MappingJobObject: MappingJobObject): Exchange | null; /** * Get Exchange by Exchange Code (exchCode) * @param exchCode - Exchange Code (exchCode) * @returns Exchange object with MIC and operatingMIC if available, otherwise null */ export declare function getExchangeByExchCode(exchCode: ExchCodeValue): Exchange | null; /** * Get Exchange Code (exchCode) by MIC * @param mic - MIC code * @returns Exchange Code (exchCode) if found, otherwise null */ export declare function getExchCodeByMIC(mic: MicCodeValue): ExchCodeValue | null; /** * Get Exchange Code (exchCode) by Operating MIC * @param operatingMIC - Operating MIC code * @returns Exchange Code (exchCode) if found, otherwise null */ export declare function getExchCodeByOperatingMIC(operatingMIC: string): ExchCodeValue | null; /** * Get MIC by Exchange Code (exchCode) * @param exchCode - Exchange Code (exchCode) * @returns MIC code if found, otherwise null */ export declare function getMICByExchCode(exchCode: ExchCodeValue): MicCodeValue | null; /** * Get Operating MIC by Exchange Code (exchCode) * @param exchCode - Exchange Code (exchCode) * @returns Operating MIC code if found, otherwise null */ export declare function getOperatingMICByExchCode(exchCode: ExchCodeValue): string | null; //# sourceMappingURL=exchanges.d.ts.map