Works with Tinkoff Invest OpenAPI. Returns portfolio and currencies to STDOUT in JSON format.
-
Obtain Tinkoff Invest token from https://www.tinkoff.ru/invest/settings/
-
Download the latest release
cd $HOME wget https://github.com/a0s/tinkoff-invest-status/releases/latest/download/tinkoff-invest-status chmod +x tinkoff-invest-status
-
Run it and get full portfolio
./tinkoff-invest-status --token=%YOUR_TOKEN% # Select summary by USD with jq ./tinkoff-invest-status --token=%YOUR_TOKEN% | jq '.[].Summary.USD'
Using with MTMR
Add this into MTMR config
{
"type": "shellScriptTitledButton",
"width": 150,
"refreshInterval": 15,
"source": {
"inline": "echo \"USD $($HOME/tinkoff-invest-status --token=%YOUR_TOKEN% | /usr/local/bin/jq '.[].Summary.USD')\""
},
"actions": [],
"align": "right",
"bordered": false
}
- Tinkoff Invest API has some limits on request frequency. In some cases, you need to increase
refreshInterval
up to 30s.