softandiron / tinkproject

The programm for collecting data from Tinkoff API and building Excel table.
GNU General Public License v3.0
218 stars 47 forks source link

Ошибка в Версии APIv2 по фьючерсам. #67

Open IntelOut opened 2 years ago

IntelOut commented 2 years ago

Начал баловаться фьючерсами. После этого при запуске получаю ошибку.

04:15:00 [ERROR] tgrpc: Got error in get_future_margin 04:15:00 [ERROR] tgrpc: conversion from Quotation to Decimal is not supported 04:15:00 [ERROR] Parser: Get current market price error. 04:15:00 [ERROR] Parser: 'NoneType' object has no attribute 'min_price_increment' 04:15:00 [ERROR] tgrpc: Got error in get_future_margin 04:15:00 [ERROR] tgrpc: conversion from Quotation to Decimal is not supported Traceback (most recent call last): File "/app/./main.py", line 479, in <module> my_positions = creating_positions_objects() File "/app/./main.py", line 128, in creating_positions_objects average_position_price = data_parser.tinkoff_access.futures_price_calculation( File "/app/tgrpc/__init__.py", line 75, in wrapper return_val = func(self, *args, **kwargs) File "/app/tgrpc/__init__.py", line 421, in futures_price_calculation min_price_increment = margin.min_price_increment AttributeError: 'NoneType' object has no attribute 'min_price_increment'