# Markets

In Multi Markets Strategy, Markets is a property of type [`Market[]`](/framework-documentation/untitled/properties/market.md) containing all the selected markets. You can access a concrete market with array index operator - `Markets[0]` for first selected market, `Markets[1]` for second etc. as you can see in the editor's sidebar.

![](/files/-LmyU7HGC1-fAnL--SzX)

{% tabs %}
{% tab title="Basic example" %}

```csharp
// Write current price of the first market in the list of selected markets to the logs
Log("Current price of " + Markets[0].Asset + " on " + Markets[0].Exchange + ": " + Markets[0].CurrentPrice);

// Write current price of the second market in the list of selected markets to the logs
Log("Current price of " + Markets[1].Asset + " on " + Markets[1].Exchange + ": " + Markets[1].CurrentPrice);
```

{% endtab %}

{% tab title="Complete example" %}

```csharp
using Signals.DataSeries.Bars;
using Signals.Framework;
using Signals.Indicators.SMA;

public class MyStrategy : MultiMarketsStrategy
{
    private Bars hourlyBarsFirstAsset;
    private Bars hourlyBarsSecondAsset;

    private Market firstMarket;
    private Market secondMarket;

    public override void Setup(DataMarketplace data, IndicatorsMarketplace indicators)
    {
        firstMarket = Markets[0];
        secondMarket = Markets[1];

        hourlyBarsFirstAsset = data.Bars(BarPeriodType.Hour, 1).OnMarket(firstMarket).WithOffset(25);
        hourlyBarsSecondAsset = data.Bars(BarPeriodType.Hour, 1).OnMarket(secondMarket).WithOffset(25);
    }

    public override void RegisterActions()
    {
        OnUpdateOf(hourlyBarsFirstAsset).Do(() =>
        {
            Log("Current price of " + firstMarket.Asset + " on " + firstMarket.Exchange + ": " + firstMarket.CurrentPrice);
        });

        OnUpdateOf(hourlyBarsSecondAsset).Do(() =>
        {
            Log("Current price of " + secondMarket.Asset + " on " + secondMarket.Exchange + ": " + secondMarket.CurrentPrice);
        });
    }
}
```

{% 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://help.signals.network/framework-documentation/untitled/properties/markets.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.
