Skip to main content
POST
Start or extend a trader lockout

Authorizations

Authorization
string
header
required

API key beginning with fp_live_ (live keys, served at developers.myfundedperpetuals.com) or fp_test_ (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with 401 and a message naming the correct host. Affiliate API keys are fp_live_ keys created on the Affiliates page: they read only the /v1/affiliate endpoints and get 403 with code insufficient_scope on every other authenticated endpoint. Every other key gets the same 403 on /v1/affiliate.

Body

application/json

Send exactly one of account_ids and all_accounts, and exactly one of duration and expires_at.

acknowledged
enum<boolean>
required

Confirms the lockout cannot be ended early, by you or by Support. Required.

Available options:
true
account_ids
string[]

Accounts to lock. Each must be active.

Required array length: 1 - 1000 elements
all_accounts
enum<boolean>

Lock every active, unarchived account this key can see. For a key not limited to certain accounts, refused with 422 when the owner has more than 1,000 unarchived accounts of any status.

Available options:
true
duration
enum<string>

How long to lock from now. next_midnight_et locks until the next midnight in New York (Eastern time).

Available options:
15m,
30m,
1h,
2h,
4h,
8h,
12h,
24h,
next_midnight_et
expires_at

Exact unlock time, in the future and at most 90 days away (the server allows 5 extra minutes for clock differences): Unix milliseconds, or an ISO 8601 time with Z or a UTC offset. Fractional seconds finer than a millisecond are truncated to the millisecond.

close_trades_first
boolean
default:false

Close every open trade on the accounts first and lock only once all are flat, within about 70 seconds. At most 100 accounts, 200 positions, and 1,000 working orders. Defaults to false, which keeps trades open.

Response

The accounts are locked.

data
object
required