🍋
LEH (BETA)
  • Welcome to LEH
  • TG & Community
  • Getting Started
  • Health Overview
  • Liquidations
  • Audits
  • Insurance Fund
  • Socialized Losses
  • Perps
  • Settlement
  • Time in Force (TIF)
  • Oracle Peg Orders
  • Bug Bounties
  • Staking
  • Token Vaults
  • Deployers & Launchpad
  • Funding
  • Fees
  • Bots
  • Tokens & Market Overview
  • Token Listings
  • Perps Listings
  • Stable Price
  • Flash Loans
  • LEH Ops
  • Risks
Powered by GitBook
On this page

Time in Force (TIF)

PreviousSettlementNextOracle Peg Orders

Last updated 1 year ago

CtrlK

Time In Force (TIF) orders expire after a set amount of seconds. This provides security and confidence to market makers that stale or mispriced orders will not remain on the order book in the event of network degradation or any other issue.

PerpPlaceOrder accepts an expiryTimestamp input which cancels an order after "n" seconds if it has not been executed.

The time on the validator is used to determine if a TIF order has expired.

When retrieving the current cluster time, be sure to use the "Processed" commitment level.

Solana Explorer reports the cluster time using the "Finalized" commitment level, which is slightly different.

Retrieving the Cluster Time

You can retrieve the current cluster time by using the getBlockTime endpoint.

https://docs.solana.com/developing/clients/jsonrpc-api#getblocktime