@evil-gauss/core
Version:
evil core library
20 lines (19 loc) • 515 B
TypeScript
export declare namespace Instruments {
interface MandatoryFields {
/** quote == CURRENCY */
quote: string;
/** symbol == instrumentId */
symbol: string;
}
export interface Forex extends MandatoryFields {
instrumentType: 'forex';
base: string;
}
/** base == symbol */
export interface Future extends MandatoryFields {
instrumentType: 'future';
margin: string;
}
export type Instrument = Forex | Future;
export {};
}