# Trade objects not received with C#

**URL:** <https://forum.alpaca.markets/t/trade-objects-not-received-with-c/17811>\
**Category:** Tutorial Requests\
**Created:** [September 15, 2025, 7:45pm UTC](https://forum.alpaca.markets/t/trade-objects-not-received-with-c/17811 "2025-09-15T19:45:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kniyotai](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/kniyotai/32/7173_2.png) [@kniyotai](https://forum.alpaca.markets/u/kniyotai)\
**Post date:** [September 15, 2025, 7:45pm UTC](https://forum.alpaca.markets/t/trade-objects-not-received-with-c/17811/1 "2025-09-15T19:45:18Z")

</div>

Hi, I’m able to receive trades with alpaca-py but not with .Net C# using same key and secret,

reduced it to the simplest test:

using System;

using System.Threading.Tasks;

using Alpaca.Markets;

class Program

{

```
private const string API_KEY = "\ _________ MY_KEY";

private const string API_SECRET = "\ _______ MY_SECRET";

static async Task Main()

{

    var client = Environments.Paper.GetAlpacaDataStreamingClient(new SecretKey(API_KEY, API_SECRET));

    var tradeSubscription = client.GetTradeSubscription("SPY"); // Replace with your desired symbol

    tradeSubscription.Received += trade =>

    {

        Console.WriteLine($"Trade: {trade.Symbol} @ {trade.Price} x {trade.Size}");

    };

    await client.ConnectAsync();

    await client.SubscribeAsync(tradeSubscription);

    Console.WriteLine("Streaming live trades... Press Enter to exit.");

    Console.ReadLine();

    await client.DisconnectAsync();

}

```

}

what am i doing wrong?

Thank you
