EEdgeTrader
API — REST Reference

EdgeTrader API Documentation

A complete reference for the EdgeTrader REST API: Admin, Manager and User endpoints. Every route below shows the HTTP method, full path, required headers and a request body sample you can copy.

Base URL
https://api.edgetrader.io
Auth
Bearer JWT (admin / manager / user)
Format
application/json

Admin Api

Auth

POSTadmin login
Endpoint
POST /api/admin/login
Request body
{
    "login": 100,
    "password": "A12345"
}
cURL
curl -X POST 'https://api.edgetrader.io/api/admin/login' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": 100,
    "password": "A12345"
}'
POSTrefresh token
Endpoint
POST /api/admin/refresh-token
Request body
{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6MTAwLCJ1c2VyX2lkIjoiNjZjNDc0Y2MzOGQ0MmJlMzM2NzYyMGRlIiwiZ3JvdXBfaWQiOiI2NmM0NzRjY2Y5YTg1ZmE4OGNjYjcyMmIiLCJicm9rZXJfaWQiOiI2NmM0NzRjY2Y5YTg1ZmE4OGNjYjcyMjIiLCJyb2xlIjoiYWRtaW4iLCJwZXJtaXNzaW9ucyI6e30sImlhdCI6MTczNjkxNzA5NCwiZXhwIjoxNzY4NDUzMDk0fQ.Y8BzkqA6T_OYuNajOAwq5LjRUyDQnTuM4fCBan5iDt4",
    "role": "admin"
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/refresh-token' \
  -H 'Content-Type: application/json' \
  -d '{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6MTAwLCJ1c2VyX2lkIjoiNjZjNDc0Y2MzOGQ0MmJlMzM2NzYyMGRlIiwiZ3JvdXBfaWQiOiI2NmM0NzRjY2Y5YTg1ZmE4OGNjYjcyMmIiLCJicm9rZXJfaWQiOiI2NmM0NzRjY2Y5YTg1ZmE4OGNjYjcyMjIiLCJyb2xlIjoiYWRtaW4iLCJwZXJtaXNzaW9ucyI6e30sImlhdCI6MTczNjkxNzA5NCwiZXhwIjoxNzY4NDUzMDk0fQ.Y8BzkqA6T_OYuNajOAwq5LjRUyDQnTuM4fCBan5iDt4",
    "role": "admin"
}'
POSTactivity report
Endpoint
POST /api/admin/report/activities
Request body
{
"page": 1,
      "total": 100,
      "filters": {
        "date_from": "",
        "date_to": "",
        "action": "",
        "login": "",
        "create_login": "",
        "ip": "",
        "collection_name": "",
        "broker_id": ""
      }
}

// 66ef8fadc21a57b30c7c8ea3
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/activities' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
"page": 1,
      "total": 100,
      "filters": {
        "date_from": "",
        "date_to": "",
        "action": "",
        "login": "",
        "create_login": "",
        "ip": "",
        "collection_name": "",
        "broker_id": ""
      }
}

// 66ef8fadc21a57b30c7c8ea3'

Application

POSTmanage broker
Endpoint
POST /api/admin/manage-broker
Request body
{
            // "id": "665e8d24f9a85fa88c60fcf8",
            "name": "Real Broker Test",
            "address": "na",
            "company_address": "na",
            "company_email": "support@fxprrealbrokerofund.com",
            "company_name": "FX Pro Fund Limited 2",
            "company_phone": "+442056082500",
            "company_url": "https://fxprofund.com",
            "country": "United Kingdom",
            "email": "realbroker@gmail.com",
            "logo_url": "https://backoffice.fxprofund.com/public/Uploads/logos/fxpf_favicon_icon_1717070814.png",
            "phone": "+442056082500",
            "state": "London",
            "type": "demo",
            "status": "active",
            "zip": "234"
        }

// {
//             "_id": "665dc050f9a85fa88c3978f8",
//             "name": "FX Pro Fund",
//             "__v": 0,
//             "address": "Test Address",
//             "broker_id": "64e32efa0ffd5cf5d0827aa7",
//             "company_address": "Test company address",
//             "company_email": "company555@gmail.com",
//             "company_name": "FX Pro Fund",
//             "company_phone": "09876543",
//             "company_url": "http://testbroker.com",
//             "country": "London",
//             "createdAt": "2024-06-03T13:08:32.267Z",
//             "email": "fxprofund@gmail.com",
//             "logo_url": "http://testbroker.com/logo.png",
//             "phone": "017621126666",
//             "state": "Ashia",
//             "status": "active",
//             "updatedAt": "2024-06-03T13:08:32.267Z",
//             "zip": "234"
//         }

// ## use  id for update only
cURL
curl -X POST 'http://190.92.173.200:5000/api/admin/manage-broker' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
            // "id": "665e8d24f9a85fa88c60fcf8",
            "name": "Real Broker Test",
            "address": "na",
            "company_address": "na",
            "company_email": "support@fxprrealbrokerofund.com",
            "company_name": "FX Pro Fund Limited 2",
            "company_phone": "+442056082500",
            "company_url": "https://fxprofund.com",
            "country": "United Kingdom",
            "email": "realbroker@gmail.com",
            "logo_url": "https://backoffice.fxprofund.com/public/Uploads/logos/fxpf_favicon_icon_1717070814.png",
            "phone": "+442056082500",
            "state": "London",
            "type": "demo",
            "status": "active",
            "zip": "234"
        }

// {
//             "_id": "665dc050f9a85fa88c3978f8",
//             "name": "FX Pro Fund",
//             "__v": 0,
//             "address": "Test Address",
//             "broker_id": "64e32efa0ffd5cf5d0827aa7",
//             "company_address": "Test company address",
//             "company_email": "company555@gmail.com",
//             "company_name": "FX Pro Fund",
//             "company_phone": "09876543",
//             "company_url": "http://testbroker.com",
//             "country": "London",
//             "createdAt": "2024-06-03T13:08:32.267Z",
//             "email": "fxprofund@gmail.com",
//             "logo_url": "http://testbroker.com/logo.png",
//             "phone": "017621126666",
//             "state": "Ashia",
//             "status": "active",
//             "updatedAt": "2024-06-03T13:08:32.267Z",
//             "zip": "234"
//         }

// ## use  id for update only'
POSTmanage spread
Endpoint
POST /api/admin/manage-spread
Request body
{
    "symbol": "EURGBP",
    "group": "RPL_USD_ECN_01",
    "spread": 0.00015,
    "type": "fixed",
    "status": "active"
}
cURL
curl -X POST 'https://edge-server.com/api/admin/manage-spread' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "symbol": "EURGBP",
    "group": "RPL_USD_ECN_01",
    "spread": 0.00015,
    "type": "fixed",
    "status": "active"
}'
POSTmanage group
Endpoint
POST /api/admin/manage-group
Request body
{
    "login": 100,
    "group_name": "EDGE_GROUP_DEMO",
    "min_leverage": 1,
    "max_leverage": 500,
    "total_account": 20000,
    "margin_limit": 150,
    "role": "user",
    "status": "active",
    "symbols": [
        {
            "symbol": "*",
            "market_depth": true,
            "market_depth_limit": "unlimited"
        },
        {
            "symbol": "EURUSD",
            "market_depth": false,
            "market_depth_limit": "unlimited"
        }
    ]
}

// #use id if need to edit group name also
cURL
curl -X POST 'https://edge-server.com/api/admin/manage-group' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "group_name": "EDGE_GROUP_DEMO",
    "min_leverage": 1,
    "max_leverage": 500,
    "total_account": 20000,
    "margin_limit": 150,
    "role": "user",
    "status": "active",
    "symbols": [
        {
            "symbol": "*",
            "market_depth": true,
            "market_depth_limit": "unlimited"
        },
        {
            "symbol": "EURUSD",
            "market_depth": false,
            "market_depth_limit": "unlimited"
        }
    ]
}

// #use id if need to edit group name also'
POSTSet Gateway
Endpoint
POST /api/manager/set-gateway
Request body
{
    "gateway_id": 1
}
cURL
curl -X POST 'https://edge-server.com/api/manager/set-gateway' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "gateway_id": 1
}'

Account

