cotizaciones-uruguay
Version:
Cotizaciones de bancos en Uruguay
34 lines (33 loc) • 1.04 kB
TypeScript
interface WsBcuCotizacionesIn {
Moneda: Array<{
item: number;
}>;
FechaDesde: string;
FechaHasta: string;
Grupo: 0 | 1 | 2 | 3;
}
interface Result {
Fecha: string | null;
Moneda: number;
Nombre: string;
CodigoISO: string;
Emisor: string;
TCC: number;
TCV: number;
ArbAct: number;
FormaArbitrar: number;
}
export declare function obtenerCotizaciones(params?: Partial<WsBcuCotizacionesIn>): Promise<Result[]>;
declare const errorCodes: {
readonly 100: "NO_EXCHANGE_RATE_EXISTS_FOR_THE_SPECIFIED_DATE";
readonly 101: "CURRENCY_CODE_DOES_NOT_EXIST";
readonly 102: "INVALID_DATE_FIELD";
readonly 103: "END_DATE_IS_EARLIER_THAN_START_DATE";
readonly 104: "DATE_RANGE_EXCEEDS_THE_ALLOWED_LIMIT";
readonly 105: "GROUP_DOES_NOT_EXIST_OR_IS_DISABLED";
readonly 106: "SERVICE_UNAVAILABLE_DUE_TO_DATA_UPDATE";
readonly 107: "SERVICE_UNAVAILABLE";
};
type ErrorCode = keyof typeof errorCodes;
export type ErrorMessage = typeof errorCodes[ErrorCode];
export {};