# Amibroker (REST API)

The **AlgoMojo AmiBroker REST API** is an interface that allows **AmiBroker** users to integrate their trading strategies with the **AlgoMojo** platform using RESTful HTTP requests. This API provides a seamless connection between AmiBroker and AlgoMojo, enabling users to automate their trading signals, execute trades, and manage portfolios directly from within the AmiBroker environment.

* **Automated Trade Execution**: The REST API allows users to send trading signals (such as buy, sell, and other actions) from **AmiBroker** to **AlgoMojo**, which then forwards these signals to connected brokers for execution. This eliminates the need for manual trade placements and enables fully automated trading strategies.
* **Real-Time Data Integration**: With the REST API, AmiBroker users can send real-time market data and trading parameters such as symbol, price, quantity, and order type directly to AlgoMojo, allowing for quick, real-time execution of trades based on live data.
* **Flexible Trading Signals**: Users can send highly customizable signals through the REST API. You can include parameters like entry/exit price, stop loss, take profit, and quantity, along with any additional trading conditions you wish to automate.
* **Simple HTTP Communication**: The **AmiBroker REST API** uses standard HTTP methods (GET, POST, PUT, DELETE) for communication, making it easy to integrate with other systems and applications. The data is typically sent in **JSON** format, ensuring compatibility with most programming environments.
* **Broker Integration**: AlgoMojo’s REST API can be connected with a wide range of brokers and trading platforms, providing flexibility to execute trades on the platform of your choice without needing to interact directly with the broker’s API.
* **Error Handling & Responses**: The REST API allows for handling responses from the AlgoMojo platform, including HTTP status codes (200, 400, 500) and messages that indicate whether the trade execution was successful or if any issues occurred.
* **Order Management**: In addition to sending trade signals, the REST API can also be used to manage open orders, cancel orders, and retrieve information about the status of placed orders.


---

# 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.algomojo.com/algomojo/modules/amibroker/amibroker-rest-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.
