Stage 4: Account Management
Account management is the final stage of conformance testing, focusing on the core evaluation account lifecycle. This stage validates your integration’s ability to create, manage, and reset evaluation accounts.
Overview
The account management stage ensures your application can:
- Create evaluation accounts with proper configuration
- Manage trading permissions and risk settings
- Handle account resets and state management
- Implement proper risk category management
Required Tests
1. Account Creation & Trading Permission
Endpoint: POST /user/createevaluationaccounts
Purpose: Create evaluation accounts and assign trading permissions to users.
Test Steps:
- Create a single evaluation account
- Create multiple accounts in batch (up to 100)
- Assign trading permissions to users
- Configure risk parameters and limits
- Verify account creation and permission assignment
Account Creation:
Expected Response:
Error Responses:
Validation Criteria:
- ✅ Accounts are created successfully
- ✅ Trading permissions are assigned correctly
- ✅ Risk parameters are applied properly
- ✅ Batch creation works for multiple accounts
- ✅ Account data is stored correctly
- ✅ Response time is under 10 seconds for single account
- ✅ Response time is under 60 seconds for batch creation
2. Trading Permission Revocation
Endpoint: POST /user/revoketradingpermission
Purpose: Revoke trading permissions from accounts.
Test Steps:
- Revoke trading permission from active account
- Verify permission revocation is immediate
- Test partial permission revocation
- Verify account access is properly restricted
- Test error handling for invalid operations
Example Implementation:
Expected Response:
Error Response:
Bulk Permission Revocation:
Expected Response:
Error Response:
Validation Criteria:
- ✅ Trading permissions are revoked successfully
- ✅ Revocation is immediate and effective
- ✅ Account access is properly restricted
- ✅ Bulk revocation works correctly
- ✅ Error handling works for invalid operations
- ✅ Audit trail is maintained
3. Risk Category Management
Purpose: Manage and update account risk categories.
Test Steps:
- Get available risk categories using
/riskCategory/list - Switch account risk category using
/accountRiskStatus/switchRiskCategory - Verify risk parameters are updated
- Test risk category validation
- Verify risk limits are enforced
- Test risk category transitions
Example Implementation:
Expected Response:
Error Response:
Validation Criteria:
- ✅ Risk categories are updated successfully
- ✅ Risk parameters are applied correctly
- ✅ Risk limits are enforced immediately
- ✅ Invalid risk categories are rejected
- ✅ Risk transitions are logged properly
4. Halt Trading for Risk Category
Endpoint: POST /accountRiskStatus/setDemoHalt
Purpose: Halt or resume trading for a specific risk category. This allows you to temporarily disable trading for specific account types or halt all trading in emergency situations.
Test Steps:
- Get available risk categories using
/riskCategory/list - Halt trading for a specific risk category
- Verify trading is halted for accounts in that category
- Resume trading for the risk category
- Verify trading is restored for accounts in that category
- Test emergency halt functionality
Example Implementation:
Expected Response for Risk Category List:
Expected Response for Halt Trading:
Error Response:
Validation Criteria:
- ✅ Trading can be halted for specific risk categories
- ✅ Trading can be resumed for specific risk categories
- ✅ Halt status is applied immediately
- ✅ All accounts in the risk category are affected
- ✅ Emergency halt functionality works correctly
- ✅ Error handling works for invalid operations
- ✅ Audit trail is maintained for halt operations
Important Notes:
- This function allows you to temporarily disable trading for specific account types
- Use this for emergency situations or to temporarily turn off product types
- Note: Please favor the riskTimePeriod-based method over the Category Halt method when possible
- Contact Evaluation Services dev support team if you don’t have Risk Categories associated with your organization
5. Account Reset
Endpoint: POST /account/resetdemoaccountstate
Purpose: Reset evaluation accounts to initial state.
Test Steps:
- Reset account to initial state
- Verify all positions are closed
- Verify all orders are cancelled
- Verify balance is reset to initial amount
- Verify account is ready for new evaluation
Example Implementation:
Expected Response:
Error Response:
Validation Criteria:
- ✅ Account is reset to initial state
- ✅ All positions are closed
- ✅ All orders are cancelled
- ✅ Balance is reset to initial amount
- ✅ Account is ready for new evaluation
- ✅ Reset operation is logged
- ✅ Bulk reset works correctly
Error Handling
Common Error Scenarios
Account Not Found (404):
Security Considerations
- Access Control: Implement proper authorization for all account operations
- Audit Logging: Log all account management operations
- Data Integrity: Ensure account data consistency
- Risk Validation: Validate all risk parameters before application
Testing Checklist
- Single account creation works correctly
- Batch account creation works for multiple accounts
- Trading permissions are assigned properly
- Permission revocation works correctly
- Risk category management functions properly
- Halt trading for risk category works correctly
- Resume trading for risk category works correctly
- Account reset works as expected
- Risk limits are enforced correctly
- Error handling is robust
- Performance requirements are met
- Security requirements are satisfied
- Audit logging is complete
Conformance Completion
After completing all four stages of conformance testing:
- Documentation: Compile test results and logs
- Review: Submit results to solutions engineering team
- Certification: Receive conformance certification
- Production Access: Gain access to production environment
- Ongoing Compliance: Maintain compliance through regular testing
Next Steps
After completing Stage 4 account management tests, you have completed all conformance testing requirements. Submit your test results and logs to the solutions engineering team for review and production access approval.
For ongoing compliance and re-certification requirements, refer to the Conformance Testing Overview.

