Strategy Field

Risk per position

This option dynamically calculates a quantity based on a desired risk amount. For example, if you set the risk per position to $100, the strategy will calculate the quantity based on the entry price and stop loss price so that the total risk of the position is $100.

Buy a quantity of shares that will risk at most $100 in the position. If the price of AAPL is $100 and the stop loss price is $90, the quantity will be 10. If your stop loss is hit, you will lose $100.

{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "risk_per_position",
    "quantity": 100,
    "stopLoss": {
        "stopPrice": 90
    }
}

Ready to automate your trading? Sign up for free today.