{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://github.com/Enfernuz/quik-lua-rpc/json/schema/getBuySellInfoEx.result.scheme.json",
    "title": "\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b getBuySellInfoEx",
    "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 getBuySellInfoEx",
    "type": "object",
    "properties": {
        "buy_sell_info_ex": {
            "description": "\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442",
            "type": "object",
            "properties": {
                "buy_sell_info": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 buy_sell_info",
                    "type": "object",
                    "properties": {
                        "is_margin_sec": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 is_margin_sec",
                            "type": "string"
                        },
                        "is_asset_sec": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 is_asset_sec",
                            "type": "string"
                        },
                        "balance": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 balance",
                            "type": "string"
                        },
                        "can_buy": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 can_buy",
                            "type": "string"
                        },
                        "can_sell": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 can_sell",
                            "type": "string"
                        },
                        "position_valuation": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 position_valuation",
                            "type": "string"
                        },
                        "value": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 value",
                            "type": "string"
                        },
                        "open_value": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 open_value",
                            "type": "string"
                        },
                        "lim_long": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 lim_long",
                            "type": "string"
                        },
                        "long_coef": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 long_coef",
                            "type": "string"
                        },
                        "lim_short": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 lim_short",
                            "type": "string"
                        },
                        "short_coef": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 short_coef",
                            "type": "string"
                        },
                        "value_coef": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 value_coef",
                            "type": "string"
                        },
                        "open_value_coef": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 open_value_coef",
                            "type": "string"
                        },
                        "share": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 share",
                            "type": "string"
                        },
                        "short_wa_price": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 short_wa_price",
                            "type": "string"
                        },
                        "long_wa_price": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 long_wa_price",
                            "type": "string"
                        },
                        "profit_loss": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 profit_loss",
                            "type": "string"
                        },
                        "spread_hc": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 spread_hc",
                            "type": "string"
                        },
                        "can_buy_own": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 can_buy_own",
                            "type": "string"
                        },
                        "can_sell_own": {
                            "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 can_sell_own",
                            "type": "string"
                        }
                    }
                },
                "limit_kind": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 limit_kind",
                    "type": "string"
                },
                "d_long": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 d_long",
                    "type": "string"
                },
                "d_min_long": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 d_min_long",
                    "type": "string"
                },
                "d_short": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 d_short",
                    "type": "string"
                },
                "d_min_short": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 d_min_short",
                    "type": "string"
                },
                "client_type": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 client_type",
                    "type": "string"
                },
                "is_long_allowed": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 is_long_allowed",
                    "type": "string"
                },
                "is_short_allowed": {
                    "description": "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 is_short_allowed",
                    "type": "string"
                }
            },
            "additionalProperties": false,
            "required": [
                "buy_sell_info"
            ]
        }
    },
    "additionalProperties": false,
    "required": [
        "buy_sell_info_ex"
    ]
}