Is Alpaca FIFO or LIFO?

Hi!

I was wondering which share of stock alpaca decides to sell.

Ex: if I bought AAPL 3 days ago and 2 days ago, if I sell 1 share of AAPL today, which share would be sold?

Gracias

Hola!

For this particular question, could you please email support@alpaca.markets? The professional team will answer to you.

Yes thank you!

I have the same question, can you share the reply on the forum please.
Thanks

Evan said “Our clearing broker uses average cost, as opposed to FIFO or LIFO, as the basis from which to determine your gain or loss amount.”

Its in the portfolio object when you buy the stock it shows avg_price, that is how I determine when the positions will be profitable.