Skip to main content
POST
/
mt5
/
update
/
history
curl -X POST https://api-verifier-2.onrender.com/mt5/update/history \
  -H "Content-Type: application/json" \
  -d '{
    "accountNumber": "12345678",
    "closedPositions": [
      {
        "ticket": 123455,
        "symbol": "GBPUSD",
        "type": "sell",
        "volume": 0.5,
        "openPrice": 1.2650,
        "closePrice": 1.2600,
        "profit": 250.00,
        "openTime": "2024-01-14T08:00:00.000Z",
        "closeTime": "2024-01-15T14:30:00.000Z"
      }
    ]
  }'
{
  "status": "ok",
  "message": "History updated"
}

Request body

accountNumber
string
required
MT5 account number
closedPositions
array
required
Array of closed positions

Response

status
string
Operation status (“ok” or “error”)
message
string
Status message
curl -X POST https://api-verifier-2.onrender.com/mt5/update/history \
  -H "Content-Type: application/json" \
  -d '{
    "accountNumber": "12345678",
    "closedPositions": [
      {
        "ticket": 123455,
        "symbol": "GBPUSD",
        "type": "sell",
        "volume": 0.5,
        "openPrice": 1.2650,
        "closePrice": 1.2600,
        "profit": 250.00,
        "openTime": "2024-01-14T08:00:00.000Z",
        "closeTime": "2024-01-15T14:30:00.000Z"
      }
    ]
  }'
{
  "status": "ok",
  "message": "History updated"
}