Skip to main content
POST
Create a verifiable PnL card from a closed trade

Body

application/json
accountId
string
required

Trading account the trade was executed on

tradeRef
object
required

IDs of every filled order that made up the round-trip trade

id
string

Optional caller-suggested card id (UUID v4). Lets the client pre-allocate an id so a QR baked into the card preview will resolve once saved. Ignored if the same trade is already saved or the id collides.

type
enum<string>
default:per_trade

Card type. Only 'per_trade' is supported today.

Available options:
per_trade
visibility
enum<string>
default:public

Who can view the card. 'public' surfaces it on the user's public profile.

Available options:
public,
unlisted,
private
description
string

Optional free-form caption (max 500 chars). Empty string is stored as null.

Maximum string length: 500

Response

Card already existed; returning current record

success
boolean
Example:

true

message
string
Example:

"PnL card already exists"

data
object