comdirect-rest-api
[!WARNING] This project is in its early stages of development. Currently, it only supports listing depots and uses Push-TAN for authentication.
A Rust library for interacting with the Comdirect REST API. This crate handles the complex OAuth2 handshake, session management, and Push-TAN validation required by Comdirect.
While currently focused on a subset of functionality, the architecture is designed to be easily extensible. I plan to add support for more API endpoints (orders, account balances, etc.) and potentially additional TAN methods in the future.
Features
- OAuth2 Session Management: Automatic token refresh in the background.
- Push-TAN Support: Built-in flow for handling Comdirect's 2FA.
- Async First: Built on top of
tokioandreqwest. - Easy Extension: Modular API structure that makes adding new endpoints straightforward.
Getting Started
Installation
Add this to your Cargo.toml:
[]
= { = "https://codeberg.org/flower1024/comdirect-rest-api.git" }
Usage Example
use ;
use depots;
use Arc;
async
Contributing
Contributions are welcome! If you'd like to help expand the API coverage or improve the documentation, feel free to open a PR.
License
This project is licensed under the MIT License.