Working with Orders
Overview
This section introduces the concept of forex orders and the different types of orders that can be used to trade in the foreign exchange market. Forex orders are instructions that tell your broker how and when to execute a trade. There are various types of forex orders, such as market orders, limit orders, stop orders, and more. Each type of order has its own advantages and disadvantages, depending on your trading strategy and market conditions. It also provides detailed instructions on how to use the Forex Connect Lite API to create, modify, and cancel orders, as well as how to get a list of all orders. The Forex Connect Lite API is a lightweight and easy-to-use API that allows you to access the forex market data and execute trades. It is designed for traders who want to focus on their trading logic and not worry about the technical details of the API. By reading this section, you will learn how to use forex orders to manage your positions, enter or exit trades, and implement various trading strategies.
In the following subsections, we will cover the key commands related to forex orders:
- Order Types: This page will explain each of the different types of orders in the system.
- Get a List of All Orders: This page teaches how to get the details of the user's orders, such as order ID, type, status, price, and amount. It explains the parameters and the response format of the command.
- Modifying An Order: This page teaches how to modify an order, which is a request to buy or sell an instrument at a specified price and quantity. It explains the syntax and parameters of the modify command, and provides examples of how to use it.
- Create a Market Order: This page teaches how to create a market order.
- Create an Entry Order: This page teaches how to create an entry order.
- Create a Close Market Order: This page teaches how to create a close 'market order'.
- Create an OCO (One Cancels the Other) order: An OCO (One Cancels the Other) order is a combination of two orders where the execution of one order automatically cancels the other.
- Attach Stop Limit Order: This page teaches how to add a stop or limit to an entry order and position, which is actually a new order, not a modification.
- Order Cancellation: This page teaches how to cancel an unfulfilled order.
| Table of Contents | |
|---|---|
| Order Types This page will explain each of the different types of orders in the system. |
|
| Get All Orders The article teaches how to get a list of all orders. |
|
| Modify an Order The article teaches how to modify an order |
|
| Create a Market Order The article teaches how to create a market order |
|
| Create an Entry Order API Command used to create an entry order |
|
| Create a Close Market Order The article teaches how to create a close 'market order' |
|
| Create an OCO Order API Command used to create an OCO order |
|
| Create a Stop and/or Limit Order This article provides information about how to add a stop/limit to an order |
|
| Cancel an Order This article provides information about how to cancel an order |