POSTcreate account
Endpoint
POST /api/admin/create-account
Request body
{
    "login": 0,
    "name": "Jhon",
    "last_name": "",
    "middle_name": "",
    "group": "RPL_USD_ECN_01",
    "leverage": 100,
    "email": "webapi@gmail.com",
    "password": "A12345",
    "investor_password": "IA12345",
    "phone": "345678",
    "country": "United Kingdom",
    "state": "London",
    "zip": "1210",
    "address": "na",
    "company": "na",
    "language": "EN",
    "id_number": "",
    "comment": "",
    "lead_campaign": "",
    "lead_source": "",
    "color": "",
    "bank_account": "",
    "agent_account": "",
    "enable_account": true,
    "enable_password_change": true,
    "enable_onetime_password": false,
    "change_password_next_login": false,
    "permissions": {},
    "role": "manager",
    "account": [
        { "gateway_id": "Test", "account": 0 }
    ],
    "status": "active"
}
cURL
curl -X POST 'https://web-api.edge-server.com/api/admin/create-account' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 0,
    "name": "Jhon",
    "last_name": "",
    "middle_name": "",
    "group": "RPL_USD_ECN_01",
    "leverage": 100,
    "email": "webapi@gmail.com",
    "password": "A12345",
    "investor_password": "IA12345",
    "phone": "345678",
    "country": "United Kingdom",
    "state": "London",
    "zip": "1210",
    "address": "na",
    "company": "na",
    "language": "EN",
    "id_number": "",
    "comment": "",
    "lead_campaign": "",
    "lead_source": "",
    "color": "",
    "bank_account": "",
    "agent_account": "",
    "enable_account": true,
    "enable_password_change": true,
    "enable_onetime_password": false,
    "change_password_next_login": false,
    "permissions": {},
    "role": "manager",
    "account": [
        { "gateway_id": "Test", "account": 0 }
    ],
    "status": "active"
}'
POSTupdate account
Endpoint
POST /api/admin/update-account
Request body
{
    "login": 101,
    "name": "admin 1",
    "last_name": "Ahmed",
    "middle_name": "Arif",
    "group": "RPL_USD_ECN_01",
    "leverage": 100,
    "email": "tttt@gmail.com",
    "phone": "87654",
    "country": "India",
    "state": "ttt",
    "zip": "1230",
    "address": "na",
    "company": "na",
    "language": "EN",
    "id_number": "",
    "comment": "",
    "lead_campaign": "",
    "lead_source": "",
    "color": "",
    "bank_account": "",
    "agent_account": "",
    "enable_account": true,
    "enable_password_change": true,
    "enable_onetime_password": false,
    "change_password_next_login": false,
    "permissions": {
        "api": ["change_password", "update_account"],
        "group": []
    },
    "role": "user",
    "account": [
        { "gateway_id": "Test", "account": 32 }
    ],
    "status": "active"
}
cURL
curl -X POST 'https://edge-server.com/api/admin/update-account' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 101,
    "name": "admin 1",
    "last_name": "Ahmed",
    "middle_name": "Arif",
    "group": "RPL_USD_ECN_01",
    "leverage": 100,
    "email": "tttt@gmail.com",
    "phone": "87654",
    "country": "India",
    "state": "ttt",
    "zip": "1230",
    "address": "na",
    "company": "na",
    "language": "EN",
    "id_number": "",
    "comment": "",
    "lead_campaign": "",
    "lead_source": "",
    "color": "",
    "bank_account": "",
    "agent_account": "",
    "enable_account": true,
    "enable_password_change": true,
    "enable_onetime_password": false,
    "change_password_next_login": false,
    "permissions": {
        "api": ["change_password", "update_account"],
        "group": []
    },
    "role": "user",
    "account": [
        { "gateway_id": "Test", "account": 32 }
    ],
    "status": "active"
}'
POSTdelete account
Endpoint
POST /api/admin/delete-account
Request body
{
    "login": 101
}
cURL
curl -X POST 'https://edge-server.com/api/admin/delete-account' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": 101
}'
POSTbalance update
Endpoint
POST /api/admin/balance-update
Request body
{
    "login": 105,
    "amount": 100,
    "comment": "Deposit"
}
cURL
curl -X POST 'https://edge-server.com/api/admin/balance-update' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 105,
    "amount": 100,
    "comment": "Deposit"
}'

Order

POSTcreate market order
Endpoint
POST /api/admin/open-order
Request body
{
    "login": 100,
    "symbol": "EURUSD",
    "type": 0,
    "volume": 0.01,
    "sl": 0,
    "tp": 0
}
cURL
curl -X POST 'https://edge-server.com/api/admin/open-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "symbol": "EURUSD",
    "type": 0,
    "volume": 0.01,
    "sl": 0,
    "tp": 0
}'
POSTcreate pending order
Endpoint
POST /api/user/open-order
Request body
{
    "login": 100,
    "symbol": "EURUSD",
    "type": 3,
    "volume": 0.01,
    "sl": 0,
    "tp": 0,
    "price": 1.12318,
    "expire": 0
}
cURL
curl -X POST 'https://edge-server.com/api/user/open-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "symbol": "EURUSD",
    "type": 3,
    "volume": 0.01,
    "sl": 0,
    "tp": 0,
    "price": 1.12318,
    "expire": 0
}'
POSTclose order
Endpoint
POST /api/user/close-order
Request body
{
    "login": 100,
    "order": 4
}
cURL
curl -X POST 'https://edge-server.com/api/user/close-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "order": 4
}'
POSTupdate order
Endpoint
POST /api/user/update-order
Request body
{
    "login": 100,
    "order": 4,
    "sl": 1.12322,
    "tp": 1.12301,
    "price": 0,
    "expire": 0
}

// ## expire, price for pending order modify
cURL
curl -X POST 'https://edge-server.com/api/user/update-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "order": 4,
    "sl": 1.12322,
    "tp": 1.12301,
    "price": 0,
    "expire": 0
}

// ## expire, price for pending order modify'

Security

POSTchange password
Endpoint
POST /api/admin/change-password
Request body
{
    "login": 105,
    "password": "A12345"
    // "type": "PASS_MASTER"
}
cURL
curl -X POST 'https://edge-server.com/api/admin/change-password' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 105,
    "password": "A12345"
    // "type": "PASS_MASTER"
}'
POSTcheck password
Endpoint
POST /api/admin/check-password
Request body
{
    "login": 105,
    "password": "A12345",
    "type": "PASS_MASTER"
}

// #type PASS_MASTER | PASS_INVESTOR
cURL
curl -X POST 'https://edge-server.com/api/admin/check-password' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 105,
    "password": "A12345",
    "type": "PASS_MASTER"
}

// #type PASS_MASTER | PASS_INVESTOR
'

Report

GETget all users
Endpoint
GET /api/admin/report/clients
cURL
curl -X GET 'http://194.163.171.204:5000/api/admin/report/clients' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>'
POSTget all online clients
Endpoint
POST /api/admin/report/online-clients
Request body
{
    "page": 1,
    "total": 100,
    "filters": {
        "date_from": "",
        "date_to": "",
        "group_id": "",
        "account": ""
    }
}
cURL
curl -X POST 'https://edge-server.com/api/admin/report/online-clients' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 100,
    "filters": {
        "date_from": "",
        "date_to": "",
        "group_id": "",
        "account": ""
    }
}'
POSTget all trades history
Endpoint
POST /api/admin/report/trade-history
Request body
{
    "page": 1,
    "total": 500,
    "filters": {
        "order": "",
        // "account": ,
        // "date_from": "",
        // "date_to": "2024-06-03T18:00:00.000Z",
        "group_id": [],
        "type": [],
        "symbol": "",
        "state": "4",
        "reason": "",
        "activation": ""
        
    }
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/trade-history' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 500,
    "filters": {
        "order": "",
        // "account": ,
        // "date_from": "",
        // "date_to": "2024-06-03T18:00:00.000Z",
        "group_id": [],
        "type": [],
        "symbol": "",
        "state": "4",
        "reason": "",
        "activation": ""
        
    }
}'
POSTget spread
Endpoint
POST /api/admin/report/get-spread
Request body
{
    "page": 1,
    "total": 10,
    "filters": {
        "group_id": "665db9fbf9a85fa88c35695c"
    }
}
cURL
curl -X POST 'https://edge-server.com/api/admin/report/get-spread' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 10,
    "filters": {
        "group_id": "665db9fbf9a85fa88c35695c"
    }
}'
POSTget all ips
Endpoint
POST /api/admin/report/get-ips
Request body
{
    "page": 1,
    "total": 500,
    "filters": {
        "type": "",
        "status": "active"
    }
}
// #filter(optional) -> array (type, status)
cURL
curl -X POST 'https://edge-server.com/api/admin/report/get-ips' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 500,
    "filters": {
        "type": "",
        "status": "active"
    }
}
// #filter(optional) -> array (type, status)'
POSTposition-by-reason
Endpoint
POST /api/admin/report/position-by-reason
Request body
{
    "date_from": "2024-10-20",
    "date_to": "2024-11-18"
}
// optional
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/position-by-reason' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "date_from": "2024-10-20",
    "date_to": "2024-11-18"
}
// optional'

Feed

