# Events

All events published by the Currency plugin through `SparkEventBus`.

| Event                      | Properties                                                                                     | Description                          |
| -------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------ |
| `CurrencyAddedEvent`       | `WalletId`, `EntityId`, `CurrencyId`, `Amount`, `NewTotal`                                     | Currency added to a wallet           |
| `CurrencyRemovedEvent`     | `WalletId`, `EntityId`, `CurrencyId`, `Amount`, `NewTotal`                                     | Currency removed from a wallet       |
| `CurrencySetEvent`         | `WalletId`, `EntityId`, `CurrencyId`, `OldAmount`, `NewAmount`                                 | Currency amount directly set         |
| `CurrencyConvertedEvent`   | `WalletId`, `EntityId`, `SourceCurrencyId`, `TargetCurrencyId`, `SourceAmount`, `TargetAmount` | Currency converted via exchange rate |
| `CurrencyTransferredEvent` | `SourceWalletId`, `TargetWalletId`, `SourceEntityId`, `TargetEntityId`, `CurrencyId`, `Amount` | Currency transferred between wallets |
| `WalletCreatedEvent`       | `WalletId`, `EntityId`                                                                         | New wallet instance created          |
| `WalletDestroyedEvent`     | `WalletId`, `EntityId`                                                                         | Wallet instance destroyed            |

See [Event System](/documentation/developer-guide/core-systems/event-system.md) for full details on subscribing, publishing, and handling events.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sparkframework.dev/documentation/developer-guide/plugins/currency/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
