# Buy/Sell

## Buy

<mark style="color:green;">`GET`</mark> `/`pumpfun/buy

**Headers**

| Name      | Value          |
| --------- | -------------- |
| x-api-key | `Your API Key` |

**Body**

<table><thead><tr><th width="319">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>buyerKey</td><td>string</td><td>Buyer Private Key</td></tr><tr><td>mint</td><td>string</td><td>Target Token Address</td></tr><tr><td>buyAmountSol</td><td>string</td><td>0.1</td></tr><tr><td>priorityFees</td><td>string</td><td>0.003</td></tr><tr><td>slippageBasisPoints</td><td>sting</td><td>5000 = 50%</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}
```json
{
    "status": "success",
    "signature": ""
}
```
{% endtab %}

{% tab title="400" %}
```json
{
  "error": "Invalid request"
}
```
{% endtab %}
{% endtabs %}

## Sell

<mark style="color:green;">`GET`</mark> `/`pumpfun/sell

**Headers**

| Name      | Value          |
| --------- | -------------- |
| x-api-key | `Your API Key` |

**Body**

| Name                | Type   | Description          |
| ------------------- | ------ | -------------------- |
| sellerKey           | string | Buyer Private Key    |
| mint                | string | Target Token Address |
| sellPercent         | string | 100                  |
| priorityFees        | string | 0.003                |
| slippageBasisPoints | sting  | 5000 = 50%           |

**Response**

{% tabs %}
{% tab title="200" %}
```json
{
    "status": "success",
    "signature": ""
}
```
{% endtab %}

{% tab title="400" %}
```json
{
  "error": "Invalid request"
}
```
{% endtab %}
{% endtabs %}
