strategy_type and a params object. See Strategy parameters for every type.
For how each strategy behaves in the app, see Order Types.
- Create order strategy: This endpoint allows users to create an order strategy.
- Edit order strategy: This endpoint allows users to replace the definition of an open order strategy.
- Cancel order strategy: This endpoint allows users to cancel an order strategy and its open orders.
- Get open order strategies: This endpoint allows users to list an account’s order strategies that have not finished.
- Get order strategy history: This endpoint allows users to list an account’s finished order strategies.
- Get order strategy: This endpoint allows users to get one order strategy by ID.
- Get order strategy timeline: This endpoint allows users to get the lifecycle, order, and trade events of one order strategy.
- Strategy parameters: The
paramsobject for each strategy type.
Lifecycle
A strategy’slifecycle is one of these values:
When a strategy reaches
cancelled or expired, Pacifica cancels the orders it still has open. Fills that already happened stay.
Limits
- An account can have up to 100 strategies that have not finished.
- Strategy endpoints accept agent wallet signatures.