Okay, so my question is how do I get the following request to print existing closed orders.
I’m not sure what to put in the console.writeline(); argument. This is what I have so far(paper account):
public static async Task ExistingOrders()
{
//API connection
var client = Environments.Paper.GetAlpacaTradingClient(new SecretKey(KEY_ID, SECRET_KEY));
// Get closed orders
var closedOrders1 = await client.ListOrdersAsync(new ListOrdersRequest
{
LimitOrderNumber = 100,
OrderStatusFilter = OrderStatusFilter.Closed
}
);
Console.Read();
Console.WriteLine(); <-- how do I get it to print the last 100 orders?
Any help is appreciated. Thank you!