mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-05 16:27:44 +00:00
2.1 KiB
2.1 KiB
# ScalpTrader
Table of Contents
ScalpTrader
class ScalpTrader(Trader)
Place trades and record them in the trade_record file. Places trade without stop_loss or take_profit.
place_trade
async def place_trade(*, order_type: OrderType, volume: float = None, parameters: dict = None)
``
Places a trade based on the order_type and volume. The volume is optional. If not provided, the minimum volume
for the symbol will be used. This trade is placed without a stop_loss or take_profit. The trade is recorded in the
trade_record file.
#### Parameters:
| Name | Type | Description |
| ---- | ---- | ----------- |
| `order_type` | OrderType | The order_type |
| `volume` | float | The volume to trade |
| `parameters` | dict | Parameters associated with the trade |