Search for Account
API URL: POST https://gateway-api-demo.s2f.projectx.com/api/Account/search
API Reference: /api/account/search
Description
Search for accounts.
Parameters
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
onlyActiveAccounts | boolean | Whether to filter only active accounts. | Required | false |
Example Usage
Example Request
- cURL Request
curl -X 'POST' \
'https://gateway-api-demo.s2f.projectx.com/api/Account/search' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"onlyActiveAccounts": true
}'
Example Response
- Success
- Error
{
"accounts": [
{
"id": 1,
"name": "TEST_ACCOUNT_1",
"balance": 50000,
"canTrade": true,
"isVisible": true
}
],
"success": true,
"errorCode": 0,
"errorMessage": null
}
Error: response status is 401