# Congress data

## The Gist

* Get Congress trade data summarized

<table><thead><tr><th width="375">Function</th><th>Description</th></tr></thead><tbody><tr><td><a href="#congress-trades-chart-1">/congress sells</a> <em>&#x3C;months</em>_ago></td><td>Most sold stocks in Congress over a given time period</td></tr><tr><td><a href="#congress-buys">/congress buys</a> <em>&#x3C;months</em>_ago></td><td>Most bought stocks in Congress over a given time period</td></tr><tr><td><a href="#congress-net-buys">/congress net buys</a> <em>&#x3C;months</em>_ago></td><td>Stocks with the most net buys in Congress over a given time period</td></tr><tr><td><a href="#congress-ticker-search">/congress ticker search</a> <em>&#x3C;ticker> &#x3C;months_ago></em></td><td>Gets the Congress trading summary for a specific ticker</td></tr><tr><td><a href="#congress-ticker-search-1">/congress trades chart</a> <em>&#x3C;ticker> &#x3C;months_ago></em></td><td>Plots the Congress buys and sells for a ticker on a chart</td></tr><tr><td><a href="#congress-trades-chart-1">/congress summary</a> &#x3C;months_<em>ago> &#x3C;rolling_window></em></td><td>Plots the net congress purchase amounts vs the S&#x26;P 500</td></tr><tr><td><a href="#pelosi-trades">/pelosi trades</a></td><td>Get a list of Nancy Pelosi's historical trades</td></tr></tbody></table>

### <mark style="background-color:green;">/congress sells</mark>

#### Most sold stocks in Congress  over a given time period

{% hint style="success" %}
**Syntax:** /congress sells *\<months*\_ago>
{% endhint %}

`months_ago` sets how long ago you want the largest sells for. By default, it is set to 1.

{% tabs %}
{% tab title="Example 1" %}

<figure><img src="/files/h1q0xzvEcmFLeDu1ROig" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### <mark style="background-color:green;">/congress buys</mark>

#### Most bought stocks in Congress over a given time period

{% hint style="success" %}
**Syntax:** /congress buys *\<months*\_ago>
{% endhint %}

`months_ago` sets how long ago you want the largest sells for. By default, it is set to 1.

{% tabs %}
{% tab title="Example 1" %}

<figure><img src="/files/21KDmVq8ujdAualGEhQt" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### <mark style="background-color:green;">/congress net buys</mark>

#### Stocks with the most net buys in the house of representatives over a given time period

{% hint style="success" %}
**Syntax:** /congress net buys \<months\_ago>
{% endhint %}

`months_ago` sets how long ago you want the largest sells for. By default, it is set to 1.

This function gets the net buys in the House of Representatives, for example, if there are $8,000 of buys and $5,000 of sells, then there are only $3,000 not net buys.

{% tabs %}
{% tab title="Example 1" %}

<figure><img src="/files/xYWQB99KoGxb9piTwpH8" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### <mark style="background-color:green;">/congress ticker search</mark>

#### Gets the Congress trading summary for a specific ticker

{% hint style="success" %}
**Syntax:** /congress ticker search \<ticker> \<months\_ago>
{% endhint %}

{% hint style="info" %}
This function is only available for those with the Eagle Eye Standard or Ultimate plan. Upgrade here <https://eagleeyebot.com/pricing>
{% endhint %}

`ticker` specifies what company you want the trade history for

`months_ago` sets how long ago you want the largest sells for. By default, it is set to 1.

{% tabs %}
{% tab title="Example 1" %}

<figure><img src="/files/ZfCa9LayeyHMiDzk4aEd" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### <mark style="background-color:green;">/congress trades chart</mark>

#### Plots the Congress buys and sells for a ticker on a chart

{% hint style="success" %}
**Syntax:** /congress trades chart \<ticker> \<months\_ago>
{% endhint %}

{% hint style="info" %}
This function is only available for those with the Eagle Eye Standard or Ultimate plan. Upgrade here <https://eagleeyebot.com/pricing>
{% endhint %}

`ticker` specifies what company you want the chart for

`months_ago` sets how long ago you want the largest sells for. By default, it is set to 1.

{% tabs %}
{% tab title="Example 1" %}
![](/files/IlN7R3dCUhdYf9b5wARa)
{% endtab %}
{% endtabs %}

### <mark style="background-color:green;">/congress summary</mark>

#### Plots the net congress purchase amounts vs the S\&P 500

{% hint style="success" %}
**Syntax:** /congress summary \<months\_ago> \<rolling\_window>
{% endhint %}

{% hint style="info" %}
This function is only available for those with the Eagle Eye Standard or Ultimate plan. Upgrade here <https://eagleeyebot.com/pricing>
{% endhint %}

`months_ago` sets how long ago you want the data for

`rolling_window`sets how many months you want the congress net purchases summed for

{% tabs %}
{% tab title="Example 1" %}
![](/files/o01imuS5oXBJ0gpkExgf)
{% endtab %}
{% endtabs %}

### <mark style="background-color:green;">/pelosi trades</mark>

#### Gets Nancy Pelosi's trading history

{% hint style="success" %}
**Syntax:** /pelosi trades
{% endhint %}

{% hint style="info" %}
This function is only available for those with the Eagle Eye Ultimate plan. Upgrade here <https://eagleeyebot.com/pricing>
{% endhint %}

{% tabs %}
{% tab title="Example 1" %}

<figure><img src="/files/K2tmyEoeRgqwU7BKn08I" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://eagleeyebot.gitbook.io/eagle-eye/get-values/congress-data.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.
