GitXplorerGitXplorer
a

tinkoff-invest-status

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
2ee1b47e681ab27db32ebd32fc608480ec42f6cc

Update README.md

aa0s committed 4 years ago
Verified
0eb6ac901d02083c63423a9f7b848f987368c6b5

Update README.md

aa0s committed 4 years ago
Unverified
48fce5ff2cfbcf894076d1d2e7a62a0469b640ba

add README.md

aa0s committed 4 years ago
Unverified
70c0532e253da723a49d73dd772b61ddc6f7553b

add --version flag

aa0s committed 4 years ago
Unverified
fe92e9ecb0d0acbb3d731212ab749d48cc97a478

initial

aa0s committed 4 years ago

README

The README file for this repository.

tinkoff-invest-status

Works with Tinkoff Invest OpenAPI. Returns portfolio and currencies to STDOUT in JSON format.

How to use

  1. Obtain Tinkoff Invest token from https://www.tinkoff.ru/invest/settings/

  2. 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
  3. 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
}

Known problems

  • Tinkoff Invest API has some limits on request frequency. In some cases, you need to increase refreshInterval up to 30s.