twmarket
參考API

CBC

CBC

查詢央行匯率並保留來源幣別配對方向.

__init__

def __init__(http: Http) -> None: ...

Initialize the source namespace with its owning HTTP transport.

exchange_rates

def exchange_rates(*, start: date, end: date, currency: str | None=None) -> list[ExchangeRate]: ...

查詢含起訖兩日的匯率;currency 可篩選任一側幣別,維持來源方向.

AsyncCBC

以 await 查詢央行匯率並保留來源幣別配對方向.

__init__

def __init__(http: AsyncHttp) -> None: ...

Initialize the source namespace with its owning HTTP transport.

exchange_rates

async def exchange_rates(*, start: date, end: date, currency: str | None=None) -> list[ExchangeRate]: ...

查詢含起訖兩日的匯率;currency 可篩選任一側幣別,維持來源方向.

本頁目錄