Last Trade API using C#

A few weeks back I got an email about the “Last Trade API”. When I checked the documentation I see the example given as shown below:

“status”: “success”,
“symbol”: “SPY”,
“last”: {
“price”: 286.84,
“size”: 100,
“exchange”: 2,
“cond1”: 12,
“cond2”: 0,
“cond3”: 0,
“cond4”: 0,
“timestamp”: 1588770424970329400

How do I get this information using C#. I didn’t see any actual coding examples. I would like to check the status and price.

Thanks for any help.

Just use the AlpacaDataClient.GetLastTradeAsync method.

Thanks for the info. I will try it.