Processing status
Transactions and portfolios now return a status field, so you can tell whether position and metric calculations already reflect the transactions you created or edited.
The field takes the values PROCESSING, COMPLETED or INVALID and is returned by the following endpoints:
- Transactions: Create Transaction, List Transactions and Read Transaction by ID.
- Portfolios: Read Portfolio by ID.
Right after a transaction is created or edited, its status is PROCESSING while Gorila performs the calculations and checks. Once they are done, the status changes to COMPLETED. A portfolio becomes COMPLETED when all of its transactions have been processed. Before querying a portfolio's metrics, check that its status is already COMPLETED.
Learn more in Transaction and Portfolio.