> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pacifica.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Open Order Strategies

> This endpoint allows users to list an account's order strategies that have not finished.

```http theme={null}
GET /api/v1/order_strategies
```

Returns strategies that are `pending`, `open`, or `paused`.

#### Query Parameters

<table><thead><tr><th width="176">Field</th><th width="98">Type</th><th width="95">Need</th><th width="189">Description</th><th>Example</th></tr></thead><tbody><tr><td>`"account"`</td><td>string</td><td>required</td><td>Account address</td><td>`42trU9A5...`</td></tr><tr><td>`"type"`</td><td>string</td><td>optional</td><td>Only return this strategy type: `oco`, `conditional`, `trailing_stop`, `auto_chase`, `swarm`, `trigger_swarm`, or `twap`</td><td>`twap`</td></tr><tr><td>`"limit"`</td><td>integer</td><td>optional</td><td>Maximum number of strategies to return, 1 to 500. Defaults to 100</td><td>`100`</td></tr><tr><td>`"offset"`</td><td>integer</td><td>optional</td><td>Number of strategies to skip. Defaults to 0</td><td>`0`</td></tr></tbody></table>

```
/api/v1/order_strategies?account=42trU9A5...
```

#### Response

* Status 200: Successfully retrieved strategies

```json theme={null}
{
  "success": true,
  "data": {
    "strategies": [
      {
        "strategy_id": "0f8e7c2a-4b1d-4e5f-9a3b-2c1d0e9f8a7b",
        "revision": 1,
        "account": "42trU9A5...",
        "strategy_type": "twap",
        "definition": {
          "strategy_type": "twap",
          "params": {
            "symbol": "BTC",
            "side": "ask",
            "amount": "1",
            "reduce_only": false,
            "duration_seconds": 3600,
            "randomize": false
          }
        },
        "lifecycle": "open",
        "phase": "running",
        "state": {
          // Progress for this strategy type
        },
        "applied_trade_history_id": 0,
        "applied_order_history_id": 0,
        "expires_at_ms": null,
        "scheduled_start_at_ms": null,
        "scheduled_end_at_ms": null,
        "created_at_ms": 1716200000000,
        "updated_at_ms": 1716203600000,
        "owned_orders": []
      }
    ],
    "total": 1,
    "limit": 100,
    "offset": 0,
    "has_more": false
  },
  "error": null,
  "code": null
}
```

| Field | Type | Description |
| - | - | - |
| `'strategies'` | array | Strategies. Each has the fields in [Get order strategy](https://docs.pacifica.fi/api-documentation/api/rest-api/order-strategies/get-order-strategy.md) |
| `'total'` | integer | Total number of matching strategies |
| `'limit'` | integer | Limit used |
| `'offset'` | integer | Offset used |
| `'has_more'` | boolean | Whether more strategies exist after this page |

* Status 400: Invalid query parameters, for example an unknown `type`
* Status 500: Internal server error

#### Code Example (Python)

```python theme={null}
import requests

response = requests.get(
    "/api/v1/order_strategies?account=42trU9A5...",
    headers={"Accept": "*/*"},
)

data = response.json()
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.