We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a4624 commit 1852d30Copy full SHA for 1852d30
trademan/base/management/commands/update.py
@@ -9,6 +9,12 @@
9
from tinkoff.invest.retrying.settings import RetryClientSettings
10
from tinkoff.invest.retrying.sync.client import RetryingClient
11
from tinkoff.invest.schemas import Future, RealExchange, Share
12
+
13
+# Support newer enum values when running with an older Tinkoff SDK
14
+try: # pragma: no cover - defensive patch
15
+ RealExchange(4)
16
+except ValueError:
17
+ RealExchange._value2member_map_[4] = RealExchange(0)
18
from tinkoff.invest.utils import quotation_to_decimal
19
20
0 commit comments