[
  {
    "path": "AttachStopLimitToPosition.py",
    "content": "# example code how to attach Stop or Limit to open position, each create_order_request() can attach one order, to attach stop and limit need to call this function 2 times\r\n# this code shows how to attach Limit, for a Stop replace order_type='S'\n\n\nimport argparse\nfrom time import sleep\nfrom threading import Event\n\nfrom forexconnect import fxcorepy, ForexConnect, Common\n\nimport common_samples\n\n\ndef parse_args():\n    parser = argparse.ArgumentParser(description='Process command parameters.')\n    common_samples.add_main_arguments(parser)\n    common_samples.add_instrument_timeframe_arguments(parser, timeframe=False)\n    common_samples.add_direction_rate_lots_arguments(parser)\n    common_samples.add_account_arguments(parser)\n    args = parser.parse_args()\n\n    return args\n\n\nclass OrdersMonitor:\n    def __init__(self):\n        self.__order_id = None\n        self.__orders = {}\n        self.__event = Event()\n\n    def on_added_order(self, _, __, order_row):\n        order_id = order_row.order_id\n        self.__orders[order_id] = order_row\n        if self.__order_id == order_id:\n            self.__event.set()\n\n    def wait(self, time, order_id):\n        self.__order_id = order_id\n\n        order_row = self.find_order(order_id)\n        if order_row is not None:\n            return order_row\n\n        self.__event.wait(time)\n\n        return self.find_order(order_id)\n\n    def find_order(self, order_id):\n        if order_id in self.__orders:\n            return self.__orders[order_id]\n        else:\n            return None\n\n    def reset(self):\n        self.__order_id = None\n        self.__orders.clear()\n        self.__event.clear()\n\n\ndef main():\n    str_user_id = 'username'\n    str_password = 'password'\n    str_url = 'www.fxcorporate.com/Hosts.jsp'\n    str_connection = 'Demo'\n    str_session_id = None\n    str_pin = None\n    str_instrument = 'CAD/JPY'\n    str_buy_sell = 'B'  # should be oposite direction than open position\n    str_rate = 104.610\n    str_lots = 10       # Quantity should be the same as open position\n    str_account = 'account_id'\n    trade_id = 'trade_id'\n    stop_ord = 'S'\n    limit_ord = 'L'\n\n\n    with ForexConnect() as fx:\n        fx.login(str_user_id, str_password, str_url, str_connection, str_session_id, str_pin, common_samples.session_status_changed)\n\n        try:\n            account = Common.get_account(fx, str_account)\n            if not account:\n                raise Exception(\"The account '{0}' is not valid\".format(str_account))\n\n            else:\n                str_account = account.account_id\n                print(\"AccountID='{0}'\".format(str_account))\n\n            offer = Common.get_offer(fx, str_instrument)\n\n            if offer is None:\n                raise Exception(\"The instrument '{0}' is not valid\".format(str_instrument))\n\n            login_rules = fx.login_rules\n            trading_settings_provider = login_rules.trading_settings_provider\n            base_unit_size = trading_settings_provider.get_base_unit_size(str_instrument, account)\n            amount = base_unit_size * str_lots\n\n            request = fx.create_order_request(\n                order_type=limit_ord,\n                OFFER_ID=offer.offer_id,\n                ACCOUNT_ID=str_account,\n                BUY_SELL=str_buy_sell,\n                AMOUNT=amount,\n                RATE=str_rate,\n                TRADE_ID=trade_id,\n            )\n\n            orders_monitor = OrdersMonitor()\n\n            orders_table = fx.get_table(ForexConnect.ORDERS)\n            orders_listener = Common.subscribe_table_updates(orders_table, on_add_callback=orders_monitor.on_added_order)\n\n            try:\n                resp = fx.send_request(request)\n                order_id = resp.order_id\n\n            except Exception as e:\n                common_samples.print_exception(e)\n                orders_listener.unsubscribe()\n\n            else:\n                # Waiting for an order to appear or timeout (default 30)\n                order_row = orders_monitor.wait(30, order_id)\n                if order_row is None:\n                    print(\"Response waiting timeout expired.\\n\")\n                else:\n                    print(\"The order has been added. OrderID={0:s}, \"\n                          \"Type={1:s}, BuySell={2:s}, Rate={3:.5f}, TimeInForce={4:s}\".format(\n                        order_row.order_id, order_row.type, order_row.buy_sell, order_row.rate,\n                        order_row.time_in_force))\n                    sleep(1)\n                orders_listener.unsubscribe()\n\n        except Exception as e:\n            common_samples.print_exception(e)\n        try:\n            fx.logout()\n        except Exception as e:\n            common_samples.print_exception(e)\n\n\nif __name__ == \"__main__\":\n    main()\n    input(\"Done! Press enter key to exit\\n\")\n"
  },
  {
    "path": "AvailableSymbols.md",
    "content": "#Symbols and timeframes available from FXCM\n\nBelow we have listed a small portion of most popular symbols and timeframes available for resolutions: 1minute, 1hour and 1day\nFor a complete listing of available data please contact your FXCM representantive.\n\n|Symbol|m1 From|H1 From|D1 From\n|:---:|---|---|---\n|**EUR/USD**|2001-11-27T23:09:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**NATGAS**|2001-11-27T23:10:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**GER30**|2008-09-10T05:01:00Z|2008-08-19T00:00:00Z|1970-02-10T17:00:00Z\n|**GBP/USD**|2001-11-27T23:09:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**XAU/USD**|2009-02-24T16:00:00Z|2009-02-24T16:00:00Z|1920-01-29T17:00:00Z\n|**USD/CAD**|2001-11-27T23:13:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**GBP/JPY**|2001-11-27T23:09:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**USTECH**|2001-11-27T23:10:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**US30**|2009-03-10T20:00:00Z|2008-08-19T06:00:00Z|1981-01-28T17:00:00Z\n|**EUR/JPY**|2001-11-27T23:09:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**AUD/JPY**|2001-11-27T23:10:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**NZD/USD**|2001-11-27T23:12:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**EUR/GBP**|2001-11-27T23:09:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**Ustech**|2001-11-27T23:09:00Z|2001-10-21T18:00:00Z|1993-05-10T17:00:00Z\n|**UK100**|2008-09-10T05:01:00Z|2008-08-19T00:00:00Z|1986-04-01T17:00:00Z\n"
  },
  {
    "path": "ChangeOrder.py",
    "content": "# example code how to change order, it can be used for any waiting order, attached stop or limit\r\n#the AMOUNT field is optional,\r\n\r\n\r\nimport argparse\r\nfrom time import sleep\r\nfrom threading import Event\r\n\r\nfrom forexconnect import fxcorepy, ForexConnect, Common\r\n\r\nimport common_samples\r\n\r\n\r\ndef parse_args():\r\n    parser = argparse.ArgumentParser(description='Process command parameters.')\r\n    common_samples.add_main_arguments(parser)\r\n    common_samples.add_instrument_timeframe_arguments(parser, timeframe=False)\r\n    common_samples.add_direction_rate_lots_arguments(parser)\r\n    common_samples.add_account_arguments(parser)\r\n    args = parser.parse_args()\r\n\r\n    return args\r\n\r\n\r\nclass OrdersMonitor:\r\n    def __init__(self):\r\n        self.__order_id = None\r\n        self.__orders = {}\r\n        self.__event = Event()\r\n\r\n    def on_added_order(self, _, __, order_row):\r\n        order_id = order_row.order_id\r\n        self.__orders[order_id] = order_row\r\n        if self.__order_id == order_id:\r\n            self.__event.set()\r\n\r\n    def wait(self, time, order_id):\r\n        self.__order_id = order_id\r\n\r\n        order_row = self.find_order(order_id)\r\n        if order_row is not None:\r\n            return order_row\r\n\r\n        self.__event.wait(time)\r\n\r\n        return self.find_order(order_id)\r\n\r\n    def find_order(self, order_id):\r\n        if order_id in self.__orders:\r\n            return self.__orders[order_id]\r\n        else:\r\n            return None\r\n\r\n    def reset(self):\r\n        self.__order_id = None\r\n        self.__orders.clear()\r\n        self.__event.clear()\r\n\r\n\r\nclass Args:\r\n    l = \"username\"\r\n    p = \"password\"\r\n    u = \"http://www.fxcorporate.com/Hosts.jsp\"\r\n    c = \"Demo\"\r\n    i = 'CAD/JPY'\r\n    session = None\r\n    pin = None\r\n    lots = 10\r\n    r = 104.568\r\n    stop_ord = 'S'\r\n    limit_ord = 'L'\r\n    account = 'account id'\r\n    order_id = 'order_id'\r\n\r\n\r\ndef main():\r\n    args = Args\r\n    str_user_id = args.l\r\n    str_password = args.p\r\n    str_url = args.u\r\n    str_connection = args.c\r\n    str_session_id = args.session\r\n    str_pin = args.pin\r\n    str_instrument = args.i\r\n    str_rate = args.r\r\n    lots = args.lots\r\n    str_account = args.account\r\n    str_order_type = args.limit_ord\r\n    order_id = args.order_id\r\n\r\n\r\n    with ForexConnect() as fx:\r\n        fx.login(str_user_id, str_password, str_url, str_connection, str_session_id, str_pin, common_samples.session_status_changed)\r\n\r\n        try:\r\n            account = Common.get_account(fx, str_account)\r\n            if not account:\r\n                raise Exception(\"The account '{0}' is not valid\".format(str_account))\r\n\r\n            else:\r\n                str_account = account.account_id\r\n                print(\"AccountID='{0}'\".format(str_account))\r\n\r\n            offer = Common.get_offer(fx, str_instrument)\r\n\r\n            if offer is None:\r\n                raise Exception(\"The instrument '{0}' is not valid\".format(str_instrument))\r\n\r\n            login_rules = fx.login_rules\r\n            trading_settings_provider = login_rules.trading_settings_provider \r\n            base_unit_size = trading_settings_provider.get_base_unit_size(str_instrument, account)\r\n            amount = base_unit_size * lots\r\n\r\n            request = fx.create_order_request(\r\n                command=fxcorepy.Constants.Commands.EDIT_ORDER,\r\n                order_type=str_order_type,\r\n                OFFER_ID=offer.offer_id,\r\n                ACCOUNT_ID=str_account,\r\n                RATE=str_rate,\r\n                AMOUNT=lots,\r\n                ORDER_ID=order_id,\r\n            )\r\n\r\n            orders_monitor = OrdersMonitor()\r\n\r\n            orders_table = fx.get_table(ForexConnect.ORDERS)\r\n            orders_listener = Common.subscribe_table_updates(orders_table, on_add_callback=orders_monitor.on_added_order)\r\n\r\n            try:\r\n                resp = fx.send_request(request)\r\n\r\n            except Exception as e:\r\n                common_samples.print_exception(e)\r\n                orders_listener.unsubscribe()\r\n\r\n        except Exception as e:\r\n            common_samples.print_exception(e)\r\n        try:\r\n            fx.logout()\r\n        except Exception as e:\r\n            common_samples.print_exception(e)\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    main()\r\n    input(\"Done! Press enter key to exit\\n\")\r\n"
  },
  {
    "path": "CreateOCOOrder.py",
    "content": "import argparse\nfrom distutils.cmd import Command\nfrom time import sleep\nfrom threading import Event\nfrom tkinter import COMMAND\n\nfrom forexconnect import fxcorepy, ForexConnect, Common\n\nimport common_samples\n\n\nclass OrdersMonitor:\n    def __init__(self):\n        self.__order_id = None\n        self.__orders = {}\n        self.__event = Event()\n\n    def on_added_order(self, _, __, order_row):\n        order_id = order_row.order_id\n        self.__orders[order_id] = order_row\n        if self.__order_id == order_id:\n            self.__event.set()\n\n    def wait(self, time, order_id):\n        self.__order_id = order_id\n\n        order_row = self.find_order(order_id)\n        if order_row is not None:\n            return order_row\n\n        self.__event.wait(time)\n\n        return self.find_order(order_id)\n\n    def find_order(self, order_id):\n        if order_id in self.__orders:\n            return self.__orders[order_id]\n        else:\n            return None\n\n    def reset(self):\n        self.__order_id = None\n        self.__orders.clear()\n        self.__event.clear()\n\nclass Args:\n    l = \"YOUR USERNAME / LOGIN\"\n    p = \"PASSWORD\"\n    u = \"http://www.fxcorporate.com/Hosts.jsp\"\n    c = \"Demo\"\n    i = 'EUR/USD'\n    session = None\n    pin = None\n    amount = 10000\n    r_up = 1.059\n    r_dn = 1.051\n    account = 'ACCOUNT ID'\n\n\ndef main():\n    args = Args\n\n    str_user_id = args.l\n    str_password = args.p\n    str_url = args.u\n    str_connection = args.c\n    str_session_id = args.session\n    str_pin = args.pin\n    str_instrument = args.i\n    rate_up = args.r_up\n    rate_dn = args.r_dn\n    str_amount = args.amount\n    str_account = args.account\n\n    with ForexConnect() as fx:\n        fx.login(str_user_id, str_password, str_url, str_connection, str_session_id, str_pin, common_samples.session_status_changed)\n\n        try:\n            account = Common.get_account(fx, str_account)\n            if not account:\n                raise Exception(\n                    \"The account '{0}' is not valid\".format(str_account))\n\n            else:\n                str_account = account.account_id\n                print(\"AccountID='{0}'\".format(str_account))\n\n            offer = Common.get_offer(fx, str_instrument)\n\n            if offer is None:\n                raise Exception(\n                    \"The instrument '{0}' is not valid\".format(str_instrument))\n\n            login_rules = fx.login_rules\n\n            trading_settings_provider = login_rules.trading_settings_provider\n\n            base_unit_size = trading_settings_provider.get_base_unit_size(\n                str_instrument, account)\n\n            valuemap_oco = fx.session.request_factory.create_value_map()\n            valuemap_oco.set_string(fxcorepy.O2GRequestParamsEnum.COMMAND, fxcorepy.Constants.Commands.CREATE_OCO)\n\n            valuemap_up = fx.session.request_factory.create_value_map()\n            valuemap_up.set_string(fxcorepy.O2GRequestParamsEnum.COMMAND, fxcorepy.Constants.Commands.CREATE_ORDER)\n            valuemap_up.set_string(fxcorepy.O2GRequestParamsEnum.ORDER_TYPE, fxcorepy.Constants.Orders.STOP_ENTRY)\n            valuemap_up.set_string(fxcorepy.O2GRequestParamsEnum.ACCOUNT_ID, str_account)\n            valuemap_up.set_string(fxcorepy.O2GRequestParamsEnum.OFFER_ID, offer.offer_id)\n            valuemap_up.set_string(fxcorepy.O2GRequestParamsEnum.BUY_SELL, fxcorepy.Constants.BUY)\n            valuemap_up.set_int(fxcorepy.O2GRequestParamsEnum.AMOUNT, str_amount)\n            valuemap_up.set_double(fxcorepy.O2GRequestParamsEnum.RATE, rate_up)\n            valuemap_oco.append_child(valuemap_up)\n\n            valuemap_down = fx.session.request_factory.create_value_map()\n            valuemap_down.set_string(fxcorepy.O2GRequestParamsEnum.COMMAND, fxcorepy.Constants.Commands.CREATE_ORDER)\n            valuemap_down.set_string(fxcorepy.O2GRequestParamsEnum.ORDER_TYPE, fxcorepy.Constants.Orders.STOP_ENTRY)\n            valuemap_down.set_string(fxcorepy.O2GRequestParamsEnum.ACCOUNT_ID, str_account)\n            valuemap_down.set_string(fxcorepy.O2GRequestParamsEnum.OFFER_ID, offer.offer_id)\n            valuemap_down.set_string(fxcorepy.O2GRequestParamsEnum.BUY_SELL, fxcorepy.Constants.SELL)\n            valuemap_down.set_int(fxcorepy.O2GRequestParamsEnum.AMOUNT, str_amount)\n            valuemap_down.set_double(fxcorepy.O2GRequestParamsEnum.RATE, rate_dn)\n            valuemap_oco.append_child(valuemap_down)\n\n            request = fx.session.request_factory.create_order_request(valuemap_oco)\n\n            orders_monitor = OrdersMonitor()\n\n            orders_table = fx.get_table(ForexConnect.ORDERS)\n            orders_listener = Common.subscribe_table_updates(orders_table, on_add_callback=orders_monitor.on_added_order)\n\n            try:\n                resp = fx.send_request(request)\n                order_id = resp.order_id\n\n            except Exception as e:\n                common_samples.print_exception(e)\n                orders_listener.unsubscribe()\n\n            else:\n                # Waiting for an order to appear or timeout (default 30)\n                order_row = orders_monitor.wait(30, order_id)\n                if order_row is None:\n                    print(\"Response waiting timeout expired.\\n\")\n                else:\n                    print(\"The order has been added. OrderID={0:s}, \"\n                          \"Type={1:s}, BuySell={2:s}, Rate={3:.5f}, TimeInForce={4:s}\".format(\n                        order_row.order_id, order_row.type, order_row.buy_sell, order_row.rate,\n                        order_row.time_in_force))\n                    sleep(1)\n                orders_listener.unsubscribe()\n\n        except Exception as e:\n            common_samples.print_exception(e)\n        try:\n            fx.logout()\n        except Exception as e:\n            common_samples.print_exception(e)\n\n\nif __name__ == \"__main__\":\n    main()\n    input(\"Done! Press enter key to exit\\n\")\n"
  },
  {
    "path": "README.md",
    "content": "# ForexConnectAPI\n\nThis SDK is designed to get trading data, trade, load price histories and subscribe for the most recent prices. \nIt is intended to be used by FXCM clients on auto-trading robots and systems, \nchart and market analysis application, custom trading application on FXCM accounts.\n\nForex Connect supports C++, C#, Java, VB, VBA, Windows, Linux and smart phones. And it is free.\n\nYou can use ForexConnect on Trading station account, no extra setup required.\n\nIf using O2G2 namespace, keep in mind that it is currently deprecated as it has not been updated since the beginning of 2015. \nIt may give the users errors or not be compatible in certain cases.\n\n## How to start:\n1) You need sign the [EULA](https://www.fxcm.com/uk/forms/eula/) form first. \n2) A FXCM TSII account. You can apply for a demo account [here](https://www.fxcm.com/uk/algorithmic-trading/api-trading/). \n3) Download [**ForexConnect SDK**](http://www.fxcodebase.com/wiki/index.php/Download)\n4) Examples codes and documents are at ForexConnectAPI packages after installed.\n5) Online documents: [**Getting Started**](https://apiwiki.fxcorporate.com/api/Getting%20Started.pdf)\n6) ForexConnect with Matlab, at [here](https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/FXCM-MATLAB-master.zip).\n7) ForexConnect sample code for Android/iOS/macOS/Python/Linux/Windows, at [here](https://github.com/gehtsoft/forex-connect/tree/master/samples).\n8) ForexConnect on Python at [here](http://fxcodebase.com/code/viewforum.php?f=51)\n\n## Connect parameters:\n1) URL=\"www.fxcorporate.com/Hosts.jsp\"\n2) Username=\"you username\"\n3) Password=\"your password\"\n4) Connection=\"demo\"\n5) You can ignore SessionID and PIN\n\n## Suggested Popular Development Platform IDE:\n[**Windows 32bit and 64bit – Visual Studio 2005 and up**](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx)\n\n[**Linux 32bit and 64bit – Eclipse**](https://eclipse.org/)\n\n[**iOS – Xcode**](https://developer.apple.com/xcode/ide/)\n\n[**Android - Android Studio**](https://developer.android.com/studio/intro/index.html)\n\n## Table manager vs Non-table manager:\nTable manager preload all tables to your local memoery, it is an in-memory representation of API tables. The table manager allows you to subscribe to table change events such as updates, adding rows, or removing rows. It is important to note that the \nSummaryTable is only accessible through the table manager.  \nTable manager presents a performance decrease because it is constantly recalculating fields.\nNon-table manager allow you to capture table updates adhoc via the use of a class that implements theIO2GResponseListener interface. It give performance advantage but you need to calculate some fields such as PipCost or P/L.\n\n## How to get current balance?\nYou need to request the table from server. please refer to NonTableManagerSamples/PrintTable example program.\n\n      private static O2GAccountRow GetAccount(O2GSession session)\n      {\n          O2GResponseReaderFactory readerFactory = session.getResponseReaderFactory();\n          if (readerFactory == null)\n          {\n              throw new Exception(\"Cannot create response reader factory\");\n          }\n          O2GLoginRules loginRules = session.getLoginRules();\n          O2GResponse response = loginRules.getTableRefreshResponse(O2GTableType.Accounts);\n          O2GAccountsTableResponseReader accountsResponseReader = readerFactory.createAccountsTableReader(response);\n          for (int i = 0; i < accountsResponseReader.Count; i++)\n          {\n              O2GAccountRow accountRow = accountsResponseReader.getRow(i);\n              Console.WriteLine(\"AccountID: {0}, Balance: {1}\", accountRow.AccountID, accountRow.Balance);\n          }\n          return accountsResponseReader.getRow(0);\n      }\n\n## How to get price history:\nFor pricehistory, you need to use non-table manage. \nYou can see examples under NonTableManagerSamples/GetHistPrices\n\n\n## Real Case Study:\n1. Learn how to build and backtest Rsi signals using ForexConnect API at <a href=\"https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/RsiSignals_via_ForexConnectAPI.zip\">here</a>.\n2. Learn how to build and backtest CCI Oscillator strategy using ForexConnect API at <a href=\"https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/2.1.CCI_via_FC_API.zip\">here</a>.\n3. Learn how to build and backtest Breakout strategy using ForexConnect API at <a href=\"https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/3.1.BreakoutStrategy_via_FC_API.zip\">here</a>.\n4. Learn how to build and backtest Range Stochastic Strategy using ForexConnect API at <a href=\"https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/4.1.StochasticStrategy_via.FC.API.zip\">here</a>.\n5. Learn how to build and backtest Mean Reversion Strategy using ForexConnect API at <a href=\"https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/5.1.MeanReverionStrategy_via_FC_API.zip\">here</a>.\n6. Some examples like attached stop limit to position, create if-then ELS order, get rollover <a href=\"https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/FC-examples-master.zip\">at here</a>.\n7. ForexConnect with Matlab, is coming....\n8. Using ForexConnect downloading historical data <a href=\"https://apiwiki.fxcorporate.com/api/StrategyRealCaseStudy/ForexConnectAPI/FXCMHDD-master.zip\">at here</a>.\n\n## Note:\no\tThis is for personal use and abides by our [EULA](https://www.fxcm.com//forms/eula/)\n\no\tFor more information, you may contact us: api@fxcm.com\n\n## Release Note:\nOur price streams are moving from http to https using TLSv1.2 since 6/16/2019, to increase security on our price servers. \nPlease make sure client side software is compatible with TLSv1.2.\nClients use ForexConnect API, Java API will be affected.\nThe error you will get: ‘Can't connect to price server.’\nif you have any questions, please reach out to api@fxcm.com.\n\n### Due to security enhancement on our server side, http request by ForexConnect API users need switch to https.\nEnd user need to upgrade their FC API package on their side.\nFirst round release will target to demo environments this coming weekend. 5/1/2021\nThis release to demo target at 7/9/2021 \n\n### the above release to live will target in mid-end August/2021. \nPlease make sure you are ready.\nPlease send mail to api@fxcm.com if you have any questions. \n\nplease upgrade the latest version at \n\nhttps://pypi.org/project/forexconnect/\n\nhttps://fxcodebase.com/wiki/index.php/Download\n\n### Performance improvment release \nWe did some performance improvement and released to Demo. It should transparent to API users.\n\nHowever, you are welcome to test your current setting on Demo and contact api@fxcm.com if you experience any issues.\n\nIf everything goes well, we plan to release to Production by the end of next week. Dec 17 2022.\n\n\n## Disclaimer:\n\nStratos Group is a holding company of Stratos Markets Limited, Stratos Europe Limited, Stratos Trading Pty. Limited, Stratos South Africa (Pty) Ltd, Stratos Global LLC and all affiliates of aforementioned firms, or other firms under the Stratos Group of companies (collectively \"Stratos Group\").\n\nThe Stratos Group is headquartered at 20 Gresham Street, 4th Floor, London EC2V 7JE, United Kingdom. Stratos Markets Limited is authorised and regulated in the UK by the Financial Conduct Authority. Registration number 217689. Registered in England and Wales with Companies House company number 04072877. Stratos Europe Limited (trading as \"FXCM\"), is a Cyprus Investment Firm (\"CIF\") registered with the Cyprus Department of Registrar of Companies (HE 405643) and authorised and regulated by the Cyprus Securities and Exchange Commission (\"CySEC\") under license number 392/20. Stratos Trading Pty. Limited (trading as \"FXCM\") (AFSL 309763, ABN 31 121 934 432) is regulated by the Australian Securities and Investments Commission. The information provided by FXCM is intended for residents of Australia and is not directed at any person in any country or jurisdiction where such distribution or use would be contrary to local law or regulation. Please read the full Terms and Conditions. Stratos South Africa (Pty) Ltd is an authorized Financial Services Provider and is regulated by the Financial Sector Conduct Authority under registration number 46534. Stratos Global LLC (\"FXCM\") is incorporated in St Vincent and the Grenadines with company registration No. 1776 LLC 2022 and is an operating subsidiary within the Stratos Group. FXCM is not required to hold any financial services license or authorization in St Vincent and the Grenadines to offer its products and services. Stratos Global Services, LLC is an operating subsidiary within the Stratos Group. Stratos Global Services, LLC is not regulated and not subject to regulatory oversight.\n\nStratos Markets Limited: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 67% of retail investor accounts lose money when trading CFDs with this provider. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.\n\nStratos Europe Limited: CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 68% of retail investor accounts lose money when trading CFDs with this provider. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.\n\nStratos Trading Pty. Limited: Trading CFDs on margin and margin FX carries a high level of risk, and may not be suitable for all investors. Retail clients could sustain a total loss of the deposited funds, but wholesale clients could sustain losses in excess of deposits. Trading CFDs on margin and margin FX does not give you any entitlements or rights to the underlying instruments.\n\nStratos Global LLC: Our products are traded on leverage which means they carry a high level of risk and you could lose more than your deposits. These products are not suitable for all investors. Please ensure you fully understand the risks and carefully consider your financial situation and trading experience before trading. Seek independent advice if necessary.\n\nPast Performance: Past Performance is not an indicator of future results.\n"
  }
]