{"id":16087200,"url":"https://github.com/nef10/wealthsimpledownloader","last_synced_at":"2025-10-14T13:33:12.660Z","repository":{"id":40325591,"uuid":"279508234","full_name":"Nef10/WealthsimpleDownloader","owner":"Nef10","description":"Swift library to download data from Wealthsimple using the API","archived":false,"fork":false,"pushed_at":"2025-10-14T05:37:03.000Z","size":1981,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-14T13:33:01.309Z","etag":null,"topics":["api-wrapper","wealthsimple"],"latest_commit_sha":null,"homepage":"https://nef10.github.io/WealthsimpleDownloader/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nef10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-14T07:00:47.000Z","updated_at":"2025-10-14T05:37:07.000Z","dependencies_parsed_at":"2023-02-12T13:47:18.369Z","dependency_job_id":"623dcade-6d34-411d-b46c-a9986087d821","html_url":"https://github.com/Nef10/WealthsimpleDownloader","commit_stats":{"total_commits":157,"total_committers":4,"mean_commits":39.25,"dds":0.5605095541401274,"last_synced_commit":"8bea0a2f4b3580fb03d3fa6803566359b47da59a"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/Nef10/WealthsimpleDownloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nef10%2FWealthsimpleDownloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nef10%2FWealthsimpleDownloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nef10%2FWealthsimpleDownloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nef10%2FWealthsimpleDownloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nef10","download_url":"https://codeload.github.com/Nef10/WealthsimpleDownloader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nef10%2FWealthsimpleDownloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018708,"owners_count":26086609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-wrapper","wealthsimple"],"created_at":"2024-10-09T13:28:44.931Z","updated_at":"2025-10-14T13:33:12.615Z","avatar_url":"https://github.com/Nef10.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WealthsimpleDownloader\n\n[![CI Status](https://github.com/Nef10/WealthsimpleDownloader/workflows/CI/badge.svg?event=push)](https://github.com/Nef10/WealthsimpleDownloader/actions?query=workflow%3A%22CI%22) [![Documentation percentage](https://nef10.github.io/WealthsimpleDownloader/badge.svg)](https://nef10.github.io/WealthsimpleDownloader/) [![License: MIT](https://img.shields.io/github/license/Nef10/WealthsimpleDownloader)](https://github.com/Nef10/WealthsimpleDownloader/blob/main/LICENSE) [![Latest version](https://img.shields.io/github/v/release/Nef10/WealthsimpleDownloader?label=SemVer\u0026sort=semver)](https://github.com/Nef10/WealthsimpleDownloader/releases) ![platforms supported: linux | macOS | iOS | watchOS | tvOS](https://img.shields.io/badge/platform-linux%20%7C%20macOS%20%7C%20iOS%20%7C%20watchOS%20%7C%20tvOS-blue) ![SPM compatible](https://img.shields.io/badge/SPM-compatible-blue)\n\n## What\n\nThis is a small library to download data from Wealthsimple. It does not support Wealthsimple Trade and currently only supports downloading accounts, positions and transactions. The documentation of the Wealthsimple API I am using can be found at https://developers.wealthsimple.com/. To authenticate I am using the same client id as their web site, which uses the same API as backend.\n\n## How\n\n1) Implement a `CredentialStore` \n\u003cdetails\u003e\n  \u003csummary\u003eExample using the KeychainAccess library\u003c/summary\u003e\n  \n  ```swift\nimport KeychainAccess\n    \nclass KeyChainCredentialStorage: CredentialStorage {\n\n    let keychain = Keychain(service: \"XYZ\")\n\n    func save(_ value: String, for key: String) {\n        keychain[key] = value\n    }\n\n    func read(_ key: String) -\u003e String? {\n        keychain[key]\n    }\n\n}\n  ```\n\u003c/details\u003e\n\n2) Implement an `AuthenticationCallback` which will ask the user for their username, password and one time password.\n3) Initialize `WealthsimpleDownloader` with your two implementations: `let wealthsimpleDownloader = WealthsimpleDownloader(authenticationCallback: myAuthenticationCallback, credentialStorage: myCredentialStorage)`\n4) Call `wealthsimpleDownloader.authenticate() { }` and wait for the callback\n5) Now you can start retreiving data with the other methods provided on `WealthsimpleDownloader` like `getAccounts` or `getPositions`\n\nPlease check out the complete documentation [here](https://nef10.github.io/WealthsimpleDownloader/). You can also have a look at the [SwiftBeanCountImporterApp](https://github.com/Nef10/SwiftBeanCountImporterApp) which uses this library. If you want to convert the downloaded data into Beancount format, also check out [SwiftBeanCountWealthsimpleMapper](https://github.com/Nef10/SwiftBeanCountWealthsimpleMapper)\n\n## Usage\n\nThe library supports the Swift Package Manger, so simply add a dependency in your `Package.swift`:\n\n```\n.package(url: \"https://github.com/Nef10/WealthsimpleDownloader.git\", .upToNextMajor(from: \"X.Y.Z\")),\n```\n\n## Limitations\n\nPlease note that I developed this library for my own needs and there may be bugs. It currently only accesses a very limited scope of the API. Even for the endpoints it implements, there are further limitations:\n\n* Paging is not supported \n* Only works on Accounts with 2FA enabled\n\nPull requests to extend the scope or remove limitations are very welcome.\n\n## Copyright\n\nWhile my code is licensed under the [MIT License](https://github.com/Nef10/WealthsimpleDownloader/blob/main/LICENSE), the source repository may include names or other trademarks of Wealthsimple or other entities; potential usage restrictions for these elements still apply and are not touched by the software license. Same applies for the API design. I am in no way affilliated with Wealthsimple other than beeing customer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnef10%2Fwealthsimpledownloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnef10%2Fwealthsimpledownloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnef10%2Fwealthsimpledownloader/lists"}