Get Profit Factor
API URL: POST https://userapi-demo.s2f.projectx.com/Statistics/admin/profitFactor
API Reference: /Statistics/admin/profitFactor
Description
Retrieves total profit and total loss from trading account id, start date and end date.
Parameters
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
tradingAccountId | integer | The id associated with the Trading Account. | true | false |
startTradeDay | datetime | The start date. | false | false |
endTradeDay | datetime | The end date. | false | false |
Example Usage
Example Request
- Request
- cURL
{
"tradingAccountId": 107,
"startTradeDay": "2024-11-01T19:14:30.594Z",
"endTradeDay": "2024-11-28T19:14:30.594Z"
}
curl -X 'POST' \
'https://userapi-demo.s2f.projectx.com/Statistics/admin/profitFactor' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"tradingAccountId": 1,
"startTradeDay": "2024-06-18T18:32:22.338Z",
"endTradeDay": "2024-06-18T18:32:22.338Z"
}
'
Example Response
- Success
{
"totalProfit": 45.660000000,
"totalLoss": -4.340000000
}