Get Day Statistics
API URL: POST https://userapi-demo.s2f.projectx.com/Statistics/admin/daystats
API Reference: /Statistics/admin/daystats
Description
Retrieves day's statistics 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/daystats' \
-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
[
{
"tradeDate": "2024-11-21T06:00:00+00:00",
"totalPnL": 50.000000000,
"totalTrades": 2,
"winningTrades": 1,
"losingTrades": 1,
"neutralTrades": 0,
"winRate": 0,
"totalFees": 8.68000
}
]