# Getting crypto symbols, but only want stocks

**URL:** <https://forum.alpaca.markets/t/getting-crypto-symbols-but-only-want-stocks/10410>\
**Category:** Alpaca Market Data\
**Created:** [August 23, 2022, 2:17pm UTC](https://forum.alpaca.markets/t/getting-crypto-symbols-but-only-want-stocks/10410 "2022-08-23T14:17:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamic3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dynamic3/32/1646_2.png) [@dynamic3](https://forum.alpaca.markets/u/dynamic3)\
**Post date:** [August 23, 2022, 2:17pm UTC](https://forum.alpaca.markets/t/getting-crypto-symbols-but-only-want-stocks/10410/1 "2022-08-23T14:17:20Z")

</div>

Getting crypto symbols, when not requesting crypto symbols.

> AssetsRequest assetRequest = new AssetsRequest() { AssetStatus = AssetStatus.Active };

I thought the default behavior was UsEquity? How to query for only stock symbols (non-crypto) ? AssetClass property not exposed on AssetsRequest.

Thanks

---

<div class="post-metadata">

**Author:** ![oleg.rakhmatulin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/oleg.rakhmatulin/32/559_2.png) [@oleg.rakhmatulin](https://forum.alpaca.markets/u/oleg.rakhmatulin)\
**Post date:** [August 27, 2022, 1:43pm UTC](https://forum.alpaca.markets/t/getting-crypto-symbols-but-only-want-stocks/10410/2 "2022-08-27T13:43:34Z")

</div>

Sorry for the delayed answer. I assume that you are using the .NET SDK for connecting to Alpaca from the C# code, right? In this case, just use the `AssetClass` property of the `AssetRequest` class.

I’m checking this forum only time-to-time. If you’ll have any other issues/questions related to Alpaca .NET SDK, use the [GitHub](https://github.com/alpacahq/alpaca-trade-api-csharp/issues) issues for faster turnaround.

---

<div class="post-metadata">

**Author:** ![dynamic3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dynamic3/32/1646_2.png) [@dynamic3](https://forum.alpaca.markets/u/dynamic3)\
**Post date:** [September 9, 2022, 8:35pm UTC](https://forum.alpaca.markets/t/getting-crypto-symbols-but-only-want-stocks/10410/3 "2022-09-09T20:35:24Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/alp/original/2X/b/b0133ae232022df3e0d5e911a35fb2ae003621df.png)

Where is the AssetClass property? This is the latest C# SDK.

It seems every few months something changes that completely breaks the normal functionality.

---

<div class="post-metadata">

**Author:** ![oleg.rakhmatulin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/oleg.rakhmatulin/32/559_2.png) [@oleg.rakhmatulin](https://forum.alpaca.markets/u/oleg.rakhmatulin)\
**Post date:** [September 10, 2022, 5:34pm UTC](https://forum.alpaca.markets/t/getting-crypto-symbols-but-only-want-stocks/10410/4 "2022-09-10T17:34:55Z")

</div>

I don’t know why your IDE doesn’t display it (maybe because property name and type are equal and your settings prevent displaying types). This property exists starting from version 3.6.0 and is used in many samples/tests.

You can see the example that demonstrates all 3 available properties of the `AssetsRequest` class in the [tests source code](https://github.com/alpacahq/alpaca-trade-api-csharp/blob/6f6ff9ad278d42474c94bd46217249ade3f53302/Alpaca.Markets.Tests/AlpacaTradingClientTest.Assets.cs#L28-L33) on GitHub.
