Skip to main content
POST
Reverse a position

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.

Headers

Idempotency-Key
string
required

Unique printable key for this intended operation. Reuse it only for an identical retry.

Required string length: 1 - 128

Path Parameters

position_id
string
required

Body

application/json
expected_price
number
required

Midpoint observed by the client. Server execution never trusts this value for pricing.

client_order_id
string

Optional caller-assigned identity for the resulting reversal order.

Required string length: 1 - 128
slippage_tolerance_bps
number

Response

Idempotent replay.

data
object
required
queued
boolean