Skip to content

Working with Positions

Overview

The section describes the Forex Connect Lite API Positions related commands.

In forex trading, positions refer to the trades that a trader has entered into and is currently holding. A position represents the exposure or commitment to a particular currency pair. It can be either an open position or a closed position.

An open position refers to a trade that is still active and has not been closed yet. It means that the trader has bought or sold a currency pair and is still holding that position. The profit or loss on an open position is not realized until the position is closed.

A closed position refers to a trade that has been completed or exited. It means that the trader has bought or sold a currency pair and then closed that position by executing an opposite trade. When a position is closed, the profit or loss on that trade is realized.

  • Get a List of Open Positions: This sub page teaches how to get the details of the user's open positions, such as instrument, direction, amount, and profit/loss. It explains the parameters and the response format of the command.
  • Get a List of Closed Positions: This sub page teaches how to get the user's closed positions, such as instrument, direction, amount, and profit/loss. It explains the parameters and the response format of the command.
  • Get Position Details: This sub page teaches how to use the FCLite API to get the details of a position
  • Close a Position: This sub page teaches how to use the FCLite API to close a position
  • Close All Open Positions: This sub page teaches how to use the FCLite API to close all open positions
Table of Contents
Get Open Positions
The article teaches how to get a list of open positions.
Get Closed Positions
The article teaches how to get a list of closed positions.
Get Position Details
API Command used to get the details of a position
Close a Position
API Command used to close a position
Close All Open Positions
API Command used to close all open positions