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

Текущие активы из таблицы Клиентский портфель #300

Open
exvion opened this issue Jul 22, 2021 · 4 comments

Comments

@exvion
Copy link
Contributor

exvion commented Jul 22, 2021

Запрашиваю данные:

 var _portfolioInfo = QuikClient.Trading.GetPortfolioInfoEx(tool.FirmID, clientCode, 2).Result;
            Log(_portfolioInfo.ToJson());

В ответе почти все нули, кроме total_money_bal со значением 786229.389
{"is_leverage":"МД+","in_assets":"0.000000","leverage":"0.000000","open_limit":"0.000000","val_short":"0.000000","val_long":"0.000000","val_long_margin":"0.000000","val_long_asset":"0.000000","assets":"0.000000","cur_leverage":"0.000000","margin":"0.000000","lim_all":"0.000000","av_lim_all":"0.000000","locked_buy":"0.000000","locked_buy_margin":"0.000000","locked_buy_asset":"0.000000","locked_sell":"0.000000","locked_value_coef":"0.000000","in_all_assets":"0.000000","all_assets":"0.000000","profit_loss":"0.000000","rate_change":"0.000000","lim_buy":"0.000000","lim_sell":"0.000000","lim_non_margin":"0.000000","lim_buy_asset":"0.000000","val_short_net":"0.000000","total_money_bal":"786229.389000","total_locked_money":"0.000000","haircuts":"0.000000","assets_without_hc":"0.000000","status_coef":"0.000000","varmargin":"0.000000","go_for_positions":"0.000000","go_for_orders":"0.000000","rate_futures":"100.000000","is_qual_client":"","is_futures":"","curr_TAG":"SUR-EQTV","init_margin":"0.000000","min_margin":"0.000000","corrected_margin":"0.000000","client_type":"5","portfolio_value":"0.000000","start_limit_open_pos":"0.000000","total_limit_open_pos":"0.000000","limit_open_pos":"0.000000","used_lim_open_pos":"0.000000","acc_var_margin":"0.000000","cl_var_margin":"0.000000","opt_liquid_cost":"0.000000","fut_asset":"0.000000","fut_total_asset":"0.000000","fut_debt":"0.000000","fut_rate_asset":"0.000000","fut_rate_asset_open":"0.000000","fut_rate_go":"0.000000","planed_rate_go":"0.000000","cash_leverage":"0.000000","fut_position_type":"0","fut_accured_int":"0.000000"}

Подскажите может есть другое решение как узнать текущий баланс и его изменение за день?

@Pr0phet1c
Copy link
Collaborator

Давайте начнем со встречного вопроса:
А где в Квике Вы смотрите интересующие Вас параметры сейчас?

@exvion
Copy link
Contributor Author

exvion commented Jul 30, 2021

Создать окно - Все типы окон - Клиентский портфель

@Pr0phet1c
Copy link
Collaborator

У меня все выводится корректно.
Проверял в Демо-приложении. Для лучшей наглядности немного доработал функцию вывода клиентского портфеля.
Обратите внимание на то, что написано в справке Квика по QLua на счет параметров клиентского портфеля, отмеченных звездочкой.

@exvion
Copy link
Contributor Author

exvion commented Aug 9, 2021

Видимо это особенность счета с доступом к СПБ бирже в Открытии. На счете с доступом к Мосбирже порядок.

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