Tim55667757 / TKSBrokerAPI

TKSBrokerAPI is the trading platform for automation and simplifying the implementation of trading scenarios, as well as working with Tinkoff Invest API server via the REST protocol. The TKSBrokerAPI platform may be used in two ways: from the console, it has a rich keys and commands, or you can use it as Python module.
https://tim55667757.github.io/TKSBrokerAPI/
Apache License 2.0
26 stars 9 forks source link

Do not show empty table if no limits to withdraw #75

Closed Tim55667757 closed 1 year ago

Tim55667757 commented 2 years ago
$ tksbrokerapi --limits --account-id **********
TKSBrokerAPI.py     L:3642 INFO    [2022-11-07 02:53:15,556] # Withdrawal limits

* **Actual date:** [2022-11-06 23:53:15 UTC]
* **Account ID:** [**********]

| Currencies | Total         | Available for withdrawal | Blocked for trade | Futures guarantee |
|------------|---------------|--------------------------|-------------------|-------------------|
Tim55667757 commented 1 year ago

Implemented in v1.5.*

$ tksbrokerapi --account-id ********** --limits
TKSBrokerAPI.py     L:3673 INFO    [2022-11-12 00:55:07,612] # Withdrawal limits

* **Actual date:** [2022-11-11 21:55:07 UTC]
* **Account ID:** [**********]

No withdrawal limits

TKSBrokerAPI.py     L:3679 INFO    [2022-11-12 00:55:07,614] Client's withdrawal limits was saved to file: [limits.md]