06.05.2021: IMPORTANT: MKM/MCM shut down their API for private users until further notice after their recent outages. Once MKM/MCM releases their new APIv3 I will publish an update to get mkm_inventory_tool running again.
I created this tool for myself to keep track of sealed mtg products i bought. It queues the MKM V2 API to fetch current prices for a given inventory file (and configured countries). The formatted output is printed as Pretty Table (ASCII) to stdout.
This is a sample output showing prices for three regions (Austria, Germany, International):
- requests_oauthlib
- PTable
- json
- ruamel.yaml
- colorama
pip install -r requirements.txt
- Add your MKM access secrets and tokens to config.yaml (You can find them when logged into your cardmarket account: Accountname -> Account -> API Settings)
- Configure the desired countries to fetch the prices from in config.yaml
- Remove sample stock and add your stock to inventory.yaml
- You'll need to enter the MKM product id for every product you want to track. An easy way to locate the product id is to look at the product picture at the MKM Website. The filename represents the product id.
python3 mkm_inventory_tool.py
or run mkm_inventory_tool.exe
This is a very basic tool that has been created in a few hours of my spare time to get some work done. No polishing or optimizing has been done yet, so use at your own risk.