POSTGet all feed
Endpoint
POST /api/admin/report/get-feeds
cURL
curl -X POST 'https://api.edgetrader.io/api/admin/report/get-feeds' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>'
POSTGet feed symbol
Endpoint
POST /api/admin/report/get-feed-symbols
Request body
{
    "id": "66c47f8ff9a85fa88cccadd2"
}
cURL
curl -X POST 'http://185.208.206.107:5101/api/admin/report/get-feed-symbols' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "id": "66c47f8ff9a85fa88cccadd2"
}'
POSTManage feed
Endpoint
POST /api/admin/manage-feed
Request body
{
    //"id": "66bc3cbd531c6930ab1b0c5b",
    "name": "MetaTrader4Feed",
    "url": "localhost:3002",
    "secure": "none",
    "spread": 0,
    "type": "mt4",
    "server": "mt4-sg.exclusivemarkets.com:443",
    "account": 153,
    "password": "cU2hnaL",
    "status": "active"
}

// #secuire (optional) -> 1.ssl 2.none
// #id for update




// {
//     "url": "localhost:3005",
//     "secure": "none",
//     "spread": 0,
//     "status": "active"
// }
cURL
curl -X POST 'http://190.92.173.200:5000/api/admin/manage-feed' \
  -H 'Content-Type: application/json' \
  -d '
{
    //"id": "66bc3cbd531c6930ab1b0c5b",
    "name": "MetaTrader4Feed",
    "url": "localhost:3002",
    "secure": "none",
    "spread": 0,
    "type": "mt4",
    "server": "mt4-sg.exclusivemarkets.com:443",
    "account": 153,
    "password": "cU2hnaL",
    "status": "active"
}

// #secuire (optional) -> 1.ssl 2.none
// #id for update




// {
//     "url": "localhost:3005",
//     "secure": "none",
//     "spread": 0,
//     "status": "active"
// }'
POSTDelete feed
Endpoint
POST /api/admin/delete-feed
Request body
{
    "id": "localhost:3005"
   
}
cURL
curl -X POST 'http://190.92.173.200:5000/api/admin/delete-feed' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "localhost:3005"
   
}
'

Symbol

POSTManage symbol
Endpoint
POST /api/admin/manage-symbol
Request body
{
    "id": "66a5fd3c71418ea24af61b8a",
    "symbol": "AUDUSD",
    "base": "AUD",
    "quote": "USD",
    "market": "forex",
    "lot": 100000,
    "pip": 0.001,
    "digits": 5,
    "exchange": "AUDUSD",
    "symbol_data": "AUDUSD",
    "feed_id": "6665689e9d8db354e3050f6a",
    "status": "active",
    "isin": "test",
    "cfi": "na",
    "basis": "test",
    "description": "This is symbol description",
    "international": "in",
    "industry": "industry",
    "country": "US",
    "category": "Forex",
    "page": "1",
    "market_depth": 10,
    "spread": "on",
    "spread_blance": 0,
    "chart_mode": "by bid price"
}

// id for update only
cURL
curl -X POST 'http://190.92.173.200:5000/api/admin/manage-symbol' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "66a5fd3c71418ea24af61b8a",
    "symbol": "AUDUSD",
    "base": "AUD",
    "quote": "USD",
    "market": "forex",
    "lot": 100000,
    "pip": 0.001,
    "digits": 5,
    "exchange": "AUDUSD",
    "symbol_data": "AUDUSD",
    "feed_id": "6665689e9d8db354e3050f6a",
    "status": "active",
    "isin": "test",
    "cfi": "na",
    "basis": "test",
    "description": "This is symbol description",
    "international": "in",
    "industry": "industry",
    "country": "US",
    "category": "Forex",
    "page": "1",
    "market_depth": 10,
    "spread": "on",
    "spread_blance": 0,
    "chart_mode": "by bid price"
}

// id for update only'

IP Settings

POSTmanage ip
Endpoint
POST /api/admin/manage-ip
Request body
{
    "ip": "2160.76.120.40",
    "type": "allow", 
    "status": "active"
}

// #type(optional) -> 1.allow 2.deny
// #status(optional) -> 1.active 2.inactive
// #use id if need to edit ip also
cURL
curl -X POST 'https://edge-server.com/api/admin/manage-ip' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "ip": "2160.76.120.40",
    "type": "allow", 
    "status": "active"
}

// #type(optional) -> 1.allow 2.deny
// #status(optional) -> 1.active 2.inactive
// #use id if need to edit ip also'
POSTdelete ip
Endpoint
POST /api/admin/delete-ip
Request body
{
    "id": "665044668daa2ea44f09c306"
}
cURL
curl -X POST 'https://edge-server.com/api/admin/delete-ip' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "id": "665044668daa2ea44f09c306"
}'

Update

POSTmanage update
Endpoint
POST /api/admin/manage-update
Request body
{
    "login": 100,
    "version": 0.01,
    "type": "ios",
    "force": false
}
cURL
curl -X POST 'https://edge-server.com/api/admin/manage-update' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "version": 0.01,
    "type": "ios",
    "force": false
}'
POSTget update
Endpoint
POST /api/admin/report/get-update
Request body
{
    "type": "ios",
    "version": 0.01
}
cURL
curl -X POST 'https://edge-server.com/api/admin/report/get-update' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "type": "ios",
    "version": 0.01
}'

holiday

POSTManage holiday
Endpoint
POST /api/admin/manage-holiday
Request body
{
    //"id": "670b5ce0e0dc8d59dca9f61a",
    "description": "Test Holiday",
    "date": "2025-10-18",
    "from": "09:00",
    "to": "21:00",
    "every_year": false,
    "symbols": ["EURUSD", "GBPUSD"],
    "status": "active"
}
// id for edit
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/manage-holiday' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    //"id": "670b5ce0e0dc8d59dca9f61a",
    "description": "Test Holiday",
    "date": "2025-10-18",
    "from": "09:00",
    "to": "21:00",
    "every_year": false,
    "symbols": ["EURUSD", "GBPUSD"],
    "status": "active"
}
// id for edit'
POSTget all holiday
Endpoint
POST /api/admin/report/holidays
Request body
{
    // "id": "6710ba09e0dc8d59dcaa8dff",
    // "status": "active"
}
// #id, status is optional
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/holidays' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    // "id": "6710ba09e0dc8d59dcaa8dff",
    // "status": "active"
}
// #id, status is optional'
POSTdelete holiday
Endpoint
POST /api/admin/delete-holiday
Request body
{
    "id": "6710ba09e0dc8d59dcaa8dff"
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/delete-holiday' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "6710ba09e0dc8d59dcaa8dff"
}'

Gateway

POSTmanage gateway
Endpoint
POST /api/admin/manage-gateway
Request body
{
    "id": "67137ff574e6d8d8282dad2d",
    "name": "IntegralGateway",
    "server": "localhost:8080",
    "account": "1000",
    "password": "A12345",
    "module": "integral",
    "type": "trade",
    "groups": [],
    "symbols": ["*"],
    "translations": {"EURUSD": "EUR/USD", "GBPUSD": "GBP/USD"},
    "parameters": {
        "ConnectionType":"initiator",
        "ReconnectInterval":2,
        "FileStorePath":"store",
        "FileLogPath":"log",
        "StartTime":"00:00:00",
        "EndTime":"00:00:00",
        "UseDataDictionary":"N",
        "SocketConnectHost":"localhost",
        "SocketConnectPort":11503,
        "LogoutTimeout":100,
        "ResetOnLogon":"Y",
        "ResetOnDisconnect":"Y",
        "Username":"APIUser",
        "Password":"Forex1234*",
        "SenderSubID":"2000190082",
        "ValidateFieldsOutOfOrder":"N",
        "ValidateUserDefinedFields":"N",
        "BeginString":"FIX.4.3",
        "SenderCompID":"order.2000190082.1",
        "TargetCompID":"demo.fxgrid",
        "HeartBtInt":30
    },
    "status": "active"
}
// #id for edit
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/manage-gateway' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "id": "67137ff574e6d8d8282dad2d",
    "name": "IntegralGateway",
    "server": "localhost:8080",
    "account": "1000",
    "password": "A12345",
    "module": "integral",
    "type": "trade",
    "groups": [],
    "symbols": ["*"],
    "translations": {"EURUSD": "EUR/USD", "GBPUSD": "GBP/USD"},
    "parameters": {
        "ConnectionType":"initiator",
        "ReconnectInterval":2,
        "FileStorePath":"store",
        "FileLogPath":"log",
        "StartTime":"00:00:00",
        "EndTime":"00:00:00",
        "UseDataDictionary":"N",
        "SocketConnectHost":"localhost",
        "SocketConnectPort":11503,
        "LogoutTimeout":100,
        "ResetOnLogon":"Y",
        "ResetOnDisconnect":"Y",
        "Username":"APIUser",
        "Password":"Forex1234*",
        "SenderSubID":"2000190082",
        "ValidateFieldsOutOfOrder":"N",
        "ValidateUserDefinedFields":"N",
        "BeginString":"FIX.4.3",
        "SenderCompID":"order.2000190082.1",
        "TargetCompID":"demo.fxgrid",
        "HeartBtInt":30
    },
    "status": "active"
}
// #id for edit'
POSTget all gateway
Endpoint
POST /api/admin/report/gateways
Request body
{
    // "id": "6710ba09e0dc8d59dcaa8dff",
    // "status": "active"
}
// #id, status is optional
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/gateways' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    // "id": "6710ba09e0dc8d59dcaa8dff",
    // "status": "active"
}
// #id, status is optional'
POSTdelete gateway
Endpoint
POST /api/admin/delete-gateway
Request body
{
    "id": "6710ba09e0dc8d59dcaa8dff"
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/delete-gateway' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "6710ba09e0dc8d59dcaa8dff"
}'

Mail Config

POSTGet All Mail Config
Endpoint
POST /api/admin/report/mail-configs
Request body
{
    //"id": "6710ba09e0dc8d59dcaa8dff",
    //"status": "active"
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/mail-configs' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    //"id": "6710ba09e0dc8d59dcaa8dff",
    //"status": "active"
}'
POSTmanage Mail Config
Endpoint
POST /api/admin/manage-mail-config
Request body
{
    "name": "MySmtp1",
    "sender_email": "test@mt5.itcornerltd.com",
    "sender_name": "EDGE Sender",
    "server": "mail.mt5.itcornerltd.com",
    "port": 26,
    "ssl": false,
    "login": "test@mt5.itcornerltd.com",
    "password": "DtDu5(uUO&*1",
    "default": true,
    "status": "active"
}
// #id for edit
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/manage-mail-config' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "name": "MySmtp1",
    "sender_email": "test@mt5.itcornerltd.com",
    "sender_name": "EDGE Sender",
    "server": "mail.mt5.itcornerltd.com",
    "port": 26,
    "ssl": false,
    "login": "test@mt5.itcornerltd.com",
    "password": "DtDu5(uUO&*1",
    "default": true,
    "status": "active"
}
// #id for edit'
POSTDelete mail config
Endpoint
POST /api/admin/delete-mail-config
Request body
{
    "id": "6744165d023770d93224e033"
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/delete-mail-config' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "id": "6744165d023770d93224e033"
}'

Backup

POSTget all backup config
Endpoint
POST /api/admin/report/backup-config
Request body
{}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/backup-config' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{}'
POSTmanage backup
Endpoint
POST /api/admin/manage-backup
Request body
{
    "type": "local",
    "ip": "85.190.254.39",
    "username": "Administrator",
    "password": "NUCdev1000#",
    "path": "C:/Backup",
    "interval": 1,
    "status": "inactive"
}
// #id for edit
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/manage-backup' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "type": "local",
    "ip": "85.190.254.39",
    "username": "Administrator",
    "password": "NUCdev1000#",
    "path": "C:/Backup",
    "interval": 1,
    "status": "inactive"
}
// #id for edit'
POSTget all export config
Endpoint
POST /api/admin/report/export-config
Request body
{}
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/report/export-config' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{}'
POSTmanage export
Endpoint
POST /api/admin/manage-export
Request body
{
    "type": "mongodb",
    "server": "localhost:4000",
    "account": "hghg",
    "password": "tytyt",
    "database": "backup_edge_cs",
    "interval": 1,
    "status": "active"
}
// #id for edit
cURL
curl -X POST 'http://194.163.171.204:5000/api/admin/manage-export' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "type": "mongodb",
    "server": "localhost:4000",
    "account": "hghg",
    "password": "tytyt",
    "database": "backup_edge_cs",
    "interval": 1,
    "status": "active"
}
// #id for edit'

Manager API

Auth

POSTManager login
Endpoint
POST /api/manager/login
Request body
{
    "login": 105,
    "password": "Fun@12345"
}
cURL
curl -X POST 'http://185.208.206.107:5101/api/manager/login' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": 105,
    "password": "Fun@12345"
}'
POSTmanager refresh token
Endpoint
POST /api/manager/refresh-token
Request body
{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6MTAyLCJ1c2VyX2lkIjoiNjZjZDc5MGFmMDE3YmIyOGZkNGZlOGY1IiwiZ3JvdXBfaWQiOiI2NmM0NzlkMGY5YTg1ZmE4OGNjYjk2NzUiLCJicm9rZXJfaWQiOiI2NmM0NzljZmY5YTg1ZmE4OGNjYjk2NjEiLCJyb2xlIjoibWFuYWdlciIsInBlcm1pc3Npb25zIjp7fSwiaWF0IjoxNzU3NTgzMzg3LCJleHAiOjE3ODkxMTkzODd9.gOsC9HpyHLPjCvDlLgfpHGD-562YwR2kRtlYmVhZtyU",
    "role": "manager"
}
cURL
curl -X POST 'http://185.208.206.107:5101/api/manager/refresh-token' \
  -H 'Content-Type: application/json' \
  -d '{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6MTAyLCJ1c2VyX2lkIjoiNjZjZDc5MGFmMDE3YmIyOGZkNGZlOGY1IiwiZ3JvdXBfaWQiOiI2NmM0NzlkMGY5YTg1ZmE4OGNjYjk2NzUiLCJicm9rZXJfaWQiOiI2NmM0NzljZmY5YTg1ZmE4OGNjYjk2NjEiLCJyb2xlIjoibWFuYWdlciIsInBlcm1pc3Npb25zIjp7fSwiaWF0IjoxNzU3NTgzMzg3LCJleHAiOjE3ODkxMTkzODd9.gOsC9HpyHLPjCvDlLgfpHGD-562YwR2kRtlYmVhZtyU",
    "role": "manager"
}'

Report

POSTGet All User
Endpoint
POST /api/manager/report/clients
Request body
{
    "page": 1,
    "total": 100,
    "filters": {
        "date_from": "",
        "date_to": "",
        "group_id": "",
        "account": ""
    }
}
cURL
curl -X POST 'https://edge-server.com/api/manager/report/clients' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 100,
    "filters": {
        "date_from": "",
        "date_to": "",
        "group_id": "",
        "account": ""
    }
}'
POSTget all online users
Endpoint
POST /api/manager/report/online-clients
cURL
curl -X POST 'http://194.163.171.204:5000/api/manager/report/online-clients' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>'
POSTget trade history
Endpoint
POST /api/manager/report/trade-history
Request body
{
    "page": 1,
    "total": 5000,
    "filters": {
        "order": "",
        "account": "",
        "date_from": "",
        "date_to": "",
        "group_id": "",
        "type": "",
        "symbol": "",
        "state": "4",
        "reason": "",
        "activation": ""
    }
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/manager/report/trade-history' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 5000,
    "filters": {
        "order": "",
        "account": "",
        "date_from": "",
        "date_to": "",
        "group_id": "",
        "type": "",
        "symbol": "",
        "state": "4",
        "reason": "",
        "activation": ""
    }
}'
POSTactivity report
Endpoint
POST /api/manager/report/activities
Request body
{
    "page": 1,
    "total": 10,
    "filters": {
        "date_from": "",
        "date_to": "",
        "action": "",
        "login": "",
        "create_login": "",
        "ip": "",
        "collection_name": "",
        "broker_id": ""
    }
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/manager/report/activities' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 10,
    "filters": {
        "date_from": "",
        "date_to": "",
        "action": "",
        "login": "",
        "create_login": "",
        "ip": "",
        "collection_name": "",
        "broker_id": ""
    }
}'
POSTposition-by-reason
Endpoint
POST /api/manager/report/position-by-reason
Request body
{
    "date_from": "2024-01-25",
    "date_to": "2024-11-26"
}
// optional
cURL
curl -X POST 'http://194.163.171.204:5000/api/manager/report/position-by-reason' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "date_from": "2024-01-25",
    "date_to": "2024-11-26"
}
// optional'

Order

POSTCreate Market Order
Endpoint
POST {{API_URL}}/manager/open-order
Request body
{
    "login": 100,
    "symbol": "EURUSD",
    "type": 0,
    "volume": 0.01,
    "sl": 0,
    "tp": 0
}
cURL
curl -X POST '{{API_URL}}/manager/open-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "symbol": "EURUSD",
    "type": 0,
    "volume": 0.01,
    "sl": 0,
    "tp": 0
}'
POSTCreate Pending Order
Endpoint
POST {{API_URL}}/manager/open-order
Request body
{
    "login": 100,
    "symbol": "EURUSD",
    "type": 3,
    "volume": 0.01,
    "sl": 0,
    "tp": 0,
    "price": 1.12318,
    "expire": 0
}
cURL
curl -X POST '{{API_URL}}/manager/open-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "symbol": "EURUSD",
    "type": 3,
    "volume": 0.01,
    "sl": 0,
    "tp": 0,
    "price": 1.12318,
    "expire": 0
}'
POSTUpdate Order
Endpoint
POST {{API_URL}}/manager/update-order
Request body
{
    "login": 100,
    "order": 4,
    "sl": 1.12322,
    "tp": 1.12301,
    "price": 0,
    "expire": 0
}
// expire, price for pending order modify
cURL
curl -X POST '{{API_URL}}/manager/update-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "order": 4,
    "sl": 1.12322,
    "tp": 1.12301,
    "price": 0,
    "expire": 0
}
// expire, price for pending order modify'
POSTClose Order
Endpoint
POST {{API_URL}}/manager/close-order
Request body
{
    "login": 10003,
    "order": 2
}
cURL
curl -X POST '{{API_URL}}/manager/close-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 10003,
    "order": 2
}'

Account

POSTCreate Account
Endpoint
POST /api/manager/create-account
Request body
{
    "login": 0,
    "name": "Roni",
    "last_name": "Mondal",
    "middle_name": "Arif",
    "group": "EDGE_ECN_LIVE",
    "leverage": 100,
    "email": "roni@gmail.com",
    "password": "A12345",
    "investor_password": "IA12345",
    "phone": "345678",
    "country": "India",
    "state": "Ashia",
    "zip": "1210",
    "address": "na",
    "company": "na",
    "language": "EN",
    "id_number": "",
     "type":  "live",
    "comment": "",
    "lead_campaign": "",
    "lead_source": "",
    "color": "",
    "bank_account": "",
    "agent_account": "",
    "enable_account": true,
    "enable_password_change": true,
    "enable_onetime_password": false,
    "change_password_next_login": false,
    "permissions": {},
    "role": "user",
    "account": [
        { "gateway_id": "Test", "account": 0 }
    ],
    "status": "active"
}

// login: values.login,
//         name: values.name,
//         last_name: values.last_name,
//         middle_name: values.middle_name,
//         group: values.group,
//         leverage: values.leverage,
//         email: values.email,
//         password: values.master_password,
//         investor_password: values.investor_password,
//         phone: values.phone_password,
//         country: values.country,
//         state: values.state,
//         zip: values.zip,
//         address: values.address,
//         company: values.company,
//         language: values?.language || "en",
//         id_number: "",
//         type: values.type || "live",
//         enable_account: true,
//         enable_password_change: true,
//         enable_onetime_password: false,
//         change_password_next_login: false,
//         permissions: {},
//         role: values.role,
//         account: [],
//         status: "active",
cURL
curl -X POST 'http://185.208.206.107:5101/api/manager/create-account' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 0,
    "name": "Roni",
    "last_name": "Mondal",
    "middle_name": "Arif",
    "group": "EDGE_ECN_LIVE",
    "leverage": 100,
    "email": "roni@gmail.com",
    "password": "A12345",
    "investor_password": "IA12345",
    "phone": "345678",
    "country": "India",
    "state": "Ashia",
    "zip": "1210",
    "address": "na",
    "company": "na",
    "language": "EN",
    "id_number": "",
     "type":  "live",
    "comment": "",
    "lead_campaign": "",
    "lead_source": "",
    "color": "",
    "bank_account": "",
    "agent_account": "",
    "enable_account": true,
    "enable_password_change": true,
    "enable_onetime_password": false,
    "change_password_next_login": false,
    "permissions": {},
    "role": "user",
    "account": [
        { "gateway_id": "Test", "account": 0 }
    ],
    "status": "active"
}

// login: values.login,
//         name: values.name,
//         last_name: values.last_name,
//         middle_name: values.middle_name,
//         group: values.group,
//         leverage: values.leverage,
//         email: values.email,
//         password: values.master_password,
//         investor_password: values.investor_password,
//         phone: values.phone_password,
//         country: values.country,
//         state: values.state,
//         zip: values.zip,
//         address: values.address,
//         company: values.company,
//         language: values?.language || "en",
//         id_number: "",
//         type: values.type || "live",
//         enable_account: true,
//         enable_password_change: true,
//         enable_onetime_password: false,
//         change_password_next_login: false,
//         permissions: {},
//         role: values.role,
//         account: [],
//         status: "active",'
POSTUPDATE ACCOUNT
Endpoint
POST /api/manager/update-account
Request body
{
    // "middle_name": null,
    // "last_name": null,
    // "name": "Rakib",
    "login": 999,
    // "leverage": 500,
    // "email": "rakib@itcorneronline.com",
    // "phone": "01794060623",
    // "language": "EN",
    // "country": "Bangladesh",
    // "state": "Dhaka",
    // "zip": "1230",
    // "address": "H-440",
    // "company": null,
    // "id_number": null,
    // "comment": null,
    // "lead_campaign": null,
    // "lead_source": null,
    // "color": null,
    // "bank_account": null,
    // "agent_account": null,
    // "enable_account": true,
    // "enable_password_change": false,
    // "enable_onetime_password": false,
    // "change_password_next_login": false,
    // "account": [],
    // "permissions": {
    //     "group": ["65802937f9a85fa88cec6c73"]
    // },
    // "role": "admin",
    "status": "active"
}
// {
//     "name": "Arif Ahmed2",
//     "middle_name": "Arif",
//     "last_name": "Ahmed",
//     "login": 412,
//     "leverage": 100,
//     "email": "tttt@gmail.com",
//     "group": "demo group",
//     "phone": "87654",
//     "language": "EN",
//     "country": "India",
//     "state": "ttt",
//     "zip": "1230",
//     "address": "na",
//     "company": "na",
//     "id_number": null,
//     "comment": null,
//     "lead_campaign": null,
//     "lead_source": null,
//     "color": null,
//     "bank_account": null,
//     "agent_account": null,
//     "enable_account": true,
//     "enable_password_change": true,
//     "enable_onetime_password": false,
//     "change_password_next_login": false,
//     "account": [
//         {
//             "gateway_id": "Test",
//             "account": 32
//         }
//     ],
//     "status": "active",
//     "permissions": {
//         "api": [],
//         "group": []
//     },
//     "role": "manager",
// }
cURL
curl -X POST 'http://185.208.206.107:5000/api/manager/update-account' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    // "middle_name": null,
    // "last_name": null,
    // "name": "Rakib",
    "login": 999,
    // "leverage": 500,
    // "email": "rakib@itcorneronline.com",
    // "phone": "01794060623",
    // "language": "EN",
    // "country": "Bangladesh",
    // "state": "Dhaka",
    // "zip": "1230",
    // "address": "H-440",
    // "company": null,
    // "id_number": null,
    // "comment": null,
    // "lead_campaign": null,
    // "lead_source": null,
    // "color": null,
    // "bank_account": null,
    // "agent_account": null,
    // "enable_account": true,
    // "enable_password_change": false,
    // "enable_onetime_password": false,
    // "change_password_next_login": false,
    // "account": [],
    // "permissions": {
    //     "group": ["65802937f9a85fa88cec6c73"]
    // },
    // "role": "admin",
    "status": "active"
}
// {
//     "name": "Arif Ahmed2",
//     "middle_name": "Arif",
//     "last_name": "Ahmed",
//     "login": 412,
//     "leverage": 100,
//     "email": "tttt@gmail.com",
//     "group": "demo group",
//     "phone": "87654",
//     "language": "EN",
//     "country": "India",
//     "state": "ttt",
//     "zip": "1230",
//     "address": "na",
//     "company": "na",
//     "id_number": null,
//     "comment": null,
//     "lead_campaign": null,
//     "lead_source": null,
//     "color": null,
//     "bank_account": null,
//     "agent_account": null,
//     "enable_account": true,
//     "enable_password_change": true,
//     "enable_onetime_password": false,
//     "change_password_next_login": false,
//     "account": [
//         {
//             "gateway_id": "Test",
//             "account": 32
//         }
//     ],
//     "status": "active",
//     "permissions": {
//         "api": [],
//         "group": []
//     },
//     "role": "manager",
// }'
POSTDelete Account
Endpoint
POST /api/manager/delete-account
Request body
{
    "login": 102
}
cURL
curl -X POST 'https://edge-server.com/api/manager/delete-account' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 102
}'
POSTChange Password
Endpoint
POST /api/manager/change-password
Request body
{
    "login": 446,
    "password": "M12345"
    // "investor_password": "V12345" 
}
cURL
curl -X POST 'https://edge-server.com/api/manager/change-password' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 446,
    "password": "M12345"
    // "investor_password": "V12345" 
}'
POSTCheck Password
Endpoint
POST /api/manager/check-password
Request body
{
    "login": 100,
    "password": "R12345",
    "type": "PASS_MASTER"
}
cURL
curl -X POST 'https://edge-server.com/api/manager/check-password' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "password": "R12345",
    "type": "PASS_MASTER"
}'
POSTBalance Update
Endpoint
POST {{API_URL}}/manager/balance-update
Request body
{
    "login": 1002,
    "amount": 1000,
    "comment": "Deposit"
}
cURL
curl -X POST '{{API_URL}}/manager/balance-update' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 1002,
    "amount": 1000,
    "comment": "Deposit"
}'

