Haiko Docs
  • Introducing Haiko
  • Security & Audits
  • protocol
    • Vaults
      • Solvers (V2)
        • Replicating Solver
        • Reversion Solver
      • Strategies (V1)
        • Replicating Strategy
        • Building A Strategy
    • AMM
      • Execution & Order Matching
      • Position Types
      • Order Types
      • Market Schemas
      • Fees & Rewards
  • info
    • User Guides
      • Introduction to Starknet
      • Connect Starknet Wallet
      • Haiko Interface
      • Depositing to a Vault
    • DeFi Spring
    • Leaderboard
    • Listing on Haiko
    • Links
    • Glossary
  • Developers
    • Deployments
    • Interfaces
    • Events
      • MarketManager (AMM)
      • ReplicatingStrategy
      • SolverComponent
      • ReplicatingSolver
    • Advanced Concepts
      • Liquidity Math
      • Limits
      • Data Encoding
  • Media Kit
  • Contact Us
Powered by GitBook
On this page
  • Swaps
  • Limit Orders
  1. protocol
  2. AMM

Order Types

Swaps

Swaps are the most common form of trading on Haiko. They represent a request to buy or sell on token for another, and can be fulfilled against liquidity from one or multiple markets.

Swaps can be expressed in one of two ways:

  1. Exact input, e.g. "buy as much ETH as possible with 1,000 USDC"

  2. Exact output, e.g. "spend as little USDC as possible to buy 1 ETH"

Multi-market swaps are swaps executed across multiple markets by iteratively trading received amounts through consecutive markets in a single atomic transaction.

Limit Orders

Limit Orders allow a user to place an entry order that executes only when the market price reaches the user's desired price. Unlike regular liquidity positions, limit orders are automatically filled once the market price reaches the execution price of the order.

Limit orders are batched at the smart contract level for execution efficiency. This means they must be collected after being filled in a seperate transaction.

Last updated 8 months ago