Get Trading Account
API URL: POST https://userapi-demo.s2f.projectx.com/TradingAccount/find
API Reference: /TradingAccount/find
Description
Retrieves the details of an existing Trading Account.
Parameters
| Name | Type | Description | Required | Nullable |
|---|---|---|---|---|
| accountName | string | The Trading Account's account name. | Required | false |
Example Usage
Example Request
- cURL
curl -X 'GET' \
'https://userapi-demo.s2f.projectx.com/TradingAccount/find?accountName=TestAccount' \
-H 'accept: application/json'
Example Response
- Success
- Not Found
{
"accountName": "string",
"userId": 0,
"startingBalance": 0,
"balance": 0,
"status": 0,
"marketDataLevel": 0,
"accountId": 0,
"winRate": 0,
"profitAndLoss": 0,
"startDate": "2024-04-15T17:38:18.594Z",
"closedDate": "2024-04-15T17:38:18.594Z",
"dailyLoss": 0,
"maximumLoss": 0,
"drawDownLimit": 0,
"maxPositions": 0,
"type": 0,
"startOfDayBalance": 0,
"combineName": "string",
"platformId": 0,
"platformAccountId": "string",
"maxMargin": 0,
"realizedDayPnl": 0,
"updatedAt": "2024-04-15T17:38:18.594Z",
"personalDailyLossLimit": 0,
"personalDailyLossLimitAction": 0,
"personalDailyProfitTarget": 0,
"personalDailyProfitTargetAction": 0,
"totalProfit": 0,
"totalLoss": 0,
"totalTrades": 0,
"dailyTrades": 0,
"isFollower": true,
"isLeader": true,
"openPnl": 0
}
null