{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://github.com/Enfernuz/quik-lua-rpc/json/schema/getPortfolioInfo.result.scheme.json",
    "title": "\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b getPortfolioInfo",
    "description": "\u0421\u0445\u0435\u043c\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b getPortfolioInfo",
    "type": "object",
    "definitions": {
        "PortfolioInfo": {
            "description": "\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u043f\u043e\u0440\u0442\u0444\u0435\u043b\u044c",
            "type": "object",
            "properties": {
                "is_leverage": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 is_leverage",
                    "type": "string"
                },
                "in_assets": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 in_assets",
                    "type": "string"
                },
                "leverage": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 leverage",
                    "type": "string"
                },
                "open_limit": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 open_limit",
                    "type": "string"
                },
                "val_short": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 val_short",
                    "type": "string"
                },
                "val_long": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 val_long",
                    "type": "string"
                },
                "val_long_margin": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 val_long_margin",
                    "type": "string"
                },
                "val_long_asset": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 val_long_asset",
                    "type": "string"
                },
                "assets": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 assets",
                    "type": "string"
                },
                "cur_leverage": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 cur_leverage",
                    "type": "string"
                },
                "margin": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 margin",
                    "type": "string"
                },
                "lim_all": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 lim_all",
                    "type": "string"
                },
                "av_lim_all": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 av_lim_all",
                    "type": "string"
                },
                "locked_buy": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 locked_buy",
                    "type": "string"
                },
                "locked_buy_margin": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 locked_buy_margin",
                    "type": "string"
                },
                "locked_buy_asset": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 locked_buy_asset",
                    "type": "string"
                },
                "locked_sell": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 locked_sell",
                    "type": "string"
                },
                "locked_value_coef": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 locked_value_coef",
                    "type": "string"
                },
                "in_all_assets": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 in_all_assets",
                    "type": "string"
                },
                "all_assets": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 all_assets",
                    "type": "string"
                },
                "profit_loss": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 profit_loss",
                    "type": "string"
                },
                "rate_change": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 rate_change",
                    "type": "string"
                },
                "lim_buy": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 lim_buy",
                    "type": "string"
                },
                "lim_sell": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 lim_sell",
                    "type": "string"
                },
                "lim_non_margin": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 lim_non_margin",
                    "type": "string"
                },
                "lim_buy_asset": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 lim_buy_asset",
                    "type": "string"
                },
                "val_short_net": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 val_short_net",
                    "type": "string"
                },
                "val_long_net": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 val_long_net",
                    "type": "string"
                },
                "total_money_bal ": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 total_money_bal ",
                    "type": "string"
                },
                "total_locked_money": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 total_locked_money",
                    "type": "string"
                },
                "haircuts": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 haircuts",
                    "type": "string"
                },
                "assets_without_hc": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 assets_without_hc",
                    "type": "string"
                },
                "status_coef": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 status_coef",
                    "type": "string"
                },
                "varmargin": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 varmargin",
                    "type": "string"
                },
                "go_for_positions": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 go_for_positions",
                    "type": "string"
                },
                "go_for_orders": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 go_for_orders",
                    "type": "string"
                },
                "rate_futures": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 rate_futures",
                    "type": "string"
                },
                "is_qual_client": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 is_qual_client",
                    "type": "string"
                },
                "is_futures": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 is_futures",
                    "type": "string"
                },
                "curr_tag": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 curr_tag",
                    "type": "string"
                }
            }
        }
    },
    "properties": {
        "portfolio_info": {
            "$ref": "#/definitions/PortfolioInfo"
        }
    },
    "additionalProperties": false,
    "required": [
        "portfolio_info"
    ]
}