March 12th, 2026

Risk percent

We introduced a new dynamic method for calculating trade quantities, similar to risk amounts, which calculates the amount based on a percentage of your total account equity. Here's an example using 1% of your account equity:

{
    "ticker": "TSLA",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "quantityType": "risk_percent",
    "quantity": 1,
    "stopLoss": {
        "stopPrice": 90
    }
}

For an account equity of $10,000 with a risk percent of 1%, the calculated risk amount would be $100. If entering a trade with a limit price of $100 and a stop loss of $90, it would calculate a quantity of 10.

Cancel by order type

You can now specify an optional cancelOrderType when canceling orders. This filters the cancellation to only orders of a specific type. For example:

{
    "ticker": "TSLA",
    "action": "cancel",
    "cancelOrderType": "stop"
}

In this example, only open TSLA orders classified as stop (stop market) will be canceled.

Last updated

Was this helpful?