2 つのメソッドは、特定のマスター口座または投資口座について、Statistics widget に表示されるデータ (口座詳細と取引統計) を返します。
認証
どちらの方法でも Authorization: Bearer <access_token> ヘッダーが必要です。
ウィジェットの詳細を取得する
GET [host]/api/v1/investment/widget/detail/{account}料金プラン、フォロワー数、リターン、チャートデータ、プロフィール写真、戦略の説明、および関連フィールドを返します。
| パラメータ | で | 必須 | 説明 |
|---|---|---|---|
| account | path | Yes | MT login of the account. |
| investment_platform_id | query | Yes | The 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>'応答 (省略):
{
"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 [host]/api/v1/investment/widget/statistics/{account}取引された商品とその使用率、さらに取引統計 (勝敗数、連続数、平均) を返します。上記と同じ account パスと investment_platform_id クエリ パラメーター。
{
"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
}
}