LithosDocs
ProtocolPayoutsTokenStatsDocs
Start mining
Documentation home
Protocol
  • Lithos Protocol
  • LFSM
    • Rollups
    • NISPs
    • Emissions
    • Mining on Lithos
    • Candidate building
    • Ergo Voting
  • LithosDex
    • Trading with orders
    • Providing liquidity
Run Lithos
  • Startup guide
    • Setting up an Ergo testnet node
  • Configuration
    • Node connection and security
    • Stratum and difficulty
    • Block packages
    • Batching and orders
    • Collateral and emission
    • Wallet and consolidation
    • Statistics and web panels
    • Synchronization and storage
    • Tasks and dispatchers
    • Failure modes
    • Reporting issues
Client API
  • Overview
    • getLithos client information
    • getList UTXO ids for blocks
    • getUTXO ids by block height
    • getBlock info by UTXO id
    • postBlock info for multiple UTXO ids
    • getGet a block's miner set
    • getList all pool blocks
    • getGet Lithos payouts
    • getStatistics overview
    • getMining and payment totals
    • getMining statistics by hour or day
    • getEstimate Lithos hashrate
    • getNetwork difficulty by epoch
    • getThis client's own hashrate
    • getThis client's hashrate over time
    • getThis client's payouts and claims
    • getCollateral inventory
    • getLocal mining activity
    • getCollateral market snapshot
    • getList queue boxes
    • getList the active set
    • getPermit price history
    • getYour locked block rewards
    • postClaim unlocked block rewards
    • postQuote joining the queue
    • postJoin the collateral queue
    • getLithosDex pool state
    • getLithosDex fee vault state
    • getList your outstanding orders
    • postQuote a swap order
    • postPlace a swap order
    • postQuote a deposit order
    • postPlace a deposit order
    • postQuote a redeem order
    • postPlace a redeem order
    • postCancel an order
    • postQuote a swap
    • postQuote a swap by desired output
    • postExecute a swap
    • postQuote a liquidity deposit
    • postDeposit liquidity
    • postQuote a liquidity redemption
    • postRedeem liquidity
    • getList liquidity provisions
    • postClaim settled fees for a provision
    • postQuote a provision resize
    • postResize a provision
    • postCheck a pending fee flush
    • postFlush pending fees to the vault
    • getPool-wide fee history
    • getPool price history
    • getRecent pool activity
    • getFee history for one provision
    • getWallet balances and lending status
    • getGet Stratum information
    • getGet candidate settings
    • getGet difficulty commitment
    • postCommit a difficulty
    • getGet best NISP at height
Lithos

A decentralized mining pool protocol on Ergo. Miners build their own blocks; contracts pay them for proven work.

Live on Ergo mainnet
Protocol
  • How Lithos works
  • Mining on Lithos
  • NISPs
  • Emissions
  • LFSM contracts
Run Lithos
  • Startup guide
  • Configuration
  • LithosDex
  • Client API
  • Failure modes
Network
  • Live stats
  • Public stats API
  • Ergo Platform↗
  • SOAT Miner↗
Community
  • Telegram↗
  • X / Twitter↗
  • GitHub↗
Lithos
© 2026 Lithos Protocol. Open source under the MIT licence.λίθος — stone
Docs/Protocol/LithosDex

Trading with orders

Placing a LithosDex order, what it locks and pays, following it until it fills, and cancelling it.

Standard4 min readFor anyone trading on LithosDex. Read the LithosDex overview first if you have not.

An order is how you trade on LithosDex without racing anyone for the pool. This page covers placing an order from the web interface, what it costs, how to follow it, and how to cancel it. Deposits and redemptions can be placed as orders too, and Providing liquidity covers what is particular to them.

What an order is#

An order is a box on Ergo that holds the funds you are trading and states your terms. Its contract lets exactly two things happen to it:

  • A miner fills it. The miner trades your funds against the pool, and the contract requires you to receive at least your minimum. The miner keeps the executor fee and nothing else.
  • You cancel it. Only your key can spend it this way, and your funds come back to you.

Nobody else can move the funds, and there is no time limit. An order that is never filled waits until you cancel it.

Placing a swap order#

To place a swap order from the web interface, follow these steps:

  1. Open LithosDex, then the Swap tab.
  2. Check that Use orders is on.
  3. Enter the amount you want to trade. Use the arrow between the two fields to switch between buying and selling LIT.
  4. Choose a Slippage allowance. The interface turns it into the Minimum received written into your order.
  5. Check the quote, then select Place order.

The order is placed by an ordinary transaction from your node wallet. It appears under Your orders as soon as the client has sent it.

Choosing your slippage#

Your minimum is the only protection your order carries against the pool moving before it fills. Other trades in the same block can move the price in either direction, so:

  • Too tight and a small move leaves your order unfillable. It then waits until the price comes back, or until you cancel it.
  • Too loose and your order fills at a worse price than you needed to accept.

The fill is always at the pool's actual price at that moment. The minimum is a floor, not a target, so a looser allowance does not by itself make your trade worse.

What an order costs and locks#

The quote lists what the order needs:

LineWhat it isWhen you pay it
Executor feeWhat the miner who fills your order keeps. 0.003 ERG by defaultOnly when the order fills
Network feeThe fee on the transaction that places the orderWhen you place it
Total lockedYour trade amount plus the executor fee, held in the order boxReturned in full if you cancel

A cancelled order pays no executor fee. Cancelling is a transaction of its own, so it pays an ordinary network fee.

Changing the default fees#

The executor fee and the most of it a miner may spend on network fees come from lithosdex.orders in your configuration. You can also set them for your own orders under Settings, with Custom order fees. See Batching and orders for both.

Lowering the executor fee can leave your order unfilled. Miners skip orders paying less than their own minimum. The default is set to clear every miner running this client with its shipped settings.

Following an order#

Your orders lists every outstanding order your wallet owns, with one of the following statuses:

StatusWhat it meansCan you cancel?
PlacingThe transaction that places it has not confirmed yetYes
OpenOn chain and waiting for a minerYes
FillingA transaction filling it is waiting to confirmNo
CancellingYour cancel is waiting to confirmNo

An open order marked Waiting for price cannot fill against the pool as it stands, because the pool's price is past your minimum. It fills if the price returns. Otherwise cancel it and place a new one at the current price.

A filled order disappears from the list. What you received arrives in your node wallet.

Cancelling an order#

Select Cancel next to the order under Your orders. The client sends a transaction that returns the order's funds to your wallet, including the executor fee.

Note
A miner may fill it first

If a miner's fill confirms before your cancel, the order is filled and your cancel fails. You then have the result of the trade rather than your funds back. That trade still met your minimum.

Next steps#

  • Providing liquidity: depositing into the pool, and placing deposits and redemptions as orders.
  • LithosDex overview: how the price and fees work.
Edit this page on GitHubsynced from e0ca86a
← PreviousLithosDexNext →Providing liquidity
On this page
  • What an order is
  • Placing a swap order
  • Choosing your slippage
  • What an order costs and locks
  • Changing the default fees
  • Following an order
  • Cancelling an order
  • Next steps