# C# coding example not working

**URL:** https://forum.alpaca.markets/t/c-coding-example-not-working/11224
**Category:** Getting Started with Alpaca
**Created:** [December 3, 2022, 10:41pm UTC](https://forum.alpaca.markets/t/c-coding-example-not-working/11224 "2022-12-03T22:41:08Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Mike\_Lavoo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/mike_lavoo/32/4887_2.png) [@Mike\_Lavoo](https://forum.alpaca.markets/u/Mike_Lavoo)
#### Post date: [December 31, 2022, 2:29pm UTC](https://forum.alpaca.markets/t/c-coding-example-not-working/11224/7 "2022-12-31T14:29:19Z")

</div>

In the `MeanReversionBrokerage` class it shows getting bar data for a single ticker:

```
       var barSubscription = client3.GetMinuteBarSubscription("symbol");

```

If I had the list from above nasdaqAssets, could I send that to GetMinuteBarSubscription(nasdaqAssets)?

I don’t quite follow what you mean in the older post here:

> [@GetMinuteBarSubscription](https://forum.alpaca.markets/t/getminutebarsubscription/7349/4):
>
> If you need the minute bars for ALL active symbols just use the GetMinuteBarSubscription method without parameters. If you want to subscribe to some set of contracts just use the latest SDK version (some previous have a bug related to mass subscription) or use Extensions package that provides helper methods for creating a single subscription for array (or IEnumerable\<String\>) or symbols.

---

_[View the full topic](https://forum.alpaca.markets/t/c-coding-example-not-working/11224)._
