Good Till Canceled (gtc)
gtc time in force policy keeps a limit order open until it is either filled or manually canceled by the trader.Characteristics:
gtc order remains active on the order book until it is executed or canceled.gtc is assumed.import { TimeInForce, OrderType } from '@kumabid/kuma-sdk';
authenticatedClient.createOrder({
type: OrderType.limit,
timeInForce: TimeInForce.gtc,
// ... other limit order parameters
});
Good Til Crossing (gtx)
gtx time in force policy ensures that a limit order will only execute if it does not immediately match with an existing order.gtx is particularly useful for traders who wish to avoid paying taker fees.Characteristics:
gtx order is rejected if it would immediately match with an existing order upon submission.import { TimeInForce, OrderType } from '@kumabid/kuma-sdk';
authenticatedClient.createOrder({
type: OrderType.limit,
timeInForce: TimeInForce.gtx,
// ... other limit order parameters
});
Immediate Or Cancel (ioc)
ioc time in force policy is used for limit orders that should be executed immediately.Characteristics:
ioc order attempts to fill immediately upon placement.ioc orders do not become resting orders on the book, preventing any residual market impact.import { TimeInForce, OrderType } from '@kumabid/kuma-sdk';
authenticatedClient.createOrder({
type: OrderType.limit,
timeInForce: TimeInForce.ioc,
// ... other limit order parameters
});
Fill Or Kill (fok)
fok time in force policy requires that a limit order be filled in its entirety immediately upon placement or not at all.fok orders are particularly useful for large orders that could be subject to price slippage if executed in smaller increments.fok orders must specify the SelfTradePrevention.cn (Cancel Newest)
selfTradePrevention policy.Characteristics:
fok order must be completely filled with a single transaction or it is entirely canceled.import { TimeInForce, OrderType } from '@kumabid/kuma-sdk';
authenticatedClient.createOrder({
type: OrderType.limit,
timeInForce: TimeInForce.fok,
// ... other limit order parameters
});
foktime in force policy requires that the selfTradePrevention parameter is set to cn (Cancel Newest)
Time in force policies specify the behavior of a limit order upon execution.
See