APIリファレンス(APIキー)

Minara Agent API エンドポイントの技術仕様。

開発者向けAPI

Minaraの会話型AIとやり取りするための主要なエンドポイント。

Developer Chat

post

Developer chat endpoint supporting both streaming and non-streaming response modes.

認可
Authorizationstring必須

Format: Authorization: Bearer <YOUR_API_KEY>

本文
modestring · enum必須

Required. Model mode: 'fast' for quick responses, 'expert' for in-depth analysis.

可能な値:
streamboolean必須

Required. Set to true for streaming (SSE), false for standard JSON response.

レスポンス
post
/v1/developer/chat

Intent to Swap Transaction

post

Convert natural language trading intent into an executable swap transaction payload. Compatible with OKX DEX by default.

認可
Authorizationstring必須

Format: Authorization: Bearer <YOUR_API_KEY>

本文
intentstring必須

Required. Natural language swap intent (e.g., 'swap 0.1 ETH to USDC').

walletAddressstring必須

Required. User wallet address (0x...).

chainstringオプション

Optional. Chain name (e.g., 'base', 'ethereum', 'bsc', 'arbitrum', 'optimism').

レスポンス
post
/v1/developer/intent-to-swap-tx

Perpetual Trading Suggestion

post

Get AI-powered perpetual trading suggestions with long/short recommendations, entry price, stop loss, take profit levels, and confidence score based on comprehensive market analysis.

認可
Authorizationstring必須

Format: Authorization: Bearer <YOUR_API_KEY>

本文
symbolstring必須

Required. Trading symbol (e.g., 'BTC', 'ETH', 'SOL').

stylestring · enumオプション

Optional. Trading style: 'scalping', 'day-trading', or 'swing-trading'. Default: 'scalping'.

Default: scalping可能な値:
marginUSDnumberオプション

Optional. Margin in USD. Default: 1000.

Default: 1000
leveragenumber · 最小: 1 · 最大: 40オプション

Optional. Leverage multiplier (max: 40). Default: 10.

Default: 10
strategystringオプション

Optional. Strategy type. Default: 'max-profit'. More strategies coming soon.

Default: max-profit
レスポンス
post
/v1/developer/perp-trading-suggestion

Prediction Market Analysis

post

AI-powered prediction market analysis. Analyze prediction market events and get probability estimates for each outcome with detailed reasoning.

認可
Authorizationstring必須

Format: Authorization: Bearer <YOUR_API_KEY>

本文
linkstring必須

Required. Prediction market page link (e.g., Polymarket event URL).

modestring · enum必須

Required. Chat mode: 'fast' or 'expert'.

可能な値:
only_resultbooleanオプション

Optional. Only return prediction probabilities without reasoning. Default: false.

Default: false
customPromptstringオプション

Optional. Custom instructions to guide the analysis. Use this to specify focus areas, risk preferences, or analysis style.

レスポンス
post
/v1/developer/prediction-market-ask

開発者向けAPI

チャット

エンドポイント

POST https://api-developer.minara.ai/v1/developer/chat

リクエストボディ

パラメータ
必須
説明

mode

string

はい

モデルモード:迅速な応答のための 'fast'、詳細な分析のための 'expert'。

stream

boolean

はい

ストリーミング(SSE)にする場合は true、標準のJSONレスポンスにする場合は false に設定。

message

object

はい

role と content を含むメッセージオブジェクト

message.role

string

はい

メッセージ送信者の役割。'user' である必要があります。

message.content

string

はい

ユーザーの問い合わせ内容。

リクエスト例

レスポンス

標準レスポンス(stream: false)

完全なレスポンスを含むJSONオブジェクトを返します。

ストリーミングレスポンス(stream: true)

返されるもの Content-Type: text/event-stream Server-Sent Events (SSE) を使用します。


スワップ意図トランザクション

エンドポイント

POST https://api-developer.minara.ai/v1/developer/intent-to-swap-tx

自然言語の取引意図を実行可能なスワップトランザクションペイロードに変換します。デフォルトで OKX DEX と互換性があります。

リクエストボディ

パラメータ
必須
説明

intent

string

はい

自然言語のスワップ意図(例: "swap 0.1 ETH to USDC")

walletAddress

string

はい

ユーザーのウォレットアドレス(0x...)

chain

string

いいえ

チェーン名(例: "base", "ethereum", "bsc", "arbitrum", "optimism")

リクエスト例

レスポンス


パーペチュアル取引の提案

エンドポイント

POST https://api-developer.minara.ai/v1/developer/perp-trading-suggestion

包括的な市場分析に基づき、ロング/ショートの推奨、エントリープライス、ストップロス、テイクプロフィットレベル、信頼度スコアを含むAIベースのパーペチュアル取引提案を取得します。

リクエストボディ

パラメータ
必須
説明

symbol

string

はい

取引シンボル(例: "BTC", "ETH", "SOL")

style

string

いいえ

取引スタイル:"scalping"、"day-trading"、または "swing-trading"

marginUSD

number

いいえ

USD建ての証拠金

leverage

number

いいえ

レバレッジ倍率(最大: 40)

strategy

string

いいえ

ストラテジーの種類(今後さらに戦略を追加予定)

リクエスト例

レスポンス


予測市場分析

エンドポイント

POST https://api-developer.minara.ai/v1/developer/prediction-market-ask

AIによる予測市場分析。予測市場イベントを分析し、各結果の確率推定と詳細な理由付けを提供します。

リクエストボディ

パラメータ
必須
説明

link

string

はい

予測市場ページのリンク(例: Polymarket のイベントURL)

mode

string

はい

チャットモード:"fast" または "expert"

only_result

boolean

いいえ

理由付けなしで確率のみを返す

customPrompt

string

いいえ

分析を導くカスタム指示

リクエスト例

レスポンス

最終更新

役に立ちましたか?