# strategy()

{% code title="CarbonController.sol" overflow="wrap" lineNumbers="true" %}

```solidity
    function strategy(uint256 id) external view returns (Strategy memory);
   
```

{% endcode %}

This function is used to get details about a strategy, specified by its ID.&#x20;

### **Function Arguments**

<table><thead><tr><th width="127">Name</th><th width="209.66666666666663">Type</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>uint256</td><td>The ID of the strategy</td></tr></tbody></table>

### **Returns**

This function returns details about the specified strategy.

<table><thead><tr><th width="128">Name</th><th width="136.66666666666663">Type</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>uint256</td><td>The ID of the strategy</td></tr><tr><td>owner</td><td>address</td><td>The address of the owner of the strategy</td></tr><tr><td>tokens</td><td>array</td><td>An array containing the addresses of token0 and token1</td></tr><tr><td>orders</td><td>array</td><td>An array containing the order objects that specify the parameters of each order contained by the strategy</td></tr></tbody></table>

### Example

```
strategy(
 888 //strategy id
)

// returns 
// struct Strategy {
//    uint256 id;
//    address owner;
//    Token[2] tokens;
//    Order[2] orders;
// }

// [{y, z, A, B},{y, z, A, B}], // orders
```
