Skip to content

Commit

Permalink
JSON Schema Update
Browse files Browse the repository at this point in the history
  • Loading branch information
binarysysadmin committed May 15, 2019
1 parent 34bd6e8 commit 8afafca
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 21 deletions.
60 changes: 47 additions & 13 deletions config/v3/draft-03/mt5_login_list/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,53 @@
"required": "1"
},
"mt5_login_list": {
"type": ["array", "null"],
"items": {
"type": "object",
"title": "Application object",
"properties": {
"login": {
"type": "string",
"description": "Login of MT5 account"
},
"group": {
"type": "string",
"description": "Group type of the MT5 account, e.g. real, vanuatu, etc."
}
"description" : "Array containing MT5 account objects.",
"type": "array",
"items" : {
"type" : "object",
"title" : "Details of each MT5 loginid.",
"properties" : {
"login" : {
"description" : "Login of MT5 account.",
"type" : "integer"
},
"group" : {
"description" : "Group type of the MT5 account, e.g. real, vanuatu, etc.",
"type" : "string"
},
"balance": {
"description": "Balance of the MT5 account.",
"type": "number"
},
"country": {
"description": "Residence of the MT5 account.",
"type": "string"
},
"currency": {
"description": "Currency of the MT5 account.",
"type": "string"
},
"email": {
"description": "Email address of the MT5 account.",
"type": "string"
},
"leverage": {
"description": "Leverage of the MT5 account (1 to 1000).",
"type": "number"
},
"mamm_status": {
"description": "Status to depict whether the MT5 account is a MAMM or not.",
"pattern" : "^(1|0)$",
"type" : "integer"
},
"manager_id": {
"description": "ID of the MT5 account, if it is a MAMM.",
"type": "string"
},
"name": {
"description": "Name of the owner of the MT5 account.",
"type": "string"
}
}
}
},
Expand Down
47 changes: 39 additions & 8 deletions config/v3/mt5_login_list/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,56 @@
"msg_type",
"echo_req"
],
"description" : "Get list of MT5 accounts for client",
"description" : "Get list of MT5 accounts for client.",
"type" : "object",
"properties" : {
"mt5_login_list" : {
"type" : [
"array",
"null"
],
"description" : "Array containing MT5 account objects.",
"type" : "array",
"items" : {
"type" : "object",
"title" : "Application object",
"title" : "Details of each MT5 loginid.",
"properties" : {
"login" : {
"description" : "Login of MT5 account",
"type" : "string"
"description" : "Login of MT5 account.",
"type" : "integer"
},
"group" : {
"description" : "Group type of the MT5 account, e.g. real, vanuatu, etc.",
"type" : "string"
},
"balance": {
"description": "Balance of the MT5 account.",
"type": "number"
},
"country": {
"description": "Residence of the MT5 account.",
"type": "string"
},
"currency": {
"description": "Currency of the MT5 account.",
"type": "string"
},
"email": {
"description": "Email address of the MT5 account.",
"type": "string"
},
"leverage": {
"description": "Leverage of the MT5 account (1 to 1000).",
"type": "number"
},
"mamm_status": {
"description": "Status to depict whether the MT5 account is a MAMM or not.",
"pattern" : "^(1|0)$",
"type" : "integer"
},
"manager_id": {
"description": "ID of the MT5 account, if it is a MAMM.",
"type": "string"
},
"name": {
"description": "Name of the owner of the MT5 account.",
"type": "string"
}
}
}
Expand Down

0 comments on commit 8afafca

Please sign in to comment.