get_account_changes
Poll your OANDA account for state changes since a transaction, returning grouped orders/trades/positions and price-dependent snapshot. Use the returned lastTransactionID for incremental updates.
Instructions
Poll the configured account for state changes since a transaction.
Returns {"changes": {...}, "state": {...}, "lastTransactionID": "..."}. changes groups what happened (ordersCreated,
ordersCancelled, ordersFilled, ordersTriggered,
tradesOpened, tradesReduced, tradesClosed, positions,
transactions); state carries the price-dependent snapshot
(account unrealizedPL, NAV, marginUsed, plus per-trade,
per-position, and per-order dynamic state). Feed the returned
lastTransactionID back as since_transaction_id on the next
call. Timestamps are RFC3339; monetary values are decimal strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since_transaction_id | No | Transaction ID to compute changes since (exclusive). Use the lastTransactionID from a previous call to poll incrementally; omitting it returns changes since account creation, which can be very large. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||