> For the complete documentation index, see [llms.txt](https://help.signals.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.signals.network/framework-documentation/untitled/properties/markets.md). Agents can also search and read this documentation through its [MCP server](https://help.signals.network/~gitbook/mcp).

# Markets

Array of Market objects in Multi Market Strategies that reveals information about all selected markets.

In Multi Markets Strategy, Markets is a property of type [`Market[]`](https://help.signals.network/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.

![](https://1280131605-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LL8qCacd77-C_Tcc0xo%2F-LmyQVKV7FFC9OuhKOK6%2F-LmyU7HGC1-fAnL--SzX%2FScreenshot%202019-08-23%2014.38.32.png?alt=media\&token=36234b4e-de8a-4779-a387-6e5db5903e85)

{% 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 %}
