positions.add

write

Add position

Records one open position per leg for the signed-in user. Use dry_run to preview the rows without saving.

Free with an account. Requires a key or OAuth token with the write scope.

Input

FieldTypeDescription
legs*object[]1–4 legs, each with an entry price
opened_atstringDefaults to today
notesstring
strategy_typestringFree-form label, e.g. "Vertical spread"

* required

Output

Returned under data; every response also carries meta with freshness, as_of and truncated.

FieldTypeDescription
dry_run*booleanTrue when dry_run was requested: nothing was persisted; other fields show the would-be result
positions*object[]

* required

Example request

curl -X POST "https://impliedoptions.com/api/v1/tools/positions.add" \
  -H "Authorization: Bearer <YOUR_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "args": {
      "legs": [
        {
          "occ": "SPY260918C00620000",
          "qty": 2,
          "price": 6.47
        }
      ],
      "notes": "Post-CPI drift"
    }
  }'

Rendered result: /performance?tab=current

Run

Log in to run this tool.
positions.addAdd positionFreeWrites

1–4 legs, each with an entry price

Defaults to today

Free-form label, e.g. "Vertical spread"

Writes to your account.