Skip to content

Commit

Permalink
JSON Schema Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Workflow committed Jul 24, 2024
1 parent 84f7460 commit 99ba952
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 0 deletions.
68 changes: 68 additions & 0 deletions config/v3/proposal/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
}
},
Expand Down
68 changes: 68 additions & 0 deletions config/v3/proposal_open_contract/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
}
},
Expand Down

0 comments on commit 99ba952

Please sign in to comment.