nautechsystems / nautilus_trader

A high-performance algorithmic trading platform and event-driven backtester
https://nautilustrader.io
GNU Lesser General Public License v3.0
1.71k stars 402 forks source link

Fix sandbox account initialization #1613

Closed davidsblom closed 2 months ago

davidsblom commented 2 months ago

…ation

Pull Request

The account is initialized when creating a new SandboxExecutionClient. The account is needed in the strategy to set the leverage and determine if a margin or cash account is used.

Type of change

Delete options that are not relevant.

How has this change been tested?

Locally using the sandbox with the bybit data feed.