Deriv API
Documentation
Trading d'options (Legacy)

Legacy Statement

GetAuthentification requiseHéritage

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

Point de terminaison

Get/trading/v1/options/legacy/statement

URL de base : https://api.derivws.com

Codes de statut

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

Réponses d'erreur

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
  }
}

À propos de Legacy Statement

Le point de terminaison GET /trading/v1/options/legacy/statement : Get the historical transaction statement from the legacy options platform for the default account of the supplied loginid.

Paramètres de requête

  • loginid L'identifiant de connexion Deriv dont vous souhaitez récupérer le relevé historique. Obligatoire.
  • limit Nombre maximal de transactions à renvoyer. Facultatif ; par défaut 100.
  • date_from / date_to Horodatages Unix pour filtrer le relevé par plage de dates. Facultatif.

Champs de transaction

Chaque objet de transaction dans la réponse inclut les champs suivants :

  • transaction_id Identifiant unique de la transaction.
  • action_type Type de transaction (par exemple, achat, vente, dépôt, retrait).
  • amount Montant de la transaction sous forme de chaîne décimale.
  • balance_after Solde du compte après la transaction.
  • transaction_time Horodatage Unix du moment où la transaction a eu lieu.
  • currency Devise du compte (ex. : USD).
Click to open live chat support. Get instant help from our support team.