Time in force
The Time in force says how long the order stays active before it fills or is canceled. Leave it on Strategy default to use the time in force the strategy sets, which is gtc or day depending on the broker and the order. In a signal's JSON the field is timeInForce.
day: good for the trading day.gtc: good until canceled.gtd: good until a date, with brokers that support it.opg: market or limit on the open.cls: market or limit on the close.ioc: immediate or cancel.fok: fill or kill (the whole order at once, or canceled).
If the broker does not support the one you choose, TradersPost falls back to the strategy's time in force. Signal values are used only when they are allowed for it (Allow signal override, or the global Signal overrides).
Each value in a signal's JSON:
Day:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"timeInForce": "day"
}
Good until canceled:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"timeInForce": "gtc"
}
Good until date:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"timeInForce": "gtd"
}
On the open:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"timeInForce": "opg"
}
On the close:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"timeInForce": "cls"
}
Immediate or cancel:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"timeInForce": "ioc"
}
Fill or kill:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"timeInForce": "fok"
}
Ready to put Time in force to work?
Free 7-day trial
Set-up in 3 minutes
Paper account for testing
By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.