Skip to main content

Good After Time (GAT) API

Good After Time orders are time-delayed conditional orders that execute only after a specified timestamp, featuring optional price checking and off-chain buy amount determination.

Key Parameters

ParameterDescription
sellToken / buyTokenThe token pair for the trade
receiverWhere proceeds are sent
sellAmountQuantity of tokens to trade
minSellBalanceBalance threshold preventing duplicate fills
startTime / endTimeUNIX timestamps for order validity window
allowPartialFillSolver flexibility setting
priceCheckerPayloadOptional price validation data
appDataIPFS hash reference

Price Validation

When enabled, the price checker validates that:
buyAmount >= (expectedOut * (MAX_BPS - allowedSlippage)) / MAX_BPS
Where MAX_BPS equals 10,000 basis points.

Error Handling

ErrorCondition
PollTryAtEpochBlock timestamp precedes startTime (“too early”)
OrderNotValidOwner lacks required sellToken balance (“balance insufficient”)
PollTryNextBlockInsufficient expected output given slippage tolerance (“price checker failed”)
The implementation supports flexible buy amounts while maintaining replay protection through balance verification.
Last modified on March 4, 2026