# M.Stock

### 🔗 Adding Static IP to M.Stock Broker

To comply with the latest trading regulations, M.Stock requires you to bind your API credentials to your specific Arrownect Static IP.

#### Step 1: Access the Trading API Portal

1. Log in to the [M.Stock Web Trading Platform](https://trade.mstock.com/).
2. Click on your Profile/Name (located at the top-left corner of the dashboard).
3. From the sidebar/dropdown menu, navigate to Products and select Trading APIs.

   <a class="button secondary"></a>*Alternatively, you may see "Trading APIs" directly in the main menu.*

<figure><img src="/files/jsQEfyFqbcXD0DAVnAE5" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1jAX1DVmxOQjUOgcdL71" alt=""><figcaption></figcaption></figure>

#### Step 2: Edit Your API Configuration

1. In the Trading APIs section, you will see your existing API keys or applications.
2. Select the Generate New API Key button.

<figure><img src="/files/ZU4HUuHRpUpnXFrB4LPb" alt=""><figcaption></figcaption></figure>

#### Enter Connection Details

1. App Name: Give your application a name (e.g., *Arrownect*).
2. Locate the field labeled Static IP or Whitelist IP.
3. Action: Copy your Static IP from the Arrownect "My Servers" section.
4. Paste the IP into the box on the M.Stock portal.

<figure><img src="/files/1qCoV9vRowwkQ8oZKS7B" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ot86gVDkuJ9Lx8Q4IF0i" alt=""><figcaption></figcaption></figure>

#### Step 4: Save & Submit

* Click the Submit (or Update) button.
* Your IP is now updated! M.Stock will now only allow order-related API requests that come from this specific IP.


---

# 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.algomojo.com/algomojo/brokers/static-ip-integration/m.stock.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.
