mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-29 05:07:43 +00:00
1.6 KiB
1.6 KiB
# SimpleTrader
Table of Contents
SimpleTrader
class SimpleTrader(Trader)
A simple trader that places trades.
place_trade
async def place_trade(*, order_type: OrderType, sl: float, parameters: dict = None)
Places a trade based on the order_type and a given stop_loss. The volume is based on the amount to risk which is calculated using the Risk Assessment Management instance.
Parameters:
| Name | Type | Description |
|---|---|---|
order_type |
OrderType | The order_type |
sl |
float | The stop_loss |
parameters |
dict | Parameters associated with the trade |