CRM Open API DocumentationCRM Open API Documentation
REST API
Webhooks
PSP Open API
External Exchange Rates
REST API
Webhooks
PSP Open API
External Exchange Rates
  • REST API Introduction
  • Authentication
  • Authentication V2
  • Clients API

    • Get List of Client
    • Get Client Information
    • Get Client Registration Details
    • Get Client KYC Details
    • Validate User's Credentials
    • Create Client
    • Get Uplines Information of client
    • Get Downlines Information of client
  • Leads API

    • Create Lead
  • Trading Servers Connections API

    • Get CRM Trading Platform Connections
  • MT4 API

    • Get MT4 Connection Information
    • Get MT4 Accounts
    • Create MT4 Account
    • Deposit into MT4 Account
    • Withdraw from MT4 Account
    • Get MT4 Trades
  • MT5 API

    • Get MT5 Connection Information
    • Get MT5 Accounts
    • Create MT5 Account
  • cTrader API

    • Get cTrader Connection Information
    • Get cTrader Accounts
  • Reports API

    • Get Fixed Commission Report
    • Get Flexible Commission Report
    • Get Transactions Report
  • Wallets API

    • Get Wallet Information
    • Update Wallet Balance
    • Get Update Wallet Balance Order status
  • Payments API

    • Get All Bankcards
  • Trading Competitions API

    • Get Trading Competition Leader Board
  • Requests API

    • Approve Withdrawal Requests
    • Reject Withdrawal Requests
  • Accounts API

    • Send Registration Request for OTP
    • Send Multi-Step Registration Request for Approval
  • Configurations API

    • Get Countries
    • Get States
    • Get Cities
  • Forms API

    • Get Trader Registration Form
    • Get User Kyc Form Collections
    • Get User Kyc Form
    • Get AWS S3 signature
  • TradingAccounts API

    • Get CRM Trading Account Types
  • Annex

    • Language Codes

Get MT4 Trades

GET /public/v1/mt4/trades

Query Parameters

KeyTypeRequiredRuleDescription
connection_idstringMandatoryminimum 0MT4 Server ID given by this API
typestringMandatoryminimum 0type of trades
startstringMandatoryYYYY-MM-DDstarting time
endstringMandatoryYYYY-MM-DDending time, must not exceed 3 months from starting time
skipnumberOptionalminimum 0 default 0the number of the records that is skipping from the full list
limitnumberOptionalminimum 0 maximum 500 default 10the number of records each page will show
user_idstringOptionallength 8filter trades by user id
loginnumberOptionalminimum 0filter trades by MT4 login
order_idnumberOptionalminimum 0filter trades by order id

Expected HTTP status code

  • 200

Response

NameTypeDescription
countnumbertotal number of the list
recordsarraylist of accounts in array
records[].loginnumberaccount login
records[].order_idnumberorder ticket number
records[].cmdnumberaction, 0 - buy, 1 - sell, 2 - buy limit, 3 - sell limit, 4 - buy stop, 5 - sell stop, 6 - balance, 7 - credit
records[].symbolstringtrade symbol
records[].volumenumbervolume in lots
records[].swapsnumberswaps
records[].stop_lossnumberstop loss
records[].take_profitnumbertake profit
records[].open_pricenumberopen price
records[].close_pricenumberclose price
records[].open_timestringopen time
records[].close_timestringclose time
records[].profitnumberprofit
records[].commissionnumbercommission
records[].commentstringcomment
records[].crm_userobjectaccount's CRM user information
records[].crm_user.idstringCRM user ID
records[].crm_user.emailstringCRM user's email
records[].crm_user.namestringCRM user's name
records[].crm_user.phone.numberstringCRM user's phone number
records[].crm_user.phone.country_codestringCRM user's phone country code
records[].crm_user.owner_idstringCRM user's owner's ID
records[].crm_user.owner_namestringCRM user's owner's name
records[].crm_user.referrer_idstringCRM user's referrer's ID
records[].crm_user.referrer_namestringCRM user's referrer's name
records[].crm_user.rank_idstringCRM user's rank ID
records[].crm_user.tierstringCRM user's tier

Error

CodeTypeDescription
400mt4_connection_not_foundCannot find connection from given connection_id

Type of Trades

TypeDescription
trade historyclosed trades
open positionopened trades
pending orderpending order
transactionsdeposit, withdrawal and credits
Last Updated:: 5/27/25, 10:21 AM
Prev
Withdraw from MT4 Account