Group

GETGet All Groups
Endpoint
GET /api/user/all-groups?broker_id=665dbafcf9a85fa88c356f17
Request body
{
  "_id": {
    "$oid": "665dbb532a4e752bf5e609d5"
  },
  "name": "GENECIS Admin",
  "middle_name": null,
  "last_name": null,
  "login": 103,
  "leverage": 100,
  "email": "gn_admin@gmail.com",
  "password": "$2a$10$izwMOjNmAUOcLyJF/5KnOOTQFYkPK0nrDNf9J0gjBhtuTmqa5qkYS",
  "investor_password": "$2a$10$WD0XpkyjRzZy65MTs3EJHukhnRf2JScC.nGpyi52zMP9IkHHK8edG",
  "web_password": "$2a$10$ycRzX525yUsHwp32qgKZWekDjUtXlphqX12lUymXFbzfNZlNSGF0e",
  "phone": "+8801762112077",
  "language": "EN",
  "country": "London",
  "state": "Ashia",
  "zip": "1230",
  "address": "aa",
  "company": null,
  "id_number": null,
  "comment": null,
  "lead_campaign": null,
  "lead_source": null,
  "color": null,
  "bank_account": null,
  "agent_account": null,
  "enable_manager_api": false,
  "enable_web_api": false,
  "enable_account": true,
  "enable_password_change": false,
  "enable_onetime_password": false,
  "change_password_next_login": false,
  "account": [],
  "platform": "edge",
  "status": "active",
  "equity": 0,
  "balance": 0,
  "margin": 0,
  "free_margin": 0,
  "role": "admin",
  "group_id": {
    "$oid": "665dbbc4f9a85fa88c35739c"
  },
  "broker_id": {
    "$oid": "665dbafcf9a85fa88c356f17"
  },
  "createdAt": {
    "$date": "2024-06-03T12:47:15.087Z"
  },
  "updatedAt": {
    "$date": "2024-06-03T12:47:15.087Z"
  },
  "__v": 0
}

cURL
curl -X GET 'https://edge-server.com/api/user/all-groups?broker_id=665dbafcf9a85fa88c356f17' \
  -H 'Content-Type: application/json' \
  -d '{
  "_id": {
    "$oid": "665dbb532a4e752bf5e609d5"
  },
  "name": "GENECIS Admin",
  "middle_name": null,
  "last_name": null,
  "login": 103,
  "leverage": 100,
  "email": "gn_admin@gmail.com",
  "password": "$2a$10$izwMOjNmAUOcLyJF/5KnOOTQFYkPK0nrDNf9J0gjBhtuTmqa5qkYS",
  "investor_password": "$2a$10$WD0XpkyjRzZy65MTs3EJHukhnRf2JScC.nGpyi52zMP9IkHHK8edG",
  "web_password": "$2a$10$ycRzX525yUsHwp32qgKZWekDjUtXlphqX12lUymXFbzfNZlNSGF0e",
  "phone": "+8801762112077",
  "language": "EN",
  "country": "London",
  "state": "Ashia",
  "zip": "1230",
  "address": "aa",
  "company": null,
  "id_number": null,
  "comment": null,
  "lead_campaign": null,
  "lead_source": null,
  "color": null,
  "bank_account": null,
  "agent_account": null,
  "enable_manager_api": false,
  "enable_web_api": false,
  "enable_account": true,
  "enable_password_change": false,
  "enable_onetime_password": false,
  "change_password_next_login": false,
  "account": [],
  "platform": "edge",
  "status": "active",
  "equity": 0,
  "balance": 0,
  "margin": 0,
  "free_margin": 0,
  "role": "admin",
  "group_id": {
    "$oid": "665dbbc4f9a85fa88c35739c"
  },
  "broker_id": {
    "$oid": "665dbafcf9a85fa88c356f17"
  },
  "createdAt": {
    "$date": "2024-06-03T12:47:15.087Z"
  },
  "updatedAt": {
    "$date": "2024-06-03T12:47:15.087Z"
  },
  "__v": 0
}

'
POSTManage Group
Endpoint
POST /api/manager/manage-group
Request body
{
    "login": 100,
    "group_name": "FX_PROP_ECN_GROUP_01",
    // "broker_id": "6657fef3f9a85fa88cda5a41",
    "min_leverage": 1,
    "max_leverage": 500,
    "total_account": 2000,
    "status": "active",
    "symbols": [
        {
            "symbol": "*",
            "market_depth": true,
            "market_depth_limit": "unlimited"
        }
    ]
}
cURL
curl -X POST 'https://edge-server.com/api/manager/manage-group' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 100,
    "group_name": "FX_PROP_ECN_GROUP_01",
    // "broker_id": "6657fef3f9a85fa88cda5a41",
    "min_leverage": 1,
    "max_leverage": 500,
    "total_account": 2000,
    "status": "active",
    "symbols": [
        {
            "symbol": "*",
            "market_depth": true,
            "market_depth_limit": "unlimited"
        }
    ]
}'

Spread

POSTGet All Spread
Endpoint
POST /api/manager/report/get-spread
Request body
{
    "page": 1,
    "total": 1000,
    "filters": {
        "group_id": "673773f8fce5a56c0905bd22",
        "symbols": []
    }
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/manager/report/get-spread' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 1000,
    "filters": {
        "group_id": "673773f8fce5a56c0905bd22",
        "symbols": []
    }
}'
POSTGet spread
Endpoint
POST {{API_URL}}/manager/report/get-spread
Request body
{
    "page": 1,
    "total": 10,
    "filters": {
        "group_id": "64e32f908039137cde83b4ab",
        "symbols": ["EURUSD"]
    }
}
cURL
curl -X POST '{{API_URL}}/manager/report/get-spread' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "page": 1,
    "total": 10,
    "filters": {
        "group_id": "64e32f908039137cde83b4ab",
        "symbols": ["EURUSD"]
    }
}'
POSTManage Spread
Endpoint
POST {{EDGETRADER_DEMO_API}}/manager/manage-spread
Request body
{
    // "symbols": ["EURAUD"],
    "symbols": [
        "GBPUSD"
        // "EURAUD",
        // "EURGBP",
        // "EURCHF",
        // "EURUSD",
        // "GBPCHF",
        // "EURCAD",
        // "GBPCAD",
        // "GBPAUD",
        // "EURJPY",
        // "NZDUSD",
        // "NZDJPY",
        // "NZDCAD",
        // "USDCAD",
        // "XAUUSD",
        // "CHFJPY",
        // "USDCNH",
        // "AUDJPY",
        // "AUDCAD",
        // "AUDUSD",
        // "USDZAR",
        // "USDMXN",
        // "USDCHF",
        // "GBPNZD",
        // "CADJPY",
        // "USDJPY",
        // "BTCUSD",
        // "ETHUSD"
    ],
    "group": "FUNDING_STANDARD_ECN",
    "spread_from": 0,
    "spread_to": 0,
    "spread": -40,
    "type": "fixed",
    "status": "active"
}
cURL
curl -X POST '{{EDGETRADER_DEMO_API}}/manager/manage-spread' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    // "symbols": ["EURAUD"],
    "symbols": [
        "GBPUSD"
        // "EURAUD",
        // "EURGBP",
        // "EURCHF",
        // "EURUSD",
        // "GBPCHF",
        // "EURCAD",
        // "GBPCAD",
        // "GBPAUD",
        // "EURJPY",
        // "NZDUSD",
        // "NZDJPY",
        // "NZDCAD",
        // "USDCAD",
        // "XAUUSD",
        // "CHFJPY",
        // "USDCNH",
        // "AUDJPY",
        // "AUDCAD",
        // "AUDUSD",
        // "USDZAR",
        // "USDMXN",
        // "USDCHF",
        // "GBPNZD",
        // "CADJPY",
        // "USDJPY",
        // "BTCUSD",
        // "ETHUSD"
    ],
    "group": "FUNDING_STANDARD_ECN",
    "spread_from": 0,
    "spread_to": 0,
    "spread": -40,
    "type": "fixed",
    "status": "active"
}'

Feed

GETGet all feed
Endpoint
GET
cURL
curl -X GET '' \
  -H 'Content-Type: application/json'

Endpoints

POSTForce Update Update
Endpoint
POST {{API_URL_ROOT}}/manage-update
Request body
{
    "version": 1,
    "login": 100,
    "type": "mac",
    "force": true
}
cURL
curl -X POST '{{API_URL_ROOT}}/manage-update' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "version": 1,
    "login": 100,
    "type": "mac",
    "force": true
}'
POSTManage broker
Endpoint
POST /api/manager/manage-broker
Request body
{
            "name": "FX Prop Fund LTD",
            "login": 100,
            "address": "Andhra Pradesh, India",
            "company_name": "FX Prop Fund LTD",
            "company_address": "Andhra Pradesh, India",
            "company_email": "fxprofund@gmail.com",
            "company_phone": "01252",
            "company_url": "https://backoffice.fxprofund.com",
            "country": "India",
            "email": "fxprofund@mail.com",
            "phone": "01425278245",
            "state": "Andhra Pradesh",
            "status": "active",
            "zip": "1221"
}
cURL
curl -X POST 'https://edge-server.com/api/manager/manage-broker' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
            "name": "FX Prop Fund LTD",
            "login": 100,
            "address": "Andhra Pradesh, India",
            "company_name": "FX Prop Fund LTD",
            "company_address": "Andhra Pradesh, India",
            "company_email": "fxprofund@gmail.com",
            "company_phone": "01252",
            "company_url": "https://backoffice.fxprofund.com",
            "country": "India",
            "email": "fxprofund@mail.com",
            "phone": "01425278245",
            "state": "Andhra Pradesh",
            "status": "active",
            "zip": "1221"
}'

User

auth

POSTLogin
Endpoint
POST {{EDGETRADER_API}}/user/guest/login
Request body
{
    "login": 104,
    "password": "R12345"
}
cURL
curl -X POST '{{EDGETRADER_API}}/user/guest/login' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "login": 104,
    "password": "R12345"
}'
POSTRegistration
Endpoint
POST {{EDGETRADER_API}}/user/guest/register
Request body
// {
//     "name": "Test",
//     "login": 333,
//     "leverage": 100,
//     "email": "test2@test.com",
//     "password": "A12345",
//     "investor_password": "I12345",
//     "phone": "+8801762112023",
//     "country": "Bangladesh",
//     "state": "Ashia",
//     "zip": "1230",
//     "address": "290/A/6 Khilgaon, Dhaka",
//     "platform": "edge",
//     "status": "active",
//     "group_id": "66211ff4f9a85fa88cac1b48",
//     "broker_id": "660a711b605fe8af5fc68b03",
//     // "role": "manager",
//     "permissions": {}
// }
{
    // "login": 0,
    "address": "dadadd",
    "broker_id": "66c474ccf9a85fa88ccb7222",
    "country": "Antarctica",
    "email": "test@gmail.com",
    "group_id": "66c590c9f9a85fa88c0ed116",
    "investor_password": "A12345",
    "leverage": "500",
    "name": "dadda",
    "password": "A12345",
    "phone": "da",
    "state": "adadda",
    "zip": "daad"
    // "platform": "edge",
    // "role": "user",
    // "permissions": {}
}
cURL
curl -X POST '{{EDGETRADER_API}}/user/guest/register' \
  -H 'Content-Type: application/json' \
  -d '// {
//     "name": "Test",
//     "login": 333,
//     "leverage": 100,
//     "email": "test2@test.com",
//     "password": "A12345",
//     "investor_password": "I12345",
//     "phone": "+8801762112023",
//     "country": "Bangladesh",
//     "state": "Ashia",
//     "zip": "1230",
//     "address": "290/A/6 Khilgaon, Dhaka",
//     "platform": "edge",
//     "status": "active",
//     "group_id": "66211ff4f9a85fa88cac1b48",
//     "broker_id": "660a711b605fe8af5fc68b03",
//     // "role": "manager",
//     "permissions": {}
// }
{
    // "login": 0,
    "address": "dadadd",
    "broker_id": "66c474ccf9a85fa88ccb7222",
    "country": "Antarctica",
    "email": "test@gmail.com",
    "group_id": "66c590c9f9a85fa88c0ed116",
    "investor_password": "A12345",
    "leverage": "500",
    "name": "dadda",
    "password": "A12345",
    "phone": "da",
    "state": "adadda",
    "zip": "daad"
    // "platform": "edge",
    // "role": "user",
    // "permissions": {}
}'
POSTRefresh Token
Endpoint
POST {{EDGETRADER_API}}/user/guest/refresh-token
Request body
{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6MTA0LCJ1c2VyX2lkIjoiNjk4NDNhNzIwN2VkOWVlN2RmMWI1NjY3IiwiZ3JvdXBfaWQiOiI2OTg0Mzk0ZTBkYzFjZjYyMDFiNDFiOTMiLCJicm9rZXJfaWQiOiI2OTg0MzNmOWNmNGVkNTI0ZTI1MDUxNmIiLCJyb2xlIjoidXNlciIsInBlcm1pc3Npb25zIjp7fSwiaWF0IjoxNzcwNDQ4MDAxLCJleHAiOjE4MDE5ODQwMDF9.OfFmf04knyXB5vpfkRBzfBPe2guLFNh3BSMCT7McCpc"
}
cURL
curl -X POST '{{EDGETRADER_API}}/user/guest/refresh-token' \
  -H 'Content-Type: application/json' \
  -d '{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6MTA0LCJ1c2VyX2lkIjoiNjk4NDNhNzIwN2VkOWVlN2RmMWI1NjY3IiwiZ3JvdXBfaWQiOiI2OTg0Mzk0ZTBkYzFjZjYyMDFiNDFiOTMiLCJicm9rZXJfaWQiOiI2OTg0MzNmOWNmNGVkNTI0ZTI1MDUxNmIiLCJyb2xlIjoidXNlciIsInBlcm1pc3Npb25zIjp7fSwiaWF0IjoxNzcwNDQ4MDAxLCJleHAiOjE4MDE5ODQwMDF9.OfFmf04knyXB5vpfkRBzfBPe2guLFNh3BSMCT7McCpc"
}'
GETGet user Info
Endpoint
GET /api/user/user-details?login=10008
cURL
curl -X GET 'http://41.216.185.58:5001/api/user/user-details?login=10008' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>'
GETNew Request
Endpoint
GET
cURL
curl -X GET '' \
  -H 'Content-Type: application/json'

Order

