This is the group of functions intended for managing trading activities.
Before you proceed to study the trade functions of the platform, you must have a clear understanding of the basic terms: order, deal and position:
An order is an instruction given to a broker to buy or sell a financial instrument. There are two main types of orders: Market and Pending. In addition, there are special Take Profit and Stop Loss levels.
A deal is the commercial exchange (buying or selling) of a financial security. Buying is executed at the demand price (Ask), and Sell is performed at the supply price (Bid). A deal can be opened as a result of market order execution or pending order triggering. Note that in some cases, execution of an order can result in several deals.
A position is a trade obligation, i.e. the number of bought or sold of a financial instrument. A long position is financial security bought expecting the security price go higher. A short position is an obligation to supply a security expecting the price will fall in future.
|Places a market order request to buy certain volume. It will execute immediately|
|Places a market order request to sell certain volume. It will execute immediately|
|Places the pending order of Buy Limit type (buy at the price lower than current market price)|
|Places the pending order of Sell Limit type (sell at the price higher than current market price)|
|Places the pending order of Buy Stop type (buy at the price higher than current market price)|
|Places the pending order of Sell Stop type (sell at the price lower than current market price)|
|Returns an order|
|Returns an array of all pending orders|
|Returns an array of closed orders|
|Modifies a pending order|
|Deletes a pending order|
|Returns an position|
|Returns an array of all open positions|
|Returns an array of closed positions|
|Modifies a position|
|Closes a position by the specified product or order id|
|Partially closes a position on a specified product or order id|
|Closes a position with the specified order id by an opposite position|
|Returns a deal|
|Returns an array of deals|