Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qpProvider.GetFuturesHoldings() error #11

Closed
Rilin opened this issue Jan 3, 2023 · 1 comment
Closed

qpProvider.GetFuturesHoldings() error #11

Rilin opened this issue Jan 3, 2023 · 1 comment

Comments

@Rilin
Copy link

Rilin commented Jan 3, 2023

Добрый вечер!

в "02 - Accounts.py" [Examples]
функция qpProvider.GetFuturesHoldings() выдает ошибку:

{'lua_error': "Lua error: D:\QUIK\SBERBANK\lua\qsfunctions.lua:642: attempt to perform arithmetic on a nil value (local 'posType')", 'data': '', 'id': 0, 'cmd': 'lua_error', 't': ''}

Подскажите пожалуйста, где можно посмотреть. В Quik:
image

OnFuturesClientHolding() отрабатывает нормально, все показывает

P.S.
image

в Исходнике подчеркнутое исправил на "getFuturesClientHoldings" - заработало. Ошибка ?

@cia76
Copy link
Owner

cia76 commented Feb 25, 2023

Да, опечатка вышла. Исправил в коде. Благодарю!

@cia76 cia76 closed this as completed Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants