Get Trading Accounts
API URL: POST https://userapi-demo.s2f.projectx.com/DataExport/accounts
API Reference: /DataExport/accounts
Description
Retrieves a list of all accounts. If a time is provided in the request, only updated accounts will be returned.
Parameters
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
after | datetime | Retrieves list of accounts that have been created or updated after this time. | false | true |
Example Usage
Example Request
- Request
- cURL
{
"after": "2024-06-13T02:19:13.180Z"
}
curl -X 'POST' \
'https://userapi-demo.s2f.projectx.com/accounts' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"after": "2024-06-13T02:19:13.180Z"
}'
Example Response
- Success
{
"data": [
{
"id": 37,
"accountName": "TEST_ACCOUNT_1",
"nickname": null,
"balance": 40615.0300,
"unrealizedPnl": 0,
"highestUnrealizedBalance": 42604.1300,
"highestRealizedBalance": 42268.0300,
"realizedDayPnl": -14.0000,
"status": 0,
"lockoutExpiration": "2024-12-11T22:30:00+00:00",
"tradeLimitExpiration": null,
"dailyTradeLimit": 5,
"weeklyTradeLimit": 20,
"latestTradeDateTime": "2024-12-11T14:12:00.319398+00:00",
"ineligible": false,
"maximumLossLimit": 0,
"dailyLossLimit": 50000.0000,
"updatedAt": "2024-12-11T14:12:01.145695+00:00"
}
],
"success": true,
"errorMessage": null
}