bitcain docs
API Reference

A I Analysis

AI-powered market analysis, sentiment detection, and trading signals

Analyze Market

POST
/api/v1/ai/analyze-market

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

symbol*string

Trading pair symbol (e.g., BTC/USDT)

timeframe?string

Candle timeframe (1m, 5m, 15m, 1h, 4h, 1d)

Default"1h"
include_patterns?boolean

Include pattern detection

Defaultfalse
deep_analysis?boolean

Use advanced model for deeper analysis

Defaultfalse

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/ai/analyze-market" \  -H "Content-Type: application/json" \  -d '{    "symbol": "string"  }'
{
  "success": true,
  "symbol": "string",
  "timeframe": "string",
  "trend": {
    "direction": "bullish",
    "strength": "weak",
    "description": "string"
  },
  "support_levels": [
    {
      "price": 0,
      "strength": "weak"
    }
  ],
  "resistance_levels": [
    {
      "price": 0,
      "strength": "weak"
    }
  ],
  "momentum": {
    "rsi_indication": "oversold",
    "macd_signal": "bullish",
    "description": "string"
  },
  "signal": {
    "action": "buy",
    "confidence": 1,
    "reason": "string"
  },
  "key_observations": [
    "string"
  ],
  "risk_factors": [
    "string"
  ],
  "patterns": {},
  "usage": {
    "model_used": "string",
    "tokens_used": 0,
    "cached": false,
    "latency_ms": 0
  },
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Assess Risk

POST
/api/v1/ai/assess-risk

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

symbol*string

Trading pair symbol

side*string

Trade side

Value in"buy" | "sell"
proposed_size*number

Proposed position size

Range0 < value
entry_price*number

Planned entry price

Range0 < value
stop_loss?|

Planned stop loss price

leverage?number

Leverage multiplier

Default1
Range1 <= value <= 125

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/ai/assess-risk" \  -H "Content-Type: application/json" \  -d '{    "symbol": "string",    "side": "buy",    "proposed_size": 0,    "entry_price": 0  }'
{
  "success": true,
  "symbol": "string",
  "side": "string",
  "proposed_size": 0,
  "trade_value": 0,
  "risk_level": "low",
  "risk_score": 1,
  "position_analysis": {},
  "portfolio_impact": {},
  "warnings": [
    "string"
  ],
  "recommendations": [
    "string"
  ],
  "usage": {
    "model_used": "string",
    "tokens_used": 0,
    "cached": false,
    "latency_ms": 0
  },
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Calculate Position Size

POST
/api/v1/ai/calculate-position-size

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

symbol*string

Trading pair symbol

side*string

Trade side

Value in"buy" | "sell"
entry_price*number

Planned entry price

Range0 < value
stop_loss*number

Planned stop loss price

Range0 < value
risk_tolerance?string

Risk tolerance level

Default"moderate"
Value in"conservative" | "moderate" | "aggressive"

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/ai/calculate-position-size" \  -H "Content-Type: application/json" \  -d '{    "symbol": "string",    "side": "buy",    "entry_price": 0,    "stop_loss": 0  }'
{
  "success": true,
  "symbol": "string",
  "entry_price": 0,
  "stop_loss": 0,
  "recommended_size": 0,
  "max_safe_size": 0,
  "trade_value": 0,
  "portfolio_risk_pct": 0,
  "reasoning": "string",
  "constraints": {},
  "usage": {
    "model_used": "string",
    "tokens_used": 0,
    "cached": false,
    "latency_ms": 0
  },
  "error": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Recommend Strategy

POST
/api/v1/ai/recommend-strategy

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

symbol*string

Trading pair symbol

risk_profile?string

User's risk profile

Default"moderate"
Value in"conservative" | "moderate" | "aggressive"
investment_horizon?string

Investment timeframe

Default"medium"
Value in"short" | "medium" | "long"

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/ai/recommend-strategy" \  -H "Content-Type: application/json" \  -d '{    "symbol": "string"  }'
{
  "success": true,
  "symbol": "string",
  "risk_profile": "string",
  "market_regime": {},
  "recommended_strategy": {
    "name": "string",
    "suitability": 1,
    "description": "string",
    "parameters": {}
  },
  "alternative_strategies": [
    {}
  ],
  "entry_exit": {
    "entry_zones": [
      {
        "price": 0,
        "strength": "weak"
      }
    ],
    "take_profit_targets": [
      0
    ],
    "stop_loss": 0,
    "risk_reward_ratio": 0
  },
  "allocation_advice": {},
  "key_considerations": [
    "string"
  ],
  "usage": {
    "model_used": "string",
    "tokens_used": 0,
    "cached": false,
    "latency_ms": 0
  },
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get Portfolio Insights

GET
/api/v1/ai/portfolio-insights

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/portfolio-insights"
{
  "success": true,
  "portfolio_value": 0,
  "position_count": 0,
  "portfolio_grade": "string",
  "grade_reasoning": "string",
  "strengths": [
    "string"
  ],
  "weaknesses": [
    "string"
  ],
  "opportunities": [
    "string"
  ],
  "threats": [
    "string"
  ],
  "optimization_actions": [
    {}
  ],
  "usage": {
    "model_used": "string",
    "tokens_used": 0,
    "cached": false,
    "latency_ms": 0
  },
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z"
}

Quick Strategy Check

POST
/api/v1/ai/quick-check

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

symbol*string

Trading pair symbol

action*string

Proposed action

Value in"buy" | "sell" | "hold"
reason*string

Reason for the trade

Length10 <= length <= 500

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/ai/quick-check" \  -H "Content-Type: application/json" \  -d '{    "symbol": "string",    "action": "buy",    "reason": "stringstri"  }'
{
  "success": true,
  "symbol": "string",
  "proposed_action": "string",
  "strategy_sound": true,
  "confidence": 1,
  "potential_issues": [
    "string"
  ],
  "suggestions": [
    "string"
  ],
  "proceed_recommendation": "proceed",
  "usage": {
    "model_used": "string",
    "tokens_used": 0,
    "cached": false,
    "latency_ms": 0
  },
  "error": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get Overall Sentiment

GET
/api/v1/ai/sentiment/overall

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/sentiment/overall"
{
  "score": -100,
  "label": "string",
  "confidence": 0,
  "timestamp": "string"
}

Get Sentiment Timeline

GET
/api/v1/ai/sentiment/timeline

Query Parameters

days?integer
Default7

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/ai/sentiment/timeline"
[
  {
    "date": "string",
    "sentiment": 0
  }
]
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get News Sentiment

GET
/api/v1/ai/sentiment/news

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/sentiment/news"
[
  {
    "id": "string",
    "title": "string",
    "source": "string",
    "sentiment": -100,
    "timestamp": "string",
    "url": "string",
    "logo": "string"
  }
]

Get Social Sentiment

GET
/api/v1/ai/sentiment/social

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/sentiment/social"
[
  {
    "platform": "string",
    "mentions": 0,
    "sentiment": -100,
    "trendingTopics": [
      "string"
    ]
  }
]

Get Asset Sentiment

GET
/api/v1/ai/sentiment/assets

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/sentiment/assets"
[
  {
    "asset": "string",
    "overallSentiment": 0,
    "newsScore": 0,
    "socialScore": 0,
    "change24h": 0
  }
]

Get Active Signals

GET
/api/v1/ai/signals/active

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/signals/active"
[
  {
    "id": "string",
    "pair": "string",
    "signalType": "string",
    "confidence": 100,
    "entryPrice": 0,
    "targetPrice": 0,
    "stopLoss": 0,
    "timestamp": "string",
    "reasoning": "string",
    "status": "string",
    "result": "string",
    "profitLoss": 0
  }
]

Get Signal History

GET
/api/v1/ai/signals/history

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/signals/history"
[
  {
    "id": "string",
    "pair": "string",
    "signalType": "string",
    "confidence": 100,
    "entryPrice": 0,
    "targetPrice": 0,
    "stopLoss": 0,
    "timestamp": "string",
    "reasoning": "string",
    "status": "string",
    "result": "string",
    "profitLoss": 0
  }
]

Get Signal Performance

GET
/api/v1/ai/signals/performance

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/signals/performance"
{
  "totalSignals": 0,
  "successRate": 0,
  "averageConfidence": 0,
  "totalPL": 0
}

Get Signal Accuracy

GET
/api/v1/ai/signals/accuracy

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/signals/accuracy"
[
  {
    "date": "string",
    "accuracy": 0
  }
]

Get Risk Metrics

GET
/api/v1/ai/risk/metrics

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/risk/metrics"
{
  "overallScore": 100,
  "volatilityRisk": 100,
  "concentrationRisk": 100,
  "liquidityRisk": 100,
  "marketRisk": 100
}

Get Var Metrics

GET
/api/v1/ai/risk/var

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/risk/var"
[
  {
    "timeframe": "string",
    "historical": 0,
    "parametric": 0
  }
]

Get Stress Scenarios

GET
/api/v1/ai/risk/stress-scenarios

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/risk/stress-scenarios"
[
  {
    "name": "string",
    "description": "string",
    "estimatedImpact": 0,
    "probability": 100
  }
]

Get Risk Recommendations

GET
/api/v1/ai/risk/recommendations

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/risk/recommendations"
[
  {
    "id": "string",
    "type": "string",
    "title": "string",
    "description": "string",
    "priority": "string",
    "potentialImpact": 0
  }
]

Get Correlation Data

GET
/api/v1/ai/risk/correlation

Response Body

application/json

curl -X GET "https://loading/api/v1/ai/risk/correlation"
{
  "assets": [
    "string"
  ],
  "matrix": [
    [
      0
    ]
  ]
}

Get Status

GET
/api/v1/satoshi-master/status

Response Body

application/json

curl -X GET "https://loading/api/v1/satoshi-master/status"
{
  "online": true,
  "rag_enabled": true,
  "memory_enabled": true,
  "learning_enabled": true,
  "active_sessions": 0,
  "model_version": "claude-sonnet-4-20250514",
  "features": [
    "string"
  ]
}

Chat

POST
/api/v1/satoshi-master/chat

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

session_id*string

Session ID for memory persistence

message*string

User message

Length1 <= length <= 4000
include_rag?boolean

Whether to use RAG for context

Defaulttrue
include_memory?boolean

Whether to use memory context

Defaulttrue
stream?boolean

Whether to stream the response

Defaulttrue
symbols_context?array<>

Symbols to focus on

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/satoshi-master/chat" \  -H "Content-Type: application/json" \  -d '{    "session_id": "string",    "message": "string"  }'
{
  "success": true,
  "message_id": "string",
  "content": "string",
  "trade_signal": {
    "symbol": "string",
    "action": "buy",
    "entry_price": 0,
    "stop_loss": 0,
    "targets": [
      0
    ],
    "confidence": 1,
    "risk_level": "low",
    "timeframe": "4H",
    "reasoning": "",
    "indicators": {}
  },
  "sources": [
    {
      "title": "string",
      "url": "string",
      "relevance_score": 1,
      "snippet": ""
    }
  ],
  "tokens_used": 0,
  "model_used": "",
  "latency_ms": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Chat Stream

POST
/api/v1/satoshi-master/chat/stream

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

session_id*string

Session ID for memory persistence

message*string

User message

Length1 <= length <= 4000
include_rag?boolean

Whether to use RAG for context

Defaulttrue
include_memory?boolean

Whether to use memory context

Defaulttrue
stream?boolean

Whether to stream the response

Defaulttrue
symbols_context?array<>

Symbols to focus on

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/satoshi-master/chat/stream" \  -H "Content-Type: application/json" \  -d '{    "session_id": "string",    "message": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Store Memory

POST
/api/v1/satoshi-master/memory

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

session_id*string

Session ID

memory_type*string

Type of memory (conversation, preference, trade)

content*

Memory content

priority?string

Memory priority

Default"medium"

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/satoshi-master/memory" \  -H "Content-Type: application/json" \  -d '{    "session_id": "string",    "memory_type": "string",    "content": {}  }'
{
  "success": true,
  "session_id": "string",
  "memory_id": "string",
  "context": {
    "session_id": "string",
    "user_id": "string",
    "preferred_symbols": [
      "string"
    ],
    "risk_tolerance": "medium",
    "trading_style": "swing",
    "recent_signals": [
      {
        "symbol": "string",
        "action": "buy",
        "entry_price": 0,
        "stop_loss": 0,
        "targets": [
          0
        ],
        "confidence": 1,
        "risk_level": "low",
        "timeframe": "4H",
        "reasoning": "",
        "indicators": {}
      }
    ],
    "context_summary": "string"
  },
  "message": ""
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get Memory

GET
/api/v1/satoshi-master/memory/{session_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

session_id*string

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/satoshi-master/memory/string"
{
  "success": true,
  "session_id": "string",
  "memory_id": "string",
  "context": {
    "session_id": "string",
    "user_id": "string",
    "preferred_symbols": [
      "string"
    ],
    "risk_tolerance": "medium",
    "trading_style": "swing",
    "recent_signals": [
      {
        "symbol": "string",
        "action": "buy",
        "entry_price": 0,
        "stop_loss": 0,
        "targets": [
          0
        ],
        "confidence": 1,
        "risk_level": "low",
        "timeframe": "4H",
        "reasoning": "",
        "indicators": {}
      }
    ],
    "context_summary": "string"
  },
  "message": ""
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Record Experience

POST
/api/v1/satoshi-master/learn

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

session_id*string

Session ID

action*string

Action taken

outcome*string

Outcome (success/failure)

context*

Context of the experience

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/satoshi-master/learn" \  -H "Content-Type: application/json" \  -d '{    "session_id": "string",    "action": "string",    "outcome": "string",    "context": {}  }'
{
  "success": true,
  "experience_id": "string",
  "patterns_updated": 0,
  "message": ""
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Consolidate Session

POST
/api/v1/satoshi-master/consolidate/{session_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

session_id*string

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/satoshi-master/consolidate/string"
{
  "property1": "string",
  "property2": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get Learning Metrics

GET
/api/v1/satoshi-master/learn/metrics

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://loading/api/v1/satoshi-master/learn/metrics"
{}

Get Learned Patterns

GET
/api/v1/satoshi-master/learn/patterns

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

min_confidence?number
Default0.5

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/satoshi-master/learn/patterns"
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Generate Strategy

POST
/api/v1/satoshi-master/learn/generate-strategy

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

focus_action?|

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/satoshi-master/learn/generate-strategy"
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Escalate To Support

POST
/api/v1/satoshi-master/escalate

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

session_id*string

Session ID for context

reason*string

Reason for escalation

Value in"technical_issue" | "configuration_help" | "strategy_question" | "billing_issue" | "account_problem" | "feature_request" | "bug_report" | "other"
description*string

Detailed description of the issue

Length10 <= length <= 2000
user_email?|

User email for follow-up

priority?string

Priority level (low, medium, high, urgent)

Default"medium"
conversation_context?array<>

Recent conversation messages for context

metadata?

Additional context metadata

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/satoshi-master/escalate" \  -H "Content-Type: application/json" \  -d '{    "session_id": "string",    "reason": "technical_issue",    "description": "stringstri"  }'
{
  "success": true,
  "ticket": {
    "id": "string",
    "user_id": "string",
    "session_id": "string",
    "reason": "technical_issue",
    "description": "string",
    "status": "open",
    "priority": "medium",
    "assigned_to": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "resolved_at": "2019-08-24T14:15:22Z",
    "conversation_context": [
      "string"
    ],
    "internal_notes": [
      "string"
    ],
    "user_email": "string",
    "metadata": {}
  },
  "message": ""
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

List Support Tickets

GET
/api/v1/satoshi-master/support/tickets

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

ticket_status?|
limit?integer
Default50
offset?integer
Default0

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/satoshi-master/support/tickets"
{
  "success": true,
  "tickets": [
    {
      "id": "string",
      "user_id": "string",
      "session_id": "string",
      "reason": "technical_issue",
      "description": "string",
      "status": "open",
      "priority": "medium",
      "assigned_to": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "resolved_at": "2019-08-24T14:15:22Z",
      "conversation_context": [
        "string"
      ],
      "internal_notes": [
        "string"
      ],
      "user_email": "string",
      "metadata": {}
    }
  ],
  "total": 0,
  "message": ""
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get Support Ticket

GET
/api/v1/satoshi-master/support/tickets/{ticket_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

ticket_id*string

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/satoshi-master/support/tickets/string"
{
  "success": true,
  "ticket": {
    "id": "string",
    "user_id": "string",
    "session_id": "string",
    "reason": "technical_issue",
    "description": "string",
    "status": "open",
    "priority": "medium",
    "assigned_to": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "resolved_at": "2019-08-24T14:15:22Z",
    "conversation_context": [
      "string"
    ],
    "internal_notes": [
      "string"
    ],
    "user_email": "string",
    "metadata": {}
  },
  "message": ""
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Analyze Market

POST
/api/signals/analyze

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

symbol*string
Length1 <= length
timeframe?string
Default"1h"
Match^(1m|5m|15m|30m|1h|4h|1d)$
strategy?string

Trading strategy types

Default"combined"
Value in"trend_following" | "mean_reversion" | "breakout" | "momentum" | "combined"
data*array<>
Items100 <= items
min_confidence?|
Default50

Response Body

application/json

application/json

curl -X POST "https://loading/api/signals/analyze" \  -H "Content-Type: application/json" \  -d '{    "symbol": "string",    "data": [      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      }    ]  }'
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Backtest Strategy

POST
/api/signals/backtest

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

initial_capital?number
Default10000
Range0 < value

Request Body

application/json

symbol*string
Length1 <= length
timeframe?string
Default"1h"
Match^(1m|5m|15m|30m|1h|4h|1d)$
strategy?string

Trading strategy types

Default"combined"
Value in"trend_following" | "mean_reversion" | "breakout" | "momentum" | "combined"
data*array<>
Items100 <= items
min_confidence?|
Default50

Response Body

application/json

application/json

curl -X POST "https://loading/api/signals/backtest" \  -H "Content-Type: application/json" \  -d '{    "symbol": "string",    "data": [      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      },      {        "timestamp": "2019-08-24T14:15:22Z",        "open": 0,        "high": 0,        "low": 0,        "close": 0,        "volume": 0      }    ]  }'
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Assess Risk Profile

POST
/api/yield/risk-profile

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

answers*

Response Body

application/json

application/json

curl -X POST "https://loading/api/yield/risk-profile" \  -H "Content-Type: application/json" \  -d '{    "answers": {}  }'
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Analyze Yield

POST
/api/yield/analyze

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

protocol*string
amount*number
duration_days*integer

Response Body

application/json

application/json

curl -X POST "https://loading/api/yield/analyze" \  -H "Content-Type: application/json" \  -d '{    "protocol": "string",    "amount": 0,    "duration_days": 0  }'
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get Recommendations

GET
/api/yield/recommendations

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://loading/api/yield/recommendations"
{}