Is the C# wrapper dead?

I’m having troubles and considering switching to another API. Curious about options. I have no understanding of the massive files included in the wrapper and how they interact. I just pretty much click “run” and can manipulate market data and trades to my liking based off the existing functions.

The trouble I’m having is the callback function HandleTradeUpdate() which sometimes doesn’t get called (I’ll assume because my computer is either too slow or the code can’t handle multiple callbacks at once). This messes everything up.

I’ve spent 2 years using the wrapper and learning to code in C# and have watched as it was slowly pushed aside here. I just wonder if it’s worth bothering with or just find something with a little more support and convert 15k lines of code over now instead of later.

Looks like the last updates were 3 months ago, so this is a reasonable question for the Alpaca team.

@grathan @Bobrot The official Alpaca C# SDK is alive and well. The repository can be found here on github and was last updated on September 22.

What type of issues are you having? Specifically when you say “I currently have an issue with the way trades execute”.

Regarding support, I’d encourage you to join the Alpaca community slack workspace. There are a number of engaged members there who may be able to provide insight. Here is a link to join. Something to be aware of is the C# SDK is used by about 5% of Alpaca traders. Compare that to Python, Node.js, and Go, which are used by 70%, 15% and 10% of traders respectively.

The issues I’m having center around the call back from the Alpaca server when it accomplishes something. The function that handles that times out the in wrapper and the information of something being accomplished never gets passed along. I don’t know if it’s on Alpacas side or if my computer is too slow, since it’s getting worse I’ll assume my code is too slow and I need to figure out a way to handle the callback asynchronously. This would be a pretty big undertaking for me because I am just learning to code and I haven’t quite wrapped my head around how to approach this.

I did dig up an old thread on Slack as well that you once replied on if you would rather answer there. Slack ,thanks

if you look at the code here:

they made all of the functions async except the one that handles trade updates..

OK, it may have been as simple as changing the function to async. 2 lines of code if it helps anyone in the future.

//private void HandleTradeUpdate(ITradeUpdate trade)
private async void HandleTradeUpdate(ITradeUpdate trade)
{
    await Task.Delay(0);
1 Like