> For the complete documentation index, see [llms.txt](https://docs.mememax.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mememax.com/api/orderly-api.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
