Skip to main content

Create Account Template

API URL: POST https://userapi-demo.s2f.projectx.com/AccountTemplate/create

API Reference: /AccountTemplate/create

info
Documentation on this page is applicable to platforms that have Account Templates enabled. If you are unsure whether you have Account Templates enabled, please contact your account manager.

Description


Create Account Template.

Parameters


NameTypeDescriptionRequiredNullable
titlestringThe Account Template title.truefalse
namestringThe Account Template name.truefalse
descriptionstringThe Account Template description.truefalse
notesstringNotes on the Account Template.falsetrue
startingBalancedecimalThe starting balance for all accounts created from this Account Template.falsefalse
margindecimalThe margin for all accounts created from this Account Template.falsefalse
titleColorstringThe title color for the Account Template.falsetrue
tagintThe Account Template tag.
Valid Values:
  • 0 - Standard
  • 1 - Practice
truefalse

Example Usage


Example Request

{
"title": "TEMPLATE_TITLE",
"name": "TEMPLATE_NAME",
"description": "TEMPLATE_DESCRIPTION",
"notes": "Starting Balance: $100,000\nProfit Target: $6,000\nMax Loss: $2,500 (Trailing EOD highest account balance)\nDaily Loss: $1,000 (temporary violation - non fail)\nMax Position: 10 contracts ($100,000 margin)",
"startingBalance": 100000,
"margin": 100000,
"titleColor": #ff0000",
"tag": 0 // 0 = Regular Template, 1 = Practice Template
}

Example Response

{
"success": true,
"errorMessage": "string",
"template": {
"id": 2,
"title": "TEMPLATE_TITLE",
"titleColor": "#ff0000",
"description": "TEMPLATE_DESCRIPTION",
"startingBalance": 100000,
"margin": 100000,
"name": "TEMPLATE_NAME",
"notes": "Starting Balance: $100,000\nProfit Target: $6,000\nMax Loss: $2,500 (Trailing EOD highest account balance)\nDaily Loss: $1,000 (temporary violation - non fail)\nMax Position: 10 contracts ($100,000 margin)",
"isActive": false,
"tag": 0
}
}