Get Day Trades
API URL: POST https://userapi-demo.s2f.projectx.com/Statistics/admin/daytrades
API Reference: /Statistics/admin/daytrades
Description
Retrieves day trades' statistics from trading account id and trade day.
Parameters
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
tradingAccountId | integer | The id associated with the Trading Account. | true | false |
tradeDay | datetime | The trading day. | true | false |
Example Usage
Example Request
- Request
- cURL
{
"tradingAccountId": 107,
"tradeDay": "2024-11-21T19:18:13.752Z"
}
curl -X 'POST' \
'https://userapi-demo.s2f.projectx.com/Statistics/admin/daytrades' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"tradingAccountId": 0,
"tradeDay": "2024-06-19T16:19:11.532Z"
}
'
Example Response
- Success
[
{
"id": 3561,
"symbolId": "F.US.NKD",
"positionSize": -1,
"profitAndLoss": 50.000000000,
"fees": 4.34000,
"entryPrice": 38115.000000000,
"exitPrice": 38125.000000000,
"tradeDay": "2024-11-21T06:00:00+00:00",
"createdAt": "2024-11-21T15:48:49.712591+00:00",
"enteredAt": "2024-11-21T15:48:40.417219+00:00"
},
{
"id": 3563,
"symbolId": "F.US.NKD",
"positionSize": -1,
"profitAndLoss": 0,
"fees": 4.34000,
"entryPrice": 38220.000000000,
"exitPrice": 38220.000000000,
"tradeDay": "2024-11-21T06:00:00+00:00",
"createdAt": "2024-11-21T16:06:36.515006+00:00",
"enteredAt": "2024-11-21T16:06:34.797184+00:00"
}
]