This endpoint allows users to repay a leveraged position, repaying the borrowed funds and releasing any remaining collateral.

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 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.

number

An optional markup applied to the closing profit fee. For example, 0.02 represents a 2% additional markup.

number

The percentage (in basis points) of the position to be repaid. For example, 200 represents a 2% repayment.

string
required

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

string
required

The public key of the user initiating the trade. This identifies the trader and links the trade to their account.

Response

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