← Atrás

Exception при обращении к Security.BestPair

приветствую!

В коде робота есть такая строчка:

extInfo.Add("placement.quote", sc.BestPair);

После обновления на версию 4.1.6 на этой строчке вылетает исключение:

Оффер может быть только на продажу. at StockSharp.BusinessEntities.MarketDepthPair..ctor(Security security, Quote bid, Quote ask) at StockSharp.BusinessEntities.Security.get_BestPair()

в чем может быть причина?

¿Le resultó útil este tema?

Compartir tema

Comentarios (2)

Iniciar sesión o Crear cuenta, Inicie sesión o regístrese para dejar un comentario

l-way
l-way Autor

l-way: приветствую!

В коде робота есть такая строчка:

extInfo.Add("placement.quote", sc.BestPair);

После обновления на версию 4.1.6 на этой строчке вылетает исключение:

Оффер может быть только на продажу. at StockSharp.BusinessEntities.MarketDepthPair..ctor(Security security, Quote bid, Quote ask) at StockSharp.BusinessEntities.Security.get_BestPair()

в чем может быть причина?

подключаюсь к quik, версия 6.3.2.2

Alexander
Alexander

На 4.1.7 воспроизводится? Ошибка говорит о том, что у вас почему-то Ask.OrderDirection - Buy, а не Sell. Что, естественно, невозможно.

Если воспроизводится - покажите как получаете стакан.