# Orderly API

MemeMax API is built on top of the Orderly Network infrastructure, and all matching, risk management, and position handling are performed on Orderly’s infrastructure. This document summarizes the overall structure and required settings, and directs developers to the official Orderly documentation for detailed specifications.​

***

## Overview

Our Perpetual DEX is a broker-style perpetual futures exchange built on the CLOB-based derivatives infrastructure provided by Orderly Network.​

* The matching engine, position/margin calculations, and settlement logic are all executed on Orderly’s infrastructure.​
* When integrating with MemeMax, you can simply call the existing Orderly API endpoints directly as your trading API.

For protocol and architecture details, refer to the official Orderly introduction documentation.​

* What is Orderly Network: <https://orderly.network/docs/introduction/getting-started/what-is-orderly>
* Orderly API Introduction: <https://orderly.network/docs/build-on-omnichain/evm-api/introduction>

***

## API Endpoints

All core features of the MemeMax are provided via Orderly’s REST endpoints. The list below only summarizes the main categories; for endpoint paths, parameters, and response schemas, refer to Orderly’s API reference.​

* Public Market Data
  * Tickers, order books, recent trades and other market data.​
* Trading
  * Create/cancel orders, query orders, and list open orders.​
* Account & Positions
  * Account balances, positions, PnL, and margin information.​

For the complete endpoint list and request/response examples, see:​

* API Reference: [https://orderly.network/docs/build-on-omnichain/evm-api](https://orderly.network/docs/build-on-omnichain/evm-api/introduction)

***

## Integration Notes

* During API authentication, you must set the `broker_id` value to `"mememax"` in all relevant requests.

<table><thead><tr><th width="206.37890625">name</th><th width="231.12109375">value</th></tr></thead><tbody><tr><td>broker_id</td><td>mememax</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mememax.com/api/orderly-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
