Skip to main content
POST
Credit or debit a trading account

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Path Parameters

accountId
string
required

Trading account ID

Body

application/json
amount
number
required

Signed amount in the account currency, at most 2 decimals: positive credits the account, negative debits it. Not zero; at most 10,000,000 either way. Send a JSON number.

Required range: -10000000 <= x <= 10000000
Example:

500

reference
string
required

Your reference for this adjustment, for example your deposit or withdrawal ID: 1 to 128 characters, letters, digits and . _ : @ + = ~ -, starting with a letter or digit. Unique within your organization and case-sensitive.

Pattern: ^[A-Za-z0-9][A-Za-z0-9._:@+=~-]{0,127}$
Example:

"DEP-2026-104233"

reason
string

Shown in the account activity, the audit log and the webhook.

Maximum string length: 500
Example:

"Deposit via card"

metadata
object

Up to 20 keys of your own (strings up to 500 characters, numbers, booleans or null), returned as sent and included in the webhook.

Example:
countTowardDailyPnl
boolean
default:false

Default false: the day's starting balance moves with the adjustment, so it is not counted as that day's profit or loss (the daily loss limit stays where it was). true: it counts toward the day's P&L.

moveHighWaterMark
boolean
default:false

Default false: the high-water mark (trailing drawdown peak) stays where it is. true: it moves by the amount as well.

Response

Replayed - This reference was already applied with the same request; nothing changed

success
boolean
Example:

true

data
object