mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-27 20:27:43 +00:00
v4.0.9
This commit is contained in:
@@ -13,6 +13,7 @@ The base class for creating strategies.
|
||||
- [backtest_strategy](#strategy.backtest_strategy)
|
||||
- [trade](#strategy.trade)
|
||||
- [test](#strategy.test)
|
||||
- [initialize](#strategy.initialize)
|
||||
|
||||
|
||||
<a id="strategy.strategy"></a>
|
||||
@@ -134,3 +135,10 @@ Runs the strategy in live mode.
|
||||
async def live_strategy()
|
||||
```
|
||||
Runs the strategy in backtest mode.
|
||||
|
||||
<a id="strategy.initialize"></a>
|
||||
### initialize
|
||||
```python
|
||||
async def initialize()
|
||||
```
|
||||
Initialize a strategy
|
||||
|
||||
+13
-1
@@ -7,6 +7,7 @@ Symbol class for handling a financial instrument.
|
||||
- [symbol_select](#symbol.symbol_select)
|
||||
- [info](#symbol.info)
|
||||
- [initialize](#symbol.initialize)
|
||||
- [initialize_sync](#symbol.initialize_sync)
|
||||
- [book_add](#symbol.book_add)
|
||||
- [book_get](#symbol.book_get)
|
||||
- [book_release](#symbol.book_release)
|
||||
@@ -94,7 +95,7 @@ Get data on the specified financial instrument and update the symbol object prop
|
||||
|
||||
|
||||
<a id="symbol.initialize"></a>
|
||||
### init
|
||||
### initialize
|
||||
```python
|
||||
async def initialize() -> bool
|
||||
```
|
||||
@@ -105,6 +106,17 @@ Initialized the symbol by pulling properties from the terminal
|
||||
|--------|--------------------------------------------------------|
|
||||
| `bool` | Returns True if symbol info was successful initialized |
|
||||
|
||||
<a id="symbol.initialize_sync"></a>
|
||||
### initialize_sync
|
||||
```python
|
||||
def initialize_sync() -> bool
|
||||
```
|
||||
Initialized the symbol by pulling properties from the terminal
|
||||
#### Returns:
|
||||
| Type | Description |
|
||||
|--------|--------------------------------------------------------|
|
||||
| `bool` | Returns True if symbol info was successful initialized |
|
||||
|
||||
|
||||
<a id="symbol.book_add"></a>
|
||||
### book_add
|
||||
|
||||
Reference in New Issue
Block a user