Trading 212 · Example Payload

Post_Api_V0_Equity_Pies

Pies (Deprecated)

Post_Api_V0_Equity_Pies is an example object payload from Trading 212, with 7 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdsummarytagsmethodpathrequestresponse

Example Payload

Raw ↑
{
  "operationId": "create",
  "summary": "Create pie",
  "tags": [
    "Pies (Deprecated)"
  ],
  "method": "POST",
  "path": "/api/v0/equity/pies",
  "request": {
    "dividendCashAction": "REINVEST",
    "endDate": "2024-01-15T10:30:00Z",
    "goal": 100.0,
    "icon": "example_icon",
    "instrumentShares": {},
    "name": "example_name"
  },
  "response": {
    "status": 200,
    "body": {
      "instruments": [],
      "settings": {
        "creationDate": "2024-01-15T10:30:00Z",
        "dividendCashAction": "REINVEST",
        "endDate": "2024-01-15T10:30:00Z",
        "goal": 100.0,
        "icon": "example_icon",
        "id": 1,
        "initialInvestment": 100.0,
        "instrumentShares": {},
        "name": "example_name",
        "publicUrl": "example_publicUrl"
      }
    }
  }
}