Deriv API
Documentation
Options Trading (Legacy)

Legacy Statement

GetAuth requiredLegacy

Get the historical transaction statement from the legacy options platform for the default account of the supplied loginid.

Endpoint

Get/trading/v1/options/legacy/statement

Base URL: https://api.derivws.com

Status Codes

200OK - Statement returned successfully
400Bad request - Bad input (e.g. malformed loginid)
404Not found - User or default account not found
409Conflict - User migration is pending or has failed
422Unprocessable entity - Request validation error
500Internal server error
503Service temporarily unavailable

Error Responses

400Bad request
{
  "errors": [
    {
      "status": 400,
      "code": "ValidationError",
      "message": "loginid must match ^[A-Z]+[0-9]+$"
    }
  ],
  "meta": {
    "endpoint": "/trading/v1/options/legacy/statement",
    "method": "GET",
    "timing": 18
  }
}
409Migration pending or failed
{
  "errors": [
    {
      "status": 409,
      "code": "MigrationPending",
      "message": "User migration is pending or has failed"
    }
  ],
  "meta": {
    "endpoint": "/trading/v1/options/legacy/statement",
    "method": "GET",
    "timing": 24
  }
}
422Validation error
{
  "errors": [
    {
      "status": 422,
      "code": "ValidationError",
      "message": "date_to must be <= 2147483647"
    }
  ],
  "meta": {
    "endpoint": "/trading/v1/options/legacy/statement",
    "method": "GET",
    "timing": 14
  }
}

About Legacy Statement

The GET /trading/v1/options/legacy/statement endpoint: Get the historical transaction statement from the legacy options platform for the default account of the supplied loginid.

Query Parameters

  • loginid The Deriv loginid whose legacy statement you want to retrieve. Required.
  • limit Maximum number of transactions to return. Optional; defaults to 100.
  • date_from / date_to Unix timestamps to filter the statement by date range. Optional.

Transaction Fields

Each transaction object in the response includes the following fields:

  • transaction_id Unique identifier for the transaction.
  • action_type Type of transaction (e.g. buy, sell, deposit, withdrawal).
  • amount Transaction amount as a decimal string.
  • balance_after Account balance after the transaction.
  • transaction_time Unix timestamp of when the transaction occurred.
  • currency Currency of the account (e.g. USD).
Click to open live chat support. Get instant help from our support team.