Getting new error after deprecated "pattern_day_trader" property

I am utilizing the Alpaca API in C#, and since the update on 7/6 regarding the deprecated PDT properties, I am getting the following error when calling the “GetAccountAsync()” function from an instance of the “Alpaca.Markets.AlpacaTradingClient” class:

Newtonsoft.Json.JsonSerializationException: ‘Required property ‘pattern_day_trader’ not found in JSON. Path ‘’, line 1, position 1103.’

Hi @pflagler we are aware of the issue and we are working on a new release of the alpaca-trade-api-csharp to fix the issue.

1 Like

Good to hear, thanks!

thanks for this.my app has been down all week. thanks

@pflagler @Thang_Cao I just released v7.2.2 please take a look Release SDK 7.2.2 · alpacahq/alpaca-trade-api-csharp · GitHub

2 Likes

It’s working for me now. Thanks again!

1 Like

Got the latest and it works again. much appreciated!

1 Like