# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/strategy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
