Skip to main content

Get Today's Statistics

API URL: POST https://userapi-demo.s2f.projectx.com/Statistics/admin/todaystats

API Reference: /Statistics/admin/todaystats

Description


Retrieves today's stats from trading account id.

Parameters


NameTypeDescriptionRequiredNullable
accountIdintegerThe id associated with the Trading Account.truefalse

Example Usage


Example Request

curl -X 'POST' \
'https://userapi-demo.s2f.projectx.com/Statistics/admin/todaystats?accountId=107' \
-H 'accept: text/plain' \
-d ''
'

Example Response

[
{
"tradeDay": "2024-11-21T06:00:00+00:00",
"balance": 106970.300000000,
"products": [
{
"tradeDay": "2024-11-21T06:00:00+00:00",
"symbolId": "F.US.NKD",
"totalTradedContracts": 4
}
],
"tradeDate": "0001-01-01T00:00:00+00:00",
"totalPnL": 50.000000000,
"totalTrades": 2,
"winningTrades": 1,
"losingTrades": 1,
"neutralTrades": 0,
"winRate": 0,
"totalFees": 8.68000
}
]