This project provides an unofficial Python client for interacting with the Asia Commercial Joint Stock Bank (ACB) API. It allows you to authenticate, fetch account balances, and retrieve transaction history. Ideal for shops or personal use to integrate ACB transaction notification features into your applications.
The client uses the requests library to make HTTP requests to ACB's endpoints. It handles authentication, session management, and data retrieval. The api_key, client_id, and x-converstation-id were derived from the ACB repo.
- Authenticate with ACB using your username and password
- Fetch balances for all payment accounts
- Retrieve transaction history for a specific account
- Python 3.7+
requestslibrarypython-dotenvlibrary
-
Clone the repository.
-
Install dependencies:
pip install -r requirements.txt
-
Change
.env.exampleto.envand fill in your ACB credentials to make sure you won't reveal your credentials:ACB_USERNAME=your_username ACB_PASSWORD=your_password
Run the main script to fetch your account balances and recent transactions:
python main.pyBy default, the script will print your account balances and the last 5 transactions for your first account.
ACB_USERNAME: Your ACB account usernameACB_PASSWORD: Your ACB account password
Feel free to submit pull requests for improvements or bug fixes.
- Turn this into a package maybe?
- Make a Discord/Telegram bot to notify about transactions.
- Add more features as needed.
- Write tests.
- Based on anhnmt/ACB (many thanks!)
- Another trivial repos that I can't remember..
This is an unofficial client and is not affiliated with ACB. Use at your own risk. I won't be responsible for any issues arising from its use.