diff --git a/config/v3/landing_company/receive.json b/config/v3/landing_company/receive.json index 55f8f6ce..23090582 100644 --- a/config/v3/landing_company/receive.json +++ b/config/v3/landing_company/receive.json @@ -970,12 +970,171 @@ "additionalProperties": false, "properties": { "swap_free": { - "$ref": "#/$defs/landingCompanyDetails", - "description": "Landing Company for MT5 combined all Synthetic and financial" - }, - "zero_spread": { - "$ref": "#/$defs/landingCompanyDetails", - "description": "Contain details for landing company for zero_spread sub account type." + "description": "Landing Company for MT5 combined all Synthetic and financial", + "type": [ + "null", + "object" + ], + "additionalProperties": false, + "properties": { + "address": { + "description": "Landing Company address", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "changeable_fields": { + "description": "Special conditions for changing sensitive fields", + "type": "object" + }, + "country": { + "description": "Landing Company country of incorporation", + "type": "string" + }, + "currency_config": { + "title": "Currency Config Structure", + "description": "The configuration of each currency.", + "type": "object" + }, + "has_reality_check": { + "description": "Flag to indicate whether reality check is applicable for this Landing Company. `1`: applicable, `0`: not applicable. The Reality Check is a feature that gives a summary of the client's trades and account balances on a regular basis throughout his session, and is a regulatory requirement for certain Landing Companies.", + "type": "integer", + "enum": [ + 0, + 1 + ] + }, + "legal_allowed_contract_categories": { + "description": "Allowed contract types", + "type": "array", + "items": { + "type": "string" + } + }, + "legal_allowed_currencies": { + "description": "Allowable currencies", + "type": "array", + "items": { + "type": "string" + } + }, + "legal_allowed_markets": { + "description": "Allowable markets", + "type": "array", + "items": { + "type": "string" + } + }, + "legal_default_currency": { + "description": "Default account currency", + "type": "string" + }, + "name": { + "description": "Landing Company legal name", + "type": "string" + }, + "requirements": { + "description": "Legal requirements for the Landing Company", + "type": "object", + "additionalProperties": false, + "properties": { + "after_first_deposit": { + "description": "After first deposit requirements", + "type": "object", + "additionalProperties": false, + "properties": { + "financial_assessment": { + "description": "Financial assessment requirements", + "type": "array", + "items": { + "type": "string", + "examples": [ + "financial_information", + "trading_experience" + ] + } + } + } + }, + "compliance": { + "description": "Compliance requirements", + "type": "object", + "additionalProperties": false, + "properties": { + "mt5": { + "description": "Compliance MT5 requirements", + "type": "array", + "items": { + "type": "string", + "examples": [ + "expiration_check", + "fully_authenticated" + ] + } + }, + "tax_information": { + "description": "Compliance tax information requirements", + "type": "array", + "items": { + "type": "string", + "examples": [ + "tax_identification_number", + "tax_residence" + ] + } + } + } + }, + "signup": { + "description": "Sign up requirements", + "type": "array", + "items": { + "type": "string", + "examples": [ + "first_name", + "residence", + "salutation" + ] + } + }, + "withdrawal": { + "description": "Withdrawal requirements", + "type": "array", + "items": { + "type": "string", + "examples": [ + "address_city", + "address_line_1" + ] + } + } + } + }, + "shortcode": { + "description": "Landing Company short code", + "type": "string" + }, + "support_professional_client": { + "description": "Flag that indicates whether the landing company supports professional accounts or not", + "type": "integer", + "enum": [ + 0, + 1 + ] + }, + "tin_not_mandatory": { + "description": "Flag that indicates whether tax identifier number is not mandatory for the current country and landing company.", + "type": "integer", + "enum": [ + 0, + 1 + ] + } + } } } }, @@ -1589,193 +1748,5 @@ "description": "Optional field sent in request to map to response, present only when request contains `req_id`.", "type": "integer" } - }, - "$defs": { - "afterFirstDepositRequirements": { - "description": "After first deposit requirements", - "type": "object", - "additionalProperties": false, - "properties": { - "financial_assessment": { - "description": "Financial assessment requirements", - "type": "array", - "items": { - "type": "string", - "examples": [ - "financial_information", - "trading_experience" - ] - } - } - } - }, - "complianceRequirements": { - "description": "Compliance requirements", - "type": "object", - "additionalProperties": false, - "properties": { - "mt5": { - "description": "Compliance MT5 requirements", - "type": "array", - "items": { - "type": "string", - "examples": [ - "expiration_check", - "fully_authenticated" - ] - } - }, - "tax_information": { - "description": "Compliance tax information requirements", - "type": "array", - "items": { - "type": "string", - "examples": [ - "tax_identification_number", - "tax_residence" - ] - } - } - } - }, - "landingCompanyDetails": { - "type": [ - "null", - "object" - ], - "additionalProperties": false, - "properties": { - "address": { - "description": "Landing Company address", - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "changeable_fields": { - "description": "Special conditions for changing sensitive fields", - "type": "object" - }, - "country": { - "description": "Landing Company country of incorporation", - "type": "string" - }, - "currency_config": { - "title": "Currency Config Structure", - "description": "The configuration of each currency.", - "type": "object" - }, - "has_reality_check": { - "description": "Flag to indicate whether reality check is applicable for this Landing Company. `1`: applicable, `0`: not applicable. The Reality Check is a feature that gives a summary of the client's trades and account balances on a regular basis throughout his session, and is a regulatory requirement for certain Landing Companies.", - "type": "integer", - "enum": [ - 0, - 1 - ] - }, - "legal_allowed_contract_categories": { - "description": "Allowed contract types", - "type": "array", - "items": { - "type": "string" - } - }, - "legal_allowed_currencies": { - "description": "Allowable currencies", - "type": "array", - "items": { - "type": "string" - } - }, - "legal_allowed_markets": { - "description": "Allowable markets", - "type": "array", - "items": { - "type": "string" - } - }, - "legal_default_currency": { - "description": "Default account currency", - "type": "string" - }, - "name": { - "description": "Landing Company legal name", - "type": "string" - }, - "requirements": { - "$ref": "#/$defs/legalRequirements", - "description": "Legal requirements for the Landing Company" - }, - "shortcode": { - "description": "Landing Company short code", - "type": "string" - }, - "support_professional_client": { - "description": "Flag that indicates whether the landing company supports professional accounts or not", - "type": "integer", - "enum": [ - 0, - 1 - ] - }, - "tin_not_mandatory": { - "description": "Flag that indicates whether tax identifier number is not mandatory for the current country and landing company.", - "type": "integer", - "enum": [ - 0, - 1 - ] - } - } - }, - "legalRequirements": { - "description": "Legal requirements for the Landing Company", - "type": "object", - "additionalProperties": false, - "properties": { - "after_first_deposit": { - "$ref": "#/$defs/afterFirstDepositRequirements", - "description": "After first deposit requirements" - }, - "compliance": { - "$ref": "#/$defs/complianceRequirements", - "description": "Compliance requirements" - }, - "signup": { - "$ref": "#/$defs/signUpRequirements", - "description": "Sign up requirements" - }, - "withdrawal": { - "$ref": "#/$defs/withdrawalRequirements", - "description": "Withdrawal requirements" - } - } - }, - "signUpRequirements": { - "description": "Sign up requirements", - "type": "array", - "items": { - "type": "string", - "examples": [ - "first_name", - "residence", - "salutation" - ] - } - }, - "withdrawalRequirements": { - "description": "Withdrawal requirements", - "type": "array", - "items": { - "type": "string", - "examples": [ - "address_city", - "address_line_1" - ] - } - } } } diff --git a/config/v3/mt5_login_list/receive.json b/config/v3/mt5_login_list/receive.json index 11f59471..380d8a79 100644 --- a/config/v3/mt5_login_list/receive.json +++ b/config/v3/mt5_login_list/receive.json @@ -362,30 +362,25 @@ ] }, "sub_account_category": { - "description": "Sub account category refer to the additional risk management", + "description": "Sub account category", "type": "string", "enum": [ "", "swap_free", "swap_free_high_risk", - "lim", - "hr", - "ab", - "ba", - "stp" + "ibt", + "stp", + "lim" ] }, "sub_account_type": { - "description": "Sub account type refer to different offerings that we have for mt5", + "description": "Sub account type refer to classic MT5 account", "type": "string", "enum": [ "standard", "financial", "financial_stp", - "swap_free", - "ibt", - "stp", - "zero_spread" + "swap_free" ] }, "webtrader_url": { diff --git a/config/v3/mt5_new_account/receive.json b/config/v3/mt5_new_account/receive.json index 6a7c7d38..6900cdd9 100644 --- a/config/v3/mt5_new_account/receive.json +++ b/config/v3/mt5_new_account/receive.json @@ -77,17 +77,6 @@ "standard", "stp" ] - }, - "sub_account_type": { - "description": "Indicate the different offerings for mt5 account.", - "type": "string", - "enum": [ - "standard", - "stp", - "ibt", - "swap_free", - "zero_spread" - ] } } }, diff --git a/config/v3/mt5_new_account/send.json b/config/v3/mt5_new_account/send.json index f5243c32..1c28cd9e 100644 --- a/config/v3/mt5_new_account/send.json +++ b/config/v3/mt5_new_account/send.json @@ -164,26 +164,11 @@ "pattern": "^.{0,50}$" }, "sub_account_category": { - "description": "[Optional] Indicate the additional risk management for each account", + "description": "[Optional] Indicate the sub account category that we have in the cfd group naming convention.", "type": "string", "enum": [ - "", - "swap_free", - "ab", - "ba", - "lim", - "hr" - ] - }, - "sub_account_type": { - "description": "[Optional] Indicate the different offerings for mt5 account", - "type": "string", - "enum": [ - "standard", - "stp", - "ibt", "swap_free", - "zero_spread" + "swap_free_high_risk" ] }, "zipCode": { diff --git a/config/v3/transfer_between_accounts/receive.json b/config/v3/transfer_between_accounts/receive.json index 80f048d6..4398068d 100644 --- a/config/v3/transfer_between_accounts/receive.json +++ b/config/v3/transfer_between_accounts/receive.json @@ -133,8 +133,7 @@ "financial", "financial_stp", "standard", - "swap_free", - "zero_spread" + "swap_free" ] }, "transfers": {