Перейти к содержанию

tinvest

Usage:

$ tinvest [OPTIONS] COMMAND [ARGS]...

Options:

  • --version: Application version
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • openapi: CLI for invest-openapi

tinvest openapi

CLI for invest-openapi

Usage:

$ tinvest openapi [OPTIONS] COMMAND [ARGS]...

Options:

  • --token TEXT: [env var: TINVEST_TOKEN; default: ]
  • --sandbox-token TEXT: [env var: TINVEST_SANDBOX_TOKEN; default: ]
  • -s, --use-sandbox: [default: False]
  • --help: Show this message and exit.

Commands:

  • accounts
  • market-bonds
  • market-candles
  • market-currencies
  • market-etfs
  • market-orderbook
  • market-search-by-figi
  • market-search-by-ticker
  • market-stocks
  • operations
  • orders
  • orders-cancel
  • orders-limit-order
  • orders-market-order
  • portfolio
  • portfolio-currencies
  • sandbox-clear
  • sandbox-currencies-balance
  • sandbox-positions-balance
  • sandbox-register
  • sandbox-remove

tinvest openapi accounts

Usage:

$ tinvest openapi accounts [OPTIONS]

Options:

  • --help: Show this message and exit.

tinvest openapi market-bonds

Usage:

$ tinvest openapi market-bonds [OPTIONS]

Options:

  • --help: Show this message and exit.

tinvest openapi market-candles

Usage:

$ tinvest openapi market-candles [OPTIONS] FIGI INTERVAL:[1min|2min|3min|5min|10min|15min|30min|hour|day|week|month] FROM [TO]

Arguments:

  • FIGI: [required]
  • INTERVAL:[1min|2min|3min|5min|10min|15min|30min|hour|day|week|month]: [required]
  • FROM: Use one of [now, day, week, month, 6month, year] or any date-time format [required]
  • [TO]: Use one of [now, day, week, month, 6month, year] or any date-time format [default: now]

Options:

  • --help: Show this message and exit.

tinvest openapi market-currencies

Usage:

$ tinvest openapi market-currencies [OPTIONS]

Options:

  • --help: Show this message and exit.

tinvest openapi market-etfs

Usage:

$ tinvest openapi market-etfs [OPTIONS]

Options:

  • --help: Show this message and exit.

tinvest openapi market-orderbook

Usage:

$ tinvest openapi market-orderbook [OPTIONS] FIGI DEPTH

Arguments:

  • FIGI: [required]
  • DEPTH: [required]

Options:

  • --help: Show this message and exit.

tinvest openapi market-search-by-figi

Usage:

$ tinvest openapi market-search-by-figi [OPTIONS] FIGI

Arguments:

  • FIGI: [required]

Options:

  • --help: Show this message and exit.

tinvest openapi market-search-by-ticker

Usage:

$ tinvest openapi market-search-by-ticker [OPTIONS] TICKER

Arguments:

  • TICKER: [required]

Options:

  • --help: Show this message and exit.

tinvest openapi market-stocks

Usage:

$ tinvest openapi market-stocks [OPTIONS]

Options:

  • --help: Show this message and exit.

tinvest openapi operations

Usage:

$ tinvest openapi operations [OPTIONS] FROM [TO]

Arguments:

  • FROM: Use one of [now, day, week, month, 6month, year] or any date-time format [required]
  • [TO]: Use one of [now, day, week, month, 6month, year] or any date-time format [default: now]

Options:

  • --figi TEXT
  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi orders

Usage:

$ tinvest openapi orders [OPTIONS]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi orders-cancel

Usage:

$ tinvest openapi orders-cancel [OPTIONS] ORDER_ID

Arguments:

  • ORDER_ID: [required]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi orders-limit-order

Usage:

$ tinvest openapi orders-limit-order [OPTIONS] FIGI OPERATION:[Buy|Sell] LOTS PRICE

Arguments:

  • FIGI: [required]
  • OPERATION:[Buy|Sell]: [required]
  • LOTS: [required]
  • PRICE: [required]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi orders-market-order

Usage:

$ tinvest openapi orders-market-order [OPTIONS] FIGI OPERATION:[Buy|Sell] LOTS

Arguments:

  • FIGI: [required]
  • OPERATION:[Buy|Sell]: [required]
  • LOTS: [required]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi portfolio

Usage:

$ tinvest openapi portfolio [OPTIONS]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi portfolio-currencies

Usage:

$ tinvest openapi portfolio-currencies [OPTIONS]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi sandbox-clear

Usage:

$ tinvest openapi sandbox-clear [OPTIONS]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi sandbox-currencies-balance

Usage:

$ tinvest openapi sandbox-currencies-balance [OPTIONS] BALANCE CURRENCY:[RUB|USD|EUR|GBP|HKD|CHF|JPY|CNY|TRY]

Arguments:

  • BALANCE: [required]
  • CURRENCY:[RUB|USD|EUR|GBP|HKD|CHF|JPY|CNY|TRY]: [required]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi sandbox-positions-balance

Usage:

$ tinvest openapi sandbox-positions-balance [OPTIONS] BALANCE

Arguments:

  • BALANCE: [required]

Options:

  • --figi TEXT
  • --broker-account-id TEXT
  • --help: Show this message and exit.

tinvest openapi sandbox-register

Usage:

$ tinvest openapi sandbox-register [OPTIONS] BROKER_ACCOUNT_TYPE:[Tinkoff|TinkoffIis]

Arguments:

  • BROKER_ACCOUNT_TYPE:[Tinkoff|TinkoffIis]: [required]

Options:

  • --help: Show this message and exit.

tinvest openapi sandbox-remove

Usage:

$ tinvest openapi sandbox-remove [OPTIONS]

Options:

  • --broker-account-id TEXT
  • --help: Show this message and exit.