Backpack · Arazzo Workflow
Backpack Add a Take-Profit to a Position
Version 1.0.0
Read an open futures position and the mark price, then place a reduce-only take-profit order.
View Spec
View on GitHub
CryptoExchangeWalletTradingPerpetualsSolanaWeb3DeFixNFTAnchorCoralCentralized ExchangeSelf-CustodyArazzoWorkflows
Provider
Workflows
position-take-profit
Place a reduce-only take-profit order against an open futures position.
Reads open positions and the mark price for the symbol, then submits a reduce-only limit order on the supplied side at the take-profit price and quantity.
1
getPositions
get_positions
Read the account's open positions to confirm there is a position on the target symbol to protect.
2
getMarkPrice
get_mark_prices
Read the current mark price for the symbol so the take-profit target can be sanity-checked against the mark.
3
placeTakeProfit
execute_order
Submit a reduce-only limit order on the closing side at the take-profit price so the position closes when price reaches the target.