You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"}
Подскажите может есть другое решение как узнать текущий баланс и его изменение за день?
The text was updated successfully, but these errors were encountered:
У меня все выводится корректно.
Проверял в Демо-приложении. Для лучшей наглядности немного доработал функцию вывода клиентского портфеля.
Обратите внимание на то, что написано в справке Квика по QLua на счет параметров клиентского портфеля, отмеченных звездочкой.
Запрашиваю данные:
В ответе почти все нули, кроме 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"}
Подскажите может есть другое решение как узнать текущий баланс и его изменение за день?
The text was updated successfully, but these errors were encountered: