All accounts in QuantInfra are multi-currency and multi-instrument.
When creating an account, its base currency must be selected. When the account equity is calculated at the end of the day, all position and cash balance values will be converted to the account currency.
Cash balance includes:
Balance operations are used to adjust an account's cash balance. They can be created manually in the Control Panel. For brokers that allow downloading the balance operations history (e.g., Binance), the operations are downloaded automatically.
Creating a balance operation manually allows specifying 3 flags:
| Flag | Description |
|---|---|
| AffectsBalance | Default = yes |
| Indicates whether the operation will change the balance of the account | |
| AffectsPnL | Default = no |
| Indicates whether the operation must be added to the PnL. | |
| For automatically downloaded funding payments is set to yes. | |
| AffectsInvestment | Default = yes |
| Indicates whether the operation will change the investment | |
| For automatically downloaded funding payments is set to no. |
One of the platform's concepts is that strategies must trade with a leverage of 1, where leverage is calculated as the position value divided by the investment.
This allows:
When some strategies are added to a book, and there is a fund account connected to this book, investment helps to automate allocations to particular strategies: