LithosDocs
ProtocolPayoutsTokenStatsDocs
Start mining
Documentation home
Protocol
  • Lithos Protocol
  • LFSM
    • Rollups
    • NISPs
    • Emissions
    • Mining on Lithos
    • Candidate building
    • Ergo Voting
  • LithosDex
    • Choosing a pool
    • Trading with orders
    • Providing liquidity
    • Creating a pool
    • Difficulty forwards
    • SigmaFi bonds
Run Lithos
  • Startup guide
    • Setting up an Ergo 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
    • Renting hashrate into Lithos
    • Checking your wallet
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
    • getThis wallet's lending earnings
    • getLocal mining activity
    • getCollateral market snapshot
    • getList queue boxes
    • getList the active set
    • getPermit price history
    • getYour lending status
    • postQuote joining the queue
    • postJoin the collateral queue
    • getLithosDex pool state
    • getEvery LithosDex pool
    • getOne LithosDex pool and its vault
    • getList your outstanding orders on any pool
    • postQuote a direct swap on any pool
    • postSwap directly on any pool
    • postQuote a direct deposit on any pool
    • postDeposit directly on any pool
    • postQuote a direct redemption on any pool
    • postRedeem a provision directly on any pool
    • getList your provisions on any pool
    • postClaim a provision's fees on any pool
    • postCheck a flush on any pool
    • postFlush any pool
    • getA verified pool's price history
    • getA verified pool's fee history
    • getA verified pool's recent activity
    • getA provision's fee history on a verified pool
    • postQuote a new LithosDex pool
    • postCreate a LithosDex pool
    • postQuote a swap order on any pool
    • postPlace a swap order on any pool
    • postQuote a deposit order on any pool
    • postPlace a deposit order on any pool
    • postQuote a redeem order on any pool
    • postPlace a redeem order on any pool
    • 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
    • postLook up provision NFTs
    • 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
    • getDifficulty accumulator and the next epoch's difficulty
    • getList open offers
    • postCreate an offer
    • postQuote an offer
    • postQuote filling an offer
    • postFill an offer
    • postQuote cancelling an offer
    • postCancel an offer
    • getThe whole market
    • getYour settled positions and closed offers
    • getList your positions and offers
    • postQuote settling a position
    • postSettle a position
    • getList open orders
    • postCreate an order
    • postQuote an order
    • postQuote cancelling an order
    • postCancel an order
    • postQuote filling an order
    • postFill an order
    • getList live bonds
    • postQuote repaying a bond
    • postRepay a bond
    • postQuote liquidating a bond
    • postLiquidate a bond
    • postQuote a claim
    • postClaim a settled bond
    • postLook up bond assets
    • getThis wallet in SigmaFi
    • getList configured oracle feeds
    • getCurrent oracle state and recent confirmed history
    • getWallet balances
    • getYour block rewards
    • postClaim unlocked block rewards
    • getVerified tokens
    • getArb stake
    • postReclaim the arb stake
    • 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
  • Difficulty forwards
  • Client API
  • Failure modes
Network
  • Live stats
  • Public stats API
  • Ergo Platform↗
  • SOAT Miner↗
Community
  • Telegram↗
  • X / Twitter↗
  • GitHub↗
Lithos
© 2026 Lithos Protocol. The Lithos client, its contracts and Lithos Launcher are open source under CC0.λίθος — 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, choose the pool in the header, then open 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 which side you sell.
  4. Choose a Slippage allowance. The interface turns it into the Minimum received written into your order.
  5. On an unverified pool, tick I understand this pool is not on the verified list.
  6. Check the quote, then select Place order.

Choosing a pool explains the verified list and why the client asks.

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 on the chosen pool, 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 a pool, and placing deposits and redemptions as orders.
  • Choosing a pool: the badges on other pools, and what the client checks.
  • LithosDex overview: how the price and fees work.
Edit this page on GitHubsynced from aa061a5
← PreviousChoosing a poolNext →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