From 99ba952312bee029b098106c3fb5970b089c376d Mon Sep 17 00:00:00 2001 From: Github Workflow Date: Wed, 24 Jul 2024 07:51:51 +0000 Subject: [PATCH] JSON Schema Update --- config/v3/proposal/receive.json | 68 +++++++++++++++++++ config/v3/proposal_open_contract/receive.json | 68 +++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/config/v3/proposal/receive.json b/config/v3/proposal/receive.json index 58feef57..aa6d17ec 100644 --- a/config/v3/proposal/receive.json +++ b/config/v3/proposal/receive.json @@ -308,6 +308,74 @@ "examples": [ 1439999052 ] + }, + "validation_params": { + "description": "Contains contract validation information.", + "type": "object", + "additionalProperties": false, + "properties": { + "max_payout": { + "description": "[Only for Accumulators] Maximum payout for the contract.", + "type": "string", + "examples": "4000.00" + }, + "max_ticks": { + "description": "[Only for Accumulators] Maximum ticks for the contract.", + "type": "integer", + "examples": 75 + }, + "stake": { + "description": "Contains information for minimum and maximum stake amount for the contract.", + "type": "object", + "additionalProperties": false, + "properties": { + "max": { + "description": "Maximum stake allowed", + "type": "string", + "examples": "1000.00" + }, + "min": { + "description": "Minimum stake allowed", + "type": "string", + "examples": "0.01" + } + } + }, + "stop_loss": { + "description": "[Only for Multipliers] Contains information for minimum and maximum stop loss amount for the contract.", + "type": "object", + "additionalProperties": false, + "properties": { + "max": { + "description": "Maximum stop loss amount", + "type": "string", + "examples": "1000.00" + }, + "min": { + "description": "Minimum stop loss amount", + "type": "string", + "examples": "0.51" + } + } + }, + "take_profit": { + "description": "Contains information for minimum and maximum take profit amount for the contract.", + "type": "object", + "additionalProperties": false, + "properties": { + "max": { + "description": "Maximum take profit amount", + "type": "string", + "examples": "1000.00" + }, + "min": { + "description": "Minimum take profit amount", + "type": "string", + "examples": "0.10" + } + } + } + } } } }, diff --git a/config/v3/proposal_open_contract/receive.json b/config/v3/proposal_open_contract/receive.json index 4fbadd6c..37f0a0a1 100644 --- a/config/v3/proposal_open_contract/receive.json +++ b/config/v3/proposal_open_contract/receive.json @@ -777,6 +777,74 @@ "validation_error_code": { "description": "Error code if validation fails", "type": "string" + }, + "validation_params": { + "description": "Contains contract validation information.", + "type": "object", + "additionalProperties": false, + "properties": { + "max_payout": { + "description": "[Only for Accumulators] Maximum payout for the contract.", + "type": "string", + "examples": "4000.00" + }, + "max_ticks": { + "description": "[Only for Accumulators] Maximum ticks for the contract.", + "type": "integer", + "examples": 75 + }, + "stake": { + "description": "Contains information for minimum and maximum stake amount for the contract.", + "type": "object", + "additionalProperties": false, + "properties": { + "max": { + "description": "Maximum stakes allowed", + "type": "string", + "examples": "1000.00" + }, + "min": { + "description": "Minimum stakes allowed", + "type": "string", + "examples": "0.01" + } + } + }, + "stop_loss": { + "description": "[Only for Multipliers] Contains information for minimum and maximum stop loss amount for the contract.", + "type": "object", + "additionalProperties": false, + "properties": { + "max": { + "description": "Maximum stop loss amount", + "type": "string", + "examples": "1000.00" + }, + "min": { + "description": "Minimum stop loss amount", + "type": "string", + "examples": "0.51" + } + } + }, + "take_profit": { + "description": "Contains information for minimum and maximum take profit amount for the contract.", + "type": "object", + "additionalProperties": false, + "properties": { + "max": { + "description": "Maximum take profit amount", + "type": "string", + "examples": "1000.00" + }, + "min": { + "description": "Minimum take profit amount", + "type": "string", + "examples": "0.10" + } + } + } + } } } },