Create Security Account
POST/v1.1/customer/account/security
This is used to create a new security account of a given asset type under a given cash account.
Request
- application/json
Body
cashAccountNumber stringrequired
Cash account number of the cash account.
securityAccountType integerrequired
Possible values: [1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
]
1 ; Equity, 2 ; Option, 3 ; Futures, 4 ; Forex, 5 ; CFD, 6 ; Spot, 7 ; Auto Trade, 8 ; Investment, 9 ; Fixed Income
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
accountNumber stringrequired
Account number of the security account which was created.
status stringrequired
Possible values: [SUCCESS
, FAILED
]
reason string
rejectCode number
Find error codes here
{
"accountNumber": "string",
"status": "SUCCESS",
"reason": "string",
"rejectCode": 0
}
{
"accountNumber": "P000128441",
"status": "SUCCESS",
"reason": "security account creation successful",
"rejectCode": 0
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid Token
- Expired Token
Schema
timestamp string
status string
error string
message string
path string
rejectCode string
{
"timestamp": "string",
"status": "string",
"error": "string",
"message": "string",
"path": "string",
"rejectCode": "string"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Invalid Token",
"path": "/api/v1.1/customer/account/security",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.1/customer/account/security",
"rejectCode": "1007"
}
Loading...
Is this page helpful for you?