mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 18:54:03 +00:00
18 lines
398 B
TypeScript
18 lines
398 B
TypeScript
import type { CurrencyCode } from '@household/domain'
|
|
|
|
export interface ExchangeRateQuote {
|
|
baseCurrency: CurrencyCode
|
|
quoteCurrency: CurrencyCode
|
|
rateMicros: bigint
|
|
effectiveDate: string
|
|
source: 'nbg'
|
|
}
|
|
|
|
export interface ExchangeRateProvider {
|
|
getRate(input: {
|
|
baseCurrency: CurrencyCode
|
|
quoteCurrency: CurrencyCode
|
|
effectiveDate: string
|
|
}): Promise<ExchangeRateQuote>
|
|
}
|