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 Jun 6, 2024
1 parent aa0c2a6 commit cb13f2e
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _data/v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ groups:
title: 'Trading Platform: Investor Password Reset'
- name: trading_platform_password_reset
title: 'Trading Platform: Password Reset'
- name: trading_platform_status
title: Trading Platform Status
- name: trading_servers
title: Server list
- name: trading_times
Expand Down
3 changes: 3 additions & 0 deletions config/v3/trading_platform_status/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trading_platform_status": 1
}
51 changes: 51 additions & 0 deletions config/v3/trading_platform_status/receive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Trading Platform Status (response)",
"description": "Provides current suspension status of trading platforms",
"type": "object",
"additionalProperties": false,
"required": [
"trading_platform_status",
"echo_req",
"msg_type"
],
"properties": {
"trading_platform_status": {
"title": "trading_platform_status",
"description": "Availability status of the trading platforms",
"type": "array",
"additionalProperties": false,
"patternProperties": {
".*": {
"description": "Name of the trading platform",
"type": "string",
"additionalProperties": false
}
},
"status": {
"description": "Status of the trading platform",
"type": "string",
"enum": [
"active",
"maintenance"
],
"additionalProperties": false
}
},
"echo_req": {
"description": "Echo of the request made.",
"type": "object"
},
"msg_type": {
"description": "Action name of the request made.",
"type": "string",
"enum": [
"trading_platform_status"
]
},
"req_id": {
"description": "Optional field sent in request to map to response, present only when request contains `req_id`.",
"type": "integer"
}
}
}
28 changes: 28 additions & 0 deletions config/v3/trading_platform_status/send.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Trading Platform Status (request)",
"description": "Request trading platform status",
"type": "object",
"auth_required": 0,
"additionalProperties": false,
"required": [
"trading_platform_status"
],
"properties": {
"trading_platform_status": {
"description": "Must be `1`",
"type": "integer",
"enum": [
1
]
},
"passthrough": {
"description": "[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.",
"type": "object"
},
"req_id": {
"description": "[Optional] Used to map request to response.",
"type": "integer"
}
}
}

0 comments on commit cb13f2e

Please sign in to comment.