Docs
POST /v2/journal/import

Import journal trades

journal_importTrades

Adds many journal trades in one request and reports how many were created, skipped or failed.

Query parameters

import_id string

Your id for this upload (required). Resending it returns the first result and imports nothing.

format string

Body format: jsonl (default) or csv.

Request body

text/plainrequired

JSON Lines or CSV, as format says

Details

The body is JSON Lines, one POST /v2/journal/trades object per line, or CSV with a header row and the columns id,account_id,symbol,side,qty,price,ts,note. A trade whose id is already in your journal is skipped, and each failed row is listed in errors as {row, code}. Resending the same import_id returns the first result without importing again.

Example

http
POST /v2/journal/import?import_id=2026-09-import-1&format=jsonl
json
{
  "data": {
    "created": 42,
    "skipped": 1,
    "errors": [{ "row": 17, "code": "missing_price" }]
  },
  "meta": { "caps": { "tier": "pro", "applied": [] } }
}

Response

Prices are dollars, timestamps epoch milliseconds, strikes integer thousandths of a dollar; null means unknown. Units →

200application/json

{created, skipped, errors: [{row, code}]} in data

object

A successful response: data, plus meta about the response.

data object required

The result of a journal import: rows created and skipped, and each failed row.

created integer required
errors array<ImportError> required
code string required
row integer required
skipped integer required
meta object required

Response metadata.

caps object nullable

The entitlement caps that shaped this response.

applied array<string> required

Caps that changed this response, such as range_clamped. Empty when none did.

darkpool boolean nullable

Whether this account has Off-Exchange in the ITMatrixHQ apps.

flow boolean nullable

Whether this account has options flow in the ITMatrixHQ apps: Basic or Pro plus a market-data declaration, except on a professional trial. Reported by the account operations.

gexDepth string nullable

GEX data depth, on routes that report it.

tier string required

The plan tier the request was served under.

cursor string nullable

Opaque continuation cursor (pass back as ?cursor=); absent when there is nothing more to read.

plane string nullable

Which serving tier answered the read (meta.plane). Informational provenance: treat it as an opaque label, because new values may appear.

Errors

Every error is the JSON error envelope; branch on error.code.

StatusMeaning
400

invalid_params — import_id is missing or format is unknown

401

unauthenticated