libreDEX
Last updated
Was this helpful?
Last updated
Was this helpful?
libreDEX is a fully on-chain smart contract decentralized exchange (DEX) on the Libre blockchain with near-instant finality for trading BTC/USDT pairs.
libreDEX functions essentially as a decentralized version of Binance, where anyone with a Libre account can place bids and offers into the orderbook using wrapped Bitcoin and Tether. This creates a permissionless trading environment with full on-chain transparency.
Fully On-Chain: All trades and orders are executed and settled directly on the Libre blockchain
Near-Instant Finality: Transactions confirm quickly thanks to Libre's 0.5 second block time
Limit and Market Orders: Support for both advanced and basic trading strategies
Integration with Liquidation Engine: Provides market liquidity for the loan system
Full DEX Interface: - Complete trading interface with limit and market orders
Simple Swap Interface: - Streamlined interface for quick market orders
libreDEX plays a critical role in Libre's lending ecosystem:
When a loan faces liquidation, the system automatically wraps the bitcoin collateral
The wrapped bitcoin is then traded on libreDEX to recover the loan value
This creates opportunities for traders to purchase liquidated assets at approximately 1% below current market rates
Traders can monitor the DEX for these liquidation events to potentially profit from the discounted BTC
API Access: Developers can access the DEX data directly by querying the dex.libre
smart contract tables:
Available on both mainnet and testnet
Use the get_table_rows
API method to retrieve current orders, trades, and other data
Self-hosting options available for high-frequency monitoring
Developers can integrate with libreDEX through the Libre blockchain API. Key endpoints include:
Order placement and cancellation
Market data retrieval
Trade history
Liquidity information
Orderbook and Tables: provides tools to view the current state of the orderbook and other relevant data
For detailed API documentation, refer to the .