API Overview
OpenMM provides a REST API built with Fastify, featuring automatic OpenAPI documentation.
Base URL
http://localhost:3000/api/v1Starting the Server
openmm serve --port 3000Options:
--port— Port number (default: 3000)--host— Host address (default: 0.0.0.0)
Interactive Documentation
Swagger UI is available at:
http://localhost:3000/docsResponse Format
All responses are JSON with consistent structure:
Success Response
Error Response
HTTP Status Codes
200
Success
400
Bad Request — Invalid parameters
404
Not Found — Resource doesn't exist
500
Server Error — Internal error
Endpoints Summary
Market Data
GET
/ticker
Get ticker for trading pair
GET
/orderbook
Get order book
GET
/trades
Get recent trades
Account
GET
/balance
Get account balances
Orders
GET
/orders
List open orders
GET
/orders/:id
Get order by ID
POST
/orders
Create new order
DELETE
/orders/:id
Cancel order
DELETE
/orders
Cancel all orders
Strategy
POST
/strategy/grid
Start grid strategy
DELETE
/strategy/grid
Stop grid strategy
GET
/strategy/grid/status
Get strategy status
GET
/strategy/grid/list
List active strategies
Cardano DEX
GET
/cardano/price/:symbol
Get token price
GET
/cardano/pools/:symbol
Discover liquidity pools
Price Comparison
GET
/price/compare
Compare prices across exchanges
Supported Exchanges
mexc
MEXC
✅ Full support
gateio
Gate.io
✅ Full support
bitget
Bitget
✅ Full support
kraken
Kraken
✅ Full support
Last updated