Journal action JSON shape

Share this page URL with an AI assistant to generate importable JSON for EndureTrade journal actions. Import from the web app using a JSON file or pasted text.

Canonical URL: https://www.enduretrade.com/docs/actions/import

Field reference

FieldTypeRequiredNotes
idstring (uuid)NoIf provided and matches an existing action, updates that row; otherwise ignored on create
namestringYesButton label shown in the extension
sitestringYesMust match an extension enabled-site pattern exactly (e.g. *.tradingview.com)
locationstringYes"openPosition" | "closePosition" | "toolbar"
actionstringYes"fillData" | "fillFromHistory" | "click"
iconIdstringNoDefaults to "play". See extension icon ids in the web app action form.
contentobjectNoAction-type-specific JSON. See /docs/actions/[actionType] for content examples.
enabledbooleanNoDefaults to true
sortOrderintegerNoDefaults to 0; lower values appear first

Example JSON

Payload may be a single object or an array of objects. All items are validated before any import writes.

[
  {
    "name": "From position",
    "site": "*.tradingview.com",
    "location": "openPosition",
    "action": "fillData",
    "iconId": "play",
    "content": {
      "entryPrice": "[data-account-manager-page-id=\"positions\"] td[data-label=\"Avg Fill Price\"]",
      "direction": {
        "selector": "td[data-label=\"Side\"]",
        "map": {
          "buy": "long",
          "sell": "short"
        }
      }
    },
    "enabled": true,
    "sortOrder": 0
  }
]

Import rules

When id matches an existing record you own, that record is updated. When id is missing or does not match, a new record is created and any foreign id is ignored. Read-only fields such as userId and timestamps are ignored if present in export files.