POSTOpen Order
Endpoint
POST /api/user/open-order
Request body
{
    "login": 777,
    "type": 3, // 0 = buy, 1 = sell, 2 = buy_limit, 3 = sell_limit
    "symbol": "USDJPY",
    "volume": "0.01"
    // "sl": "0",
    // "tp": "0"
    // "price": 1.1039
    // "expire": 21314141414
}
cURL
curl -X POST 'http://194.163.171.204:5000/api/user/open-order' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H ': eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6MTAzLCJ1c2VyX2lkIjoiNjZjMzFiYzI0NmQ3Y2Y1MGIwNjk4NTNiIiwiZ3JvdXBfaWQiOnsiaXNfYmFja3VwIjowLCJfaWQiOiI2NmMzMTVhMWQ5OTUyOWRlYmRmZWRlYjYiLCJncm91cF9uYW1lIjoiR3JvdXBBIiwiYnJva2VyX2lkIjoiNjZjMmY1OGUxMDdmY2E2MjViNTE4ZTExIiwiX192IjowLCJjb21taXNzaW9ucyI6W10sImNyZWF0ZWRfYXQiOiIyMDI0LTA4LTE5VDA5OjUxOjI5LjQzNFoiLCJtYXJnaW5fbGltaXQiOjE0MCwibWF4X2xldmVyYWdlIjoxMDAwLCJtaW5fbGV2ZXJhZ2UiOjEwMCwicGVybWlzc2lvbnMiOltdLCJyb2xlIjoidXNlciIsInN0YXR1cyI6ImFjdGl2ZSIsInN5bWJvbHMiOlt7InN5bWJvbCI6IkVVUlVTRCIsIm1hcmtldF9kZXB0aCI6dHJ1ZSwibWFya2V0X2RlcHRoX2xpbWl0IjoidW5saW1pdGVkIn0seyJzeW1ib2wiOiJFVVJBVUQiLCJtYXJrZXRfZGVwdGgiOnRydWUsIm1hcmtldF9kZXB0aF9saW1pdCI6InVubGltaXRlZCJ9LHsic3ltYm9sIjoiR0JQVVNEIiwibWFya2V0X2RlcHRoIjp0cnVlLCJtYXJrZXRfZGVwdGhfbGltaXQiOiJ1bmxpbWl0ZWQifSx7InN5bWJvbCI6IkVVUkdCUCIsIm1hcmtldF9kZXB0aCI6dHJ1ZSwibWFya2V0X2RlcHRoX2xpbWl0IjoidW5saW1pdGVkIn0seyJzeW1ib2wiOiJFVVJDSEYiLCJtYXJrZXRfZGVwdGgiOnRydWUsIm1hcmtldF9kZXB0aF9saW1pdCI6InVubGltaXRlZCJ9LHsic3ltYm9sIjoiRVVSQ0FEIiwibWFya2V0X2RlcHRoIjp0cnVlLCJtYXJrZXRfZGVwdGhfbGltaXQiOiJ1bmxpbWl0ZWQifSx7InN5bWJvbCI6IkdCUEFVRCIsIm1hcmtldF9kZXB0aCI6dHJ1ZSwibWFya2V0X2RlcHRoX2xpbWl0IjoidW5saW1pdGVkIn0seyJzeW1ib2wiOiJHQlBDSEYiLCJtYXJrZXRfZGVwdGgiOnRydWUsIm1hcmtldF9kZXB0aF9saW1pdCI6InVubGltaXRlZCJ9LHsic3ltYm9sIjoiRVVSSlBZIiwibWFya2V0X2RlcHRoIjp0cnVlLCJtYXJrZXRfZGVwdGhfbGltaXQiOiJ1bmxpbWl0ZWQifSx7InN5bWJvbCI6IkNIRkpQWSIsIm1hcmtldF9kZXB0aCI6dHJ1ZSwibWFya2V0X2RlcHRoX2xpbWl0IjoidW5saW1pdGVkIn0seyJzeW1ib2wiOiJOWkRKUFkiLCJtYXJrZXRfZGVwdGgiOnRydWUsIm1hcmtldF9kZXB0aF9saW1pdCI6InVubGltaXRlZCJ9LHsic3ltYm9sIjoiTlpEQ0FEIiwibWFya2V0X2RlcHRoIjp0cnVlLCJtYXJrZXRfZGVwdGhfbGltaXQiOiJ1bmxpbWl0ZWQifV0sInRvdGFsX2FjY291bnQiOjEwMDAsInVwZGF0ZWRfYXQiOiIyMDI0LTA4LTIxVDA3OjA0OjM3LjAyN1oifSwiYnJva2VyX2lkIjoiNjZjMmY1OGUxMDdmY2E2MjViNTE4ZTExIiwicm9sZSI6InVzZXIiLCJwZXJtaXNzaW9ucyI6e30sImlhdCI6MTcyNzk1MjY0NSwiZXhwIjoxNzI4NTU3NDQ1fQ.p1d12gS9dlqK6nWVArTjP4ero-FFljOKrPVJTgI9TFA' \
  -d '{
    "login": 777,
    "type": 3, // 0 = buy, 1 = sell, 2 = buy_limit, 3 = sell_limit
    "symbol": "USDJPY",
    "volume": "0.01"
    // "sl": "0",
    // "tp": "0"
    // "price": 1.1039
    // "expire": 21314141414
}'
POSTClose order
Endpoint
POST {{API_URL}}/user/close-order
Request body
{
    "login": 100,
    "order": 1
}
cURL
curl -X POST '{{API_URL}}/user/close-order' \
  -H 'Content-Type: application/json' \
  -d '
{
    "login": 100,
    "order": 1
}'
POSTUpdate order
Endpoint
POST {{API_URL}}/user/update-order
Request body
{
    "login": 100,
    "symbol": "USDJPY",
    "order": 2,
    "sl": 0,
    "tp": 0,
    "price": 0,
    "expire": 0
}
cURL
curl -X POST '{{API_URL}}/user/update-order' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": 100,
    "symbol": "USDJPY",
    "order": 2,
    "sl": 0,
    "tp": 0,
    "price": 0,
    "expire": 0
}'

symbol

GETGet All symbol
Endpoint
GET /api/user/symbols
Request body
{
    // "login": 3004
    // "symbol": "btcusdt"
}
cURL
curl -X GET 'http://194.163.171.204:5000/api/user/symbols' \
  -H 'Content-Type: application/json' \
  -d '{
    // "login": 3004
    // "symbol": "btcusdt"
}'
GETGet user symbol
Endpoint
GET {{EDGETRADER_API}}/user/get-group?group_id=66c58f7ff9a85fa88c0c2d5c
Request body
{
    // "login": 3004
    // "symbol": "btcusdt"
}
cURL
curl -X GET '{{EDGETRADER_API}}/user/get-group?group_id=66c58f7ff9a85fa88c0c2d5c' \
  -H 'Content-Type: application/json' \
  -d '{
    // "login": 3004
    // "symbol": "btcusdt"
}'
GETGet last price
Endpoint
GET /api/get-last-prices
Request body
{
   
}
cURL
curl -X GET 'http://194.163.171.204:5000/api/get-last-prices' \
  -H 'Content-Type: application/json' \
  -d '{
   
}'
GETGet last price Copy
Endpoint
GET /api/get-server-data
Request body
{
   
}
cURL
curl -X GET 'http://194.163.171.204:5000/api/get-server-data' \
  -H 'Content-Type: application/json' \
  -d '{
   
}'

report

GETGet order history
Endpoint
GET {{EDGETRADER_API}}/user/history?login=104
Request body
{
    "login": 3004,
    "symbol": "btcusdt"
}
cURL
curl -X GET '{{EDGETRADER_API}}/user/history?login=104' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": 3004,
    "symbol": "btcusdt"
}'
GETGet Chart History
Endpoint
GET {{EDGETRADER_API}}/user/chart-request?symbol=EURUSD&interval=15m&from=1771904371816&to=1771918771814&group=STANDARD_LIVE
cURL
curl -X GET '{{EDGETRADER_API}}/user/chart-request?symbol=EURUSD&interval=15m&from=1771904371816&to=1771918771814&group=STANDARD_LIVE' \
  -H 'Content-Type: application/json'
GETGet positions
Endpoint
GET {{API_URL}}/user/positions?login=100
Request body
{
    "login": 100,
    "symbol": "" // 0 = pending position, 1 = open position, 
}
cURL
curl -X GET '{{API_URL}}/user/positions?login=100' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": 100,
    "symbol": "" // 0 = pending position, 1 = open position, 
}'
GETtrade summary
Endpoint
GET {{EDGETRADER_DEMO_API}}/user/most-traded/summary
cURL
curl -X GET '{{EDGETRADER_DEMO_API}}/user/most-traded/summary' \
  -H 'Content-Type: application/json'

public

GETGet All broker
Endpoint
GET /api/user/all-brokers
cURL
curl -X GET 'http://194.163.171.204:5000/api/user/all-brokers' \
  -H 'Content-Type: application/json'
GETGet broker details
Endpoint
GET {{API_URL}}/user/broker-details?broker_id=64c8bb345230ce16084b7fef
cURL
curl -X GET '{{API_URL}}/user/broker-details?broker_id=64c8bb345230ce16084b7fef' \
  -H 'Content-Type: application/json'
GETGet All groups
Endpoint
GET /api/user/all-groups?broker_id=66c474ccf9a85fa88ccb7222
cURL
curl -X GET 'http://194.163.171.204:5000/api/user/all-groups?broker_id=66c474ccf9a85fa88ccb7222' \
  -H 'Content-Type: application/json'
POSTForce Update Get
Endpoint
POST {{API_URL_ROOT}}/report/get-update
Request body
{
    "version": 24,
    "type": "android"
}
cURL
curl -X POST '{{API_URL_ROOT}}/report/get-update' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{
    "version": 24,
    "type": "android"
}'

General

Endpoints

GETPrice Stream
Endpoint
GET {{API_URL}}/user/positions?login=3004
Request body
{
    "login": 3004,
    "symbol": "btcusdt"
}
cURL
curl -X GET '{{API_URL}}/user/positions?login=3004' \
  -H 'Content-Type: application/json' \
  -d '{
    "login": 3004,
    "symbol": "btcusdt"
}'
POSTPrice
Endpoint
POST {{API_URL_ROOT}}/emit-prices
Request body
{
    "prices":[
        { 
            "symbol": "EURUSD", 
            "bid": 1.10141,
            "ask": 1.10191, 
            "last": 0, 
            "volume": 0, 
            "timestamp": 1234567 
        }
    ]
}
cURL
curl -X POST '{{API_URL_ROOT}}/emit-prices' \
  -H 'Content-Type: application/json' \
  -d '{
    "prices":[
        { 
            "symbol": "EURUSD", 
            "bid": 1.10141,
            "ask": 1.10191, 
            "last": 0, 
            "volume": 0, 
            "timestamp": 1234567 
        }
    ]
}'
POSTTEST AUTH ROUTE
Endpoint
POST {{API_URL}}/user/test-auth
cURL
curl -X POST '{{API_URL}}/user/test-auth' \
  -H 'Content-Type: application/json'
GETNew Request
Endpoint
GET
cURL
curl -X GET '' \
  -H 'Content-Type: application/json'