IFX.do

Overview

This API supports the operation of opening order and closing transaction, which is applicable to MT4 and MT5 of thousands of platforms.

Account login

You must bind the API with your copierAcc , copierPwd and copierSer, then there will generate a return value which could guarantee the safety of your account password.

Agreement:
http
Connector:
http://xxxx:xxxx/bindingCopier Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
"status_code": 201,
"message": "Account binding successfully",
"brokerAccName": "d3f3062f79e72ebb243ed2c7388d942adc2f2bb3818cd173e2da1e08bce82ea5",
   "data": {
      "login": 35766048,
      "tradeMode": "DEMO",
      "marginMode": "RETAIL_HEDGING",
      "leverage": 100,
      "limitOrders": 100,
      "stopOutMode": "PERCENT",
      "isTradeAllowed": true,
      "isTradeExpert": true,
      "name": "lffcdx",
      "server": "MetaQuotes-Demo",
      "currency": "USD",
      "company": "MetaQuotes Software Corp.",
      "balance": 5000000,
      "credit": 0,
      "profit": -13.41,
      "equity": 4999986.59,
      "margin": 116.032,
      "freeMargin": 4999870.558,
      "marginLevel": 4309144.53771373,
      "marginSoCall": 50,
      "marginSoLevel": 30,
      "tradeAllowed": true,
      "tradeExpert": true
    }
}

Open a Position

This API can open position according to the return value ,symbol, val(0-BUT, 1-SELL, 2-BUYLIMIT, 3-SELLLIMIT, 4-BUYSTOP, 5-SELLSTOP) lots,slippage,sl,tp, expiration.

Agreement:
http
Connector:
http://xxxx:xxxx/openOrder Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 0,
    "message": "Operate successful",
    "brokerAccName": null,
    "data": {
        "mt4SerHost": "MetaQuotes-Demo",
        "userAccount": "lffcdx",
        "time": 1533785879391,
        "orderInfo": {
            "ticket": 341076147,
            "type": {
                "val": 1
            },
            "openTime": "2018-08-09T06:37:58.000+0000",
            "closeTime": "1970-01-01T00:00:00.000+0000",
            "magic": 0,
            "expiration": "1970-01-01T00:00:00.000+0000",
            "lots": 0.1,
            "openPrice": 1.16144,
            "closePrice": 1.16163,
            "sl": 0,
            "tp": 0,
            "profit": -1.9,
            "commission": 0,
            "swap": 0,
            "symbol": "EURUSD",
            "comment": "TURING FURTHER",
            "typeChanged": false,
            "openTimeChanged": false,
            "closeTimeChanged": false,
            "expirationTimeChanged": false,
            "lotsChanged": false,
            "openPriceChanged": false,
            "closePriceChanged": false,
            "stopLossChanged": false,
            "takeProfitChanged": false,
            "profitChanged": false,
            "commissionChanged": false,
            "swapChanged": false,
            "modified": false
        }
    }
}

Delete pending order

This API can delete pending order according to your ticket number and brokerAccName.( brokerAccName is the return identity id after binding your account, which needs to be kept it properly in case of any behavior that may endanger your account and password)

Agreement:
http
Connector:
http://xxxx:xxxx/delOrder Please contact customer service to get the test connector
Request:
post
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 0,
    "message": "Operate successful",
    "brokerAccName": null,
    "data": {
        "mt4SerHost": "MetaQuotes-Demo",
        "userAccount": "lffcdx",
        "time": 1533793210280,
        "orderInfo": {
            "ticket": 341158898,
            "type": {
                "val": 5
            },
            "openTime": "2018-08-09T08:39:25.000+0000",
            "closeTime": "2018-08-09T08:40:09.000+0000",
            "magic": 0,
            "expiration": "1970-01-01T00:00:00.000+0000",
            "lots": 0.01,
            "openPrice": 1.16057,
            "closePrice": 1.16067,
            "sl": 1.16111,
            "tp": 1.16034,
            "profit": 0,
            "commission": 0,
            "swap": 0,
            "symbol": "EURUSD",
            "comment": "cancelled",
            "typeChanged": false,
            "openTimeChanged": false,
            "closeTimeChanged": false,
            "expirationTimeChanged": false,
            "lotsChanged": false,
            "openPriceChanged": false,
            "closePriceChanged": false,
            "stopLossChanged": false,
            "takeProfitChanged": false,
            "profitChanged": false,
            "commissionChanged": false,
            "swapChanged": false,
            "modified": false
        }
    }
}

Modify order

This API can modify order according to brokerAccName,ticket,price.sl,tp and expiration.

