Skip to content

A simple tool to keep track of your mtg products and prices on mkm using the mkm api

Notifications You must be signed in to change notification settings

CountablyInfinite/mkm_inventory_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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.


MKM Inventory Tool

Overview

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):

Sample Outpu

Requirements

  • requests_oauthlib
  • PTable
  • json
  • ruamel.yaml
  • colorama

pip install -r requirements.txt

Prerequisite

  • 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.

Usage

python3 mkm_inventory_tool.py

or run mkm_inventory_tool.exe

Disclaimer

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.

About

A simple tool to keep track of your mtg products and prices on mkm using the mkm api

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages