From 3265d6ae4f4da76a7a475efc2c1d40fe87ec0bf3 Mon Sep 17 00:00:00 2001 From: Github Workflow Date: Fri, 19 Jul 2024 04:08:22 +0000 Subject: [PATCH] JSON Schema Update --- config/v3/proposal_open_contract/receive.json | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/config/v3/proposal_open_contract/receive.json b/config/v3/proposal_open_contract/receive.json index 191966c3..4fbadd6c 100644 --- a/config/v3/proposal_open_contract/receive.json +++ b/config/v3/proposal_open_contract/receive.json @@ -456,6 +456,49 @@ 1 ] }, + "is_valid_to_update": { + "description": "[Optional] Indicator whether take profit, stop loss, and/or stop out is allowed to be updated.", + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "stop_loss": { + "description": "[Optional] 1 if stop loss is allowed to be updated and 0 if otherwise. This field is undefined if stop loss functionality is not supported by the contract.", + "type": [ + "integer", + "null" + ], + "enum": [ + 0, + 1 + ] + }, + "stop_out": { + "description": "[Optional] 1 if stop out is allowed to be updated and 0 if otherwise. This field is undefined if stop out functionality is not supported by the contract.", + "type": [ + "integer", + "null" + ], + "enum": [ + 0, + 1 + ] + }, + "take_profit": { + "description": "[Optional] 1 if take profit is allowed to be updated and 0 if otherwise. This field is undefined if take profit functionality is not supported by the contract.", + "type": [ + "integer", + "null" + ], + "enum": [ + 0, + 1 + ] + } + } + }, "limit_order": { "description": "Orders are applicable to `MULTUP` and `MULTDOWN` contracts only.", "type": "object",