Agreement:
http
Connector:
http://xxxx:xxxx/modifyOrder Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 0,
    "message": "Operate successful",
    "brokerAccName": null,
    "data": {
        "mt4SerHost": "MetaQuotes-Demo",
        "userAccount": "lffcdx",
        "time": 1533793348920,
        "orderInfo": {
            "ticket": 341076147,
            "type": {
                "val": 1
            },
            "openTime": "2018-08-09T06:37:58.000+0000",
            "closeTime": "1970-01-01T00:00:00.000+0000",
            "magic": 0,
            "expiration": "1970-01-01T00:00:00.000+0000",
            "lots": 0.1,
            "openPrice": 1.16144,
            "closePrice": 1.1608,
            "sl": 100,
            "tp": 0,
            "profit": 6.4,
            "commission": 0,
            "swap": 0,
            "symbol": "EURUSD",
            "comment": "TURING FURTHER",
            "typeChanged": false,
            "openTimeChanged": false,
            "closeTimeChanged": false,
            "expirationTimeChanged": false,
            "lotsChanged": false,
            "openPriceChanged": false,
            "closePriceChanged": false,
            "stopLossChanged": false,
            "takeProfitChanged": false,
            "profitChanged": false,
            "commissionChanged": false,
            "swapChanged": false,
            "modified": false
        }
    }
}

Close transaction

This API can close transaction according to brokerAccName,ticket,lots and slippage.

Agreement:
http
Connector:
http://xxxx:xxxx/closeOrder Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 0,
    "message": "Operate successful",
    "brokerAccName": null,
    "data": {
        "mt4SerHost": "MetaQuotes-Demo",
        "userAccount": "lffcdx",
        "time": 1533793471809,
        "orderInfo": {
            "ticket": 341076147,
            "type": {
                "val": 1
            },
            "openTime": "2018-08-09T06:37:58.000+0000",
            "closeTime": "2018-08-09T08:44:30.000+0000",
            "magic": 0,
            "expiration": "1970-01-01T00:00:00.000+0000",
            "lots": 0.1,
            "openPrice": 1.16144,
            "closePrice": 1.16085,
            "sl": 100,
            "tp": 0,
            "profit": 5.9,
            "commission": 0,
            "swap": 0,
            "symbol": "EURUSD",
            "comment": "TURING FURTHER",
            "typeChanged": false,
            "openTimeChanged": false,
            "closeTimeChanged": false,
            "expirationTimeChanged": false,
            "lotsChanged": false,
            "openPriceChanged": false,
            "closePriceChanged": false,
            "stopLossChanged": false,
            "takeProfitChanged": false,
            "profitChanged": false,
            "commissionChanged": false,
            "swapChanged": false,
            "modified": false
        }
    }
}

Check order details

This API can check order details according to brokerAccName, val,dateFrom and dateto.

Agreement:
http
Connector:
http://xxxx:xxxx/findOrder Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 211,
    "message": "Query successful",
    "brokerAccName": null,
    "data": {
        "340130732": {
            "ticket": 340130732,
            "type": {
                "val": 1
            },
            "openTime": "2018-08-08T05:35:51.000+0000",
            "closeTime": "1970-01-01T00:00:00.000+0000",
            "magic": 0,
            "expiration": "1970-01-01T00:00:00.000+0000",
            "lots": 0.1,
            "openPrice": 1.16032,
            "closePrice": 1.16093,
            "sl": 0,
            "tp": 0,
            "profit": -6.1,
            "commission": 0,
            "swap": -0.31,
            "symbol": "EURUSD",
            "comment": "TURING FURTHER",
            "typeChanged": false,
            "openTimeChanged": false,
            "closeTimeChanged": false,
            "expirationTimeChanged": false,
            "lotsChanged": false,
            "openPriceChanged": false,
            "closePriceChanged": false,
            "stopLossChanged": false,
            "takeProfitChanged": false,
            "profitChanged": false,
            "commissionChanged": false,
            "swapChanged": false,
            "modified": false
        }
    }
}

Check user account details

This API can check whether the login status of the user account is normal

Agreement:
http
Connector:
http://xxxx:xxxx/findOrder Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 211,
    "message": "Query successful",
    "brokerAccName": null,
    "data": {
        "login": 35766048,
        "tradeMode": "DEMO",
        "marginMode": "RETAIL_HEDGING",
        "leverage": 100,
        "limitOrders": 100,
        "stopOutMode": "PERCENT",
        "isTradeAllowed": true,
        "isTradeExpert": true,
        "name": "lffcdx",
        "server": "MetaQuotes-Demo",
        "currency": "USD",
        "company": "MetaQuotes Software Corp.",
        "balance": 5000005.9,
        "credit": 0,
        "profit": -6.21,
        "equity": 4999999.69,
        "margin": 116.032,
        "freeMargin": 4999883.658,
        "marginLevel": 4309155.8277027,
        "marginSoCall": 50,
        "marginSoLevel": 30,
        "tradeAllowed": true,
        "tradeExpert": true
    }
}

Password synchronization

This API can refresh the password according to brkerAccName and copierPwd.

Agreement:
http
Connector:
http://xxxx:xxxx/findOrder Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 210,
    "message": "Password update failed, please enter correct password",
    "brokerAccName": null,
    "data": null
}

Log Out

This API can unbind the relationship between your account and API according to brkoerAccName.

Agreement:
http
Connector:
http://xxxx:xxxx/findOrder Please contact customer service to get the test connector
Request:
post
Parameter:
Parameter Introduction

{
    "status_code": 204,
    "message": "Unbind successfully",
    "brokerAccName": null,
    "data": null
}