This endpoint allows users to update a take profit order for a trade.

Log in to see full request history
Body Params
string
required

The unique identifier of the position to be closed. This is obtained from previously opened trades or position queries (e.g., GET Open Positions).

string

The wallet address (public key) of a partner to receive any associated fees for facilitating this trade.

string
required

The token used for quoting the loan offer, can be SOL or USDC.

number
required
≥ 1

The target price for the take profit order. The price at which the take profit order will be triggered.

number
required
≥ 1

The retrigger price for the take profit order. The price at which the take profit order will be invalidated and needs retriggering if the price moves in the opposite direction before the order is executed.

Response

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json