HELP! Can't find anywhere how to place C# Extended Hours orders

Hello everyone. I need help. Can someone please show me how to write extended hours order in C#?

Example:

var order = await alpacaTradingClient.PostOrderAsync(
side.Limit(symbol, quantity, price)
.WithDuration(TimeInForce.Day)
.StopLoss(stopLossStopPrice: price * 0.93M)
);

await _client.PostOrderAsync(LimitOrder.Buy(symbol, amount, price).WithExtendedHours(true));

1 Like

Jason, thanks a lot, yes, I found this one as well:

var order = await alpacaTradingClient.PostOrderAsync(
side.Limit(symbol, quantity, price)
.WithDuration(TimeInForce.Day)
.WithExtendedHours(true)
.Bracket(stopLossStopPrice: price * 0.95M,
takeProfitLimitPrice: price * 0.94M,
stopLossLimitPrice: price * 1.05M)

              );

For some reason, on some topics there very little as far as examples. Not sure why Alpaca is lacking on it. There could be so much more information…

@MIT_NUTRA Unfortunately, there is only one real .NET SDK maintainer and it’s me. And I’m not an Alpaca employer so I don’t have too much time for documentation. But I try to maintain GitHub Wiki and XML documentation. So try to use them at first, Slack (#dev-csharp and #dev-net channels) as second, and this forum as the last source of information about this SDK.