AtlatestRepositorysigil-wise
sigil-wise / treeREADME.md
1
# sigil-wise3
A Sigil library for the [Wise](https://wise.com) (formerly TransferWise) API. Pull transactions, query balances, and manage profiles for personal finance automation.5
## Features7
- **Profile management** — list personal and business profiles8
- **Balance queries** — get current balances across all currencies9
- **Transaction statements** — pull detailed transaction history with automatic date windowing (handles Wise's 469-day limit transparently)10
- **Multi-currency** — works across all Wise-supported currencies11
- **Error handling** — SCA (PSD2) detection for UK/EEA accounts, rate limit handling12
- **Sandbox support** — configurable base URL for development against Wise sandbox14
## Usage16
```scheme17
(import (wise))19
;; Create a client with your personal API token20
(define client (wise-client token: "your-api-token"))22
;; List profiles23
(define profiles (wise-profiles client))25
;; Get balances for a profile26
(define balances (wise-balances client (wise-profile-id (car profiles))))28
;; Pull transactions for a date range29
(define txns (wise-transactions client30
(wise-profile-id (car profiles))31
"2026-01-01T00:00:00Z"32
"2026-03-25T23:59:59Z"))33
```35
## Configuration37
Authentication uses a Wise personal API token:39
1. Log into Wise, go to Settings > API tokens40
2. Enable 2FA if not already active41
3. Generate a new token43
Set `WISE_API_TOKEN` in your environment or pass it directly to `wise-client`.45
For sandbox development, pass the sandbox URL:46
```scheme47
(define client (wise-client token: "your-api-token"48
base-url: "https://api.wise-sandbox.com"))49
```51
## Dependencies53
- sigil-stdlib54
- sigil-http55
- sigil-json57
## Building59
```60
sigil deps install61
sigil build62
sigil test63
```65
## License67
BSD-3-Clause