두 가지 메소드는 다음과 같은 데이터를 반환합니다.통계 위젯 특정 마스터 또는 투자 계좌의 경우: 계좌 세부정보 및 거래 통계.
입증
두 가지 방법 모두 Authorization: Bearer <access_token> 헤더.
위젯 세부정보 보기
GET [host]/api/v1/investment/widget/detail/{account}요금제, 팔로어 수, 수익률, 차트 데이터, 프로필 사진, 전략 설명 및 관련 필드를 반환합니다.
| 매개변수 | ~ 안에 | 필수의 | 설명 |
|---|---|---|---|
| 계정 | 길 | 예 | MT 로그인 계정입니다. |
| 투자_플랫폼_ID | 질문 | 예 | 투자 플랫폼 인스턴스(단일 MT 서버의 경우 1개) |
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
}
}