Legacy Statement
GetAuth requiredLegacy
Get the historical transaction statement from the legacy options platform for the default account of the supplied loginid.
Temporary endpoint
This endpoint exposes data sourced from the legacy options platform. It will be removed once all users have been fully migrated to the new platform.
Endpoint
Get
/trading/v1/options/legacy/statementBase 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
}
}Authentication Required
This endpoint requires the
Deriv-App-ID header to identify your application, plus a valid OAuth2 Bearer token. OAuth2 Scope: tradeAbout 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).
Any other questions? Get in touch