Skip to main content

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


NameTypeDescriptionRequiredNullable
tradingAccountIdintegerThe id associated with the Trading Account.truefalse
startTradeDaydatetimeThe start date.falsefalse
endTradeDaydatetimeThe end date.falsefalse

Example Usage


Example Request

{
"tradingAccountId": 107,
"startTradeDay": "2024-11-01T19:14:30.594Z",
"endTradeDay": "2024-11-28T19:14:30.594Z"
}

Example Response

{
"totalProfit": 45.660000000,
"totalLoss": -4.340000000
}