The Quantity calculation method field controls how entry quantity is calculated. You can set it in your strategy or override it in a webhook by sending quantityType and quantity. Allowed quantityType values:
fixed_quantitydollar_amountrisk_dollar_amountrisk_percentpercent_of_equitypercent_of_positionSame share (or contract) count for every entry.
100 → 100 shares{
"ticker": "AAPL",
"action": "buy",
"quantityType": "fixed_quantity",
"quantity": 100
}
Position size from a target notional dollar amount.
{
"ticker": "AAPL",
"action": "buy",
"quantityType": "dollar_amount",
"quantity": 1000
}
Position sized so max loss equals a fixed dollar amount.
Requires stopLoss.stopPrice in the signal.
{
"ticker": "AAPL",
"action": "buy",
"quantityType": "risk_dollar_amount",
"quantity": 100,
"stopLoss": {
"stopPrice": 90
}
}
Position sized so max loss is a percentage of account equity.
Requires stopLoss.stopPrice in the signal.
{
"ticker": "AAPL",
"action": "buy",
"quantityType": "risk_percent",
"quantity": 0.25,
"stopLoss": {
"stopPrice": 90
}
}
Position size as a percentage of account equity.
{
"ticker": "AAPL",
"action": "buy",
"quantityType": "percent_of_equity",
"quantity": 10
}
Exit a percentage of the current position.
{
"ticker": "AAPL",
"action": "sell",
"quantityType": "percent_of_position",
"quantity": 50
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing