mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 23:44:03 +00:00
feat(finance): add settlement currency and cycle fx rates
This commit is contained in:
17
packages/ports/src/exchange-rates.ts
Normal file
17
packages/ports/src/exchange-rates.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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>
|
||||
}
|
||||
Reference in New Issue
Block a user