# WunderTrading (previously WunderBit)

### Step 1

First, you need to register for [WunderTrading](https://wundertrading.com/en/trader/register?ref=wbt9d3eba9c), you can use the free plan with 2 bots running.

For this tutorial, I created a new account and you will also get a 7-day free trial for the Pro plan.

### Step 2

When you log in for the first time, you should see the following screen and click on the "Connect Exchange" button.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FhIHOTIjwaQKHjnUTGyTK%2FConnectExchange.png?alt=media&#x26;token=4b3eb50a-738d-4f40-b2ca-e33828c75ac6" alt=""><figcaption></figcaption></figure>

### Step 3

Open [Binance](https://accounts.binance.com/en/register?ref=CLD2A3JM) on a new page and log in, for this tutorial we are going to use [Binance](https://accounts.binance.com/en/register?ref=CLD2A3JM), but you can check the supported exchanges [here.](https://help.wundertrading.com/en/articles/5521153-supported-exchanges)

### Step 4

Next, click on the profile picture in the top right corner of the page and choose the "API Management" option.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2Fk4w45uZ65B7hsehARf4l%2FAPIManagement.png?alt=media&#x26;token=92e80d0a-3645-45c0-a0f2-2ae319795d51" alt=""><figcaption></figcaption></figure>

### Step 5

Click "Create API" and choose the "System Generated Key Type." Then add a name to the API.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2F8ts8wInTepnzotvL0WCG%2FcreateAPI.png?alt=media&#x26;token=a84037dc-f730-4097-a544-32c2120ac08e" alt=""><figcaption></figcaption></figure>

### Step 6

Click "Edit Restrictions" in the top right corner.

{% hint style="info" %}
Please be aware that you have to use "Restrict Access to Trusted IPs Only" so that you can enable Spot & Margin Trading. Add the following IP addresses:
{% endhint %}

```
3.122.50.188
18.192.238.182
3.72.69.97
3.73.237.113
```

These are the IP addresses that Wunderbit uses for spot trading. You can check the others [here.](https://help.wundertrading.com/en/articles/6866348-binance-ip-whitelisting)

After that, click the "Save" button.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FhuuAFOedEfJ44sGuucjR%2FapiSettings.png?alt=media&#x26;token=c0b2c760-ec36-4be0-9780-234e6dd7fd1c" alt=""><figcaption></figcaption></figure>

### Step 7

Now you can go back to WunderTrading, choose your exchange API key and API secret, and then click "Add."

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FOeL4KDFaSyhLlA7mCGqs%2FaddApiKey.png?alt=media&#x26;token=a4573542-4c8a-463a-b607-29931e6affd0" alt=""><figcaption></figcaption></figure>

After that, click on "My Bots" and then "Add New."

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2F1sMyp9PuF240cSb6xLQJ%2Fmybots.png?alt=media&#x26;token=f9e6b1b2-ff7e-42a5-8032-ef498d358f2d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can copy the settings from below. Please be aware that these are not the recommended settings, as they should be adjusted to your preferred strategy.
{% endhint %}

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2F2VcbBptZWgklZ3JQYztZ%2Fsettings1.png?alt=media&#x26;token=44a9aee8-a7ae-4530-b3e5-260cc29ce446" alt=""><figcaption></figcaption></figure>

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2Fsl2FkRDLXhfERXYwjvAB%2Fsettings2.png?alt=media&#x26;token=acff0a04-eb9c-4dbb-a9d5-e05904e4489f" alt=""><figcaption></figcaption></figure>

### Step 8

Open Tradingview in a new tab, set the trading pair and timeframe, and add one of our PREMIUM scripts to the chart. Open the script settings, then scroll down to the "Automation" part.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FcZDxr8Usy4meqeuivTPB%2Fenter3CommasShits.png?alt=media&#x26;token=63b188ee-6aac-441a-b684-8df4b872d12a" alt=""><figcaption></figcaption></figure>

You can see the values that you have to enter here in the WunderTrading tab.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2F59tkL2PEAH8YO7ukfU3D%2Fvalues.png?alt=media&#x26;token=31dd5151-2192-4fe5-8829-bcc367ffcf57" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you don't want the script to enter short trades, you can leave that textfield as the default value.
{% endhint %}

Click "OK" to finalize the settings.

### Step 9

Click on the "Alerts" tab in the top right corner.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FE1IdLBYEduGKpquPxYW0%2FclickAlertsButton.png?alt=media&#x26;token=fd4918ae-817c-4ae7-bbe5-75892bd911e0" alt=""><figcaption></figcaption></figure>

Click on the "Alerts Plus" button.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FgQyYiDtNXq0CTzCHr0sM%2FclickAlertPlusButton.png?alt=media&#x26;token=202edd21-35ca-4aa3-93f0-0c753dbbf134" alt=""><figcaption></figcaption></figure>

The conditions should be set to your chosen strategy (in this case, it is our Triple EMA strategy).

Set an expiration date for how long you want to use the strategy.

Allow "Show Pop-up".

Allow Webhook URL, to the textbox, insert the following URL:

<https://wundertrading.com/bot/exchange>

{% hint style="info" %}
Note that with Tradingview's free version, you can't allow webhook URLs.
{% endhint %}

For the message part, add the following line:

```
{{strategy.order.comment}}
```

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2F8RIvg2rGJRWjQVvMPjN2%2FswitchToTheConditions.png?alt=media&#x26;token=80f2a358-b224-440f-b0c4-936ba9bbe940" alt=""><figcaption></figcaption></figure>

Click "Create" button, and after a few seconds, you should see the alert created.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2FLCj4lmaN155hVVgTCBz6%2FFinal.png?alt=media&#x26;token=9e298eea-5f1d-491d-9d26-748ce594af6e" alt=""><figcaption></figcaption></figure>

### Step 10

The last step is to go back to WunderTrading and click the "Create Bot" button.

<figure><img src="https://381029026-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJJzXIMzMJVgtuzlErO6%2Fuploads%2F09XbdTykiUUn9keTrA6R%2Ffinish.png?alt=media&#x26;token=225215d2-0b19-4f57-aaae-83f26dcafdb2" alt=""><figcaption></figcaption></figure>

**Congratulations! You now have a running script.**
