सांख्यिकी विजेट के लिए डेटा प्राप्त करें

अपने स्वयं के यूआई के लिए खाता आँकड़े खींचें।

एडमिन के लिए

Two methods return the data shown in the Statistics widget for a specific master or investment account: account details, and trading statistics.

Authentication

Both methods require the Authorization: Bearer <access_token> header.

Get Details for the Widget

GET [host]/api/v1/investment/widget/detail/{account}

Returns the fee plan, follower count, return, chart data, profile picture, strategy description, and related fields.

ParameterInRequiredDescription
accountpathYesMT login of the account.
investment_platform_idqueryYesThe investment platform instance (1 for a single MT server).
curl --location --request GET \
'https://host.name/api/v1/investment/widget/detail/77616894?investment_platform_id=1' \
--header 'Authorization: Bearer <token>'

Response (abbreviated):

{
  "status": 200,
  "data": {
    "id": 32065,
    "aum": 25091.19,
    "followers": 4,
    "currency": "USD",
    "description": "Trading strategy description",
    "fees": {
      "performance_fee": "10",
      "management_fee": "2",
      "subscription_fee": "1",
      "volume_fee": "1",
      "joining_fee": "1"
    },
    "name": "Account name",
    "risk": 86,
    "score": 49,
    "balance": "691.56",
    "equity": "13,373.77",
    "max_dd": 86,
    "allocation_method": 4,
    "risk_ratio": 1
  }
}

Get Statistics for the Widget

GET [host]/api/v1/investment/widget/statistics/{account}

Returns traded instruments and their usage ratios, plus trade statistics (win/loss counts, streaks, averages). Same account path and investment_platform_id query parameters as above.

{
  "status": 200,
  "data": {
    "instruments_ratios": [
      { "name": "EURUSD", "ratio": 37 },
      { "name": "GBPUSD", "ratio": 27 },
      { "name": "USDJPY", "ratio": 27 },
      { "name": "USDCHF", "ratio": 9 }
    ],
    "number_of_trades": 11,
    "winning_trades": 3,
    "losing_trades": 8,
    "avg_trade_time": "0.14",
    "avg_trades_per_week": "5.5",
    "consecutive_losses": 3,
    "consecutive_wins": 1
  }
}
अभी B2COPY क्लाइंट नहीं हैं?

B2COPY को अपनी ब्रोकरेज में लाएँ और ऑटोपायलट पर बढ़ें

अपने मौजूदा सर्वरों पर कॉपी ट्रेडिंग, PAMM और MAM लॉन्च करें और अपने सर्वश्रेष्ठ ट्रेडर्स को ग्रोथ इंजन बनाएँ — होस्टिंग, मॉनिटरिंग और सपोर्ट सहित। कहाँ से शुरू करें, स्पष्ट नहीं? हमसे बात करें, हम गाइड करेंगे।

2–4 सप्ताह

लॉन्च तक समय

$0

इंफ्रास्ट्रक्चर लागत

40%+

वॉल्यूम वृद्धि