Mach 2
  • Getting Started
    • What is Mach?
    • Mach 2
      • Optimistic Settlement
      • Intents
      • Order Matching
      • Stables & RWAs
    • Trade Lifecycle
  • Navigation
    • Users
      • FAQ
    • Market Makers
  • Protocol
    • Overview
      • Cross-Chain Swap
      • Challenge Process
    • CCTP
    • LayerZero
    • API
      • Integration
    • Staging
    • Deployed Contracts
    • Supported Assets
    • Security
  • Whitepaper
  • Audits
  • Github
Powered by GitBook
On this page
  • Support for Aggregators
  • Step 1: Call placeTrade()
  • Step 2: Use Pricing Endpoints
  1. Protocol
  2. API

Integration

Support for Aggregators

Integrating Mach support:

Step 1: Call placeTrade()

To initiate trades, simply call the placeTrade() function. This function handles the core trading logic and will integrate seamlessly into your existing system.

Step 2: Use Pricing Endpoints

For pricing information, we provide easy-to-use endpoints:

  • Get Price Endpoint: Use get_price to obtain the current price for a trade.

  • Get Midprice Endpoint: Use get_midprice to retrieve the mid-market price.

These endpoints will allow you to access the necessary pricing data efficiently.

If you have additional questions/issues feel free to reach out to our team through Discord or Telegram

PreviousAPINextStaging

Last updated 12 months ago