REST API
Endpoints
Every REST endpoint, generated from the OpenAPI document.
The machine-readable spec is served at https://api.cccontext.com/v1/openapi.json. Each endpoint takes the tool's parameters as a JSON object and answers { ok, result } or { ok: false, error }.
| Endpoint | Tool | Mutating |
|---|---|---|
POST /v1/tools/acquire_lease | acquire_lease | no |
POST /v1/tools/backtest_strategy | backtest_strategy | no |
POST /v1/tools/calculate_position_size | calculate_position_size | no |
POST /v1/tools/cancel_order | cancel_order | yes |
POST /v1/tools/cancel_trailing_stop | cancel_trailing_stop | yes |
POST /v1/tools/check_confluence | check_confluence | no |
POST /v1/tools/check_order | check_order | no |
POST /v1/tools/check_portfolio_exposure | check_portfolio_exposure | no |
POST /v1/tools/close_all_positions | close_all_positions | yes |
POST /v1/tools/close_position | close_position | yes |
POST /v1/tools/detect_patterns | detect_patterns | no |
POST /v1/tools/detect_structure | detect_structure | no |
POST /v1/tools/estimate_fill | estimate_fill | no |
POST /v1/tools/explain_setup | explain_setup | no |
POST /v1/tools/explain_trade | explain_trade | no |
POST /v1/tools/get_account_info | get_account_info | no |
POST /v1/tools/get_bars | get_bars | no |
POST /v1/tools/get_basis | get_basis | no |
POST /v1/tools/get_behavioral_insights | get_behavioral_insights | no |
POST /v1/tools/get_connection_info | get_connection_info | no |
POST /v1/tools/get_connection_log | get_connection_log | no |
POST /v1/tools/get_correlation_matrix | get_correlation_matrix | no |
POST /v1/tools/get_economic_calendar | get_economic_calendar | no |
POST /v1/tools/get_economic_surprise | get_economic_surprise | no |
POST /v1/tools/get_equity_curve | get_equity_curve | no |
POST /v1/tools/get_event_risk | get_event_risk | no |
POST /v1/tools/get_event_sensitivity | get_event_sensitivity | no |
POST /v1/tools/get_exchange_announcements | get_exchange_announcements | no |
POST /v1/tools/get_execution_quality | get_execution_quality | no |
POST /v1/tools/get_fear_greed | get_fear_greed | no |
POST /v1/tools/get_fibonacci_levels | get_fibonacci_levels | no |
POST /v1/tools/get_funding | get_funding | no |
POST /v1/tools/get_funding_payments | get_funding_payments | no |
POST /v1/tools/get_heartbeat_status | get_heartbeat_status | no |
POST /v1/tools/get_holding_risk | get_holding_risk | no |
POST /v1/tools/get_indicator | get_indicator | no |
POST /v1/tools/get_key_levels | get_key_levels | no |
POST /v1/tools/get_leases | get_leases | no |
POST /v1/tools/get_liquidations | get_liquidations | no |
POST /v1/tools/get_macro_data | get_macro_data | no |
POST /v1/tools/get_market_context | get_market_context | no |
POST /v1/tools/get_market_depth | get_market_depth | no |
POST /v1/tools/get_market_snapshot | get_market_snapshot | no |
POST /v1/tools/get_market_structure | get_market_structure | no |
POST /v1/tools/get_mode | get_mode | no |
POST /v1/tools/get_news | get_news | no |
POST /v1/tools/get_open_interest | get_open_interest | no |
POST /v1/tools/get_order_flow | get_order_flow | no |
POST /v1/tools/get_orders | get_orders | no |
POST /v1/tools/get_pnl_by_symbol | get_pnl_by_symbol | no |
POST /v1/tools/get_pnl_by_time | get_pnl_by_time | no |
POST /v1/tools/get_positioning | get_positioning | no |
POST /v1/tools/get_positions | get_positions | no |
POST /v1/tools/get_rate_expectations | get_rate_expectations | no |
POST /v1/tools/get_recent_trades | get_recent_trades | no |
POST /v1/tools/get_relative_strength | get_relative_strength | no |
POST /v1/tools/get_risk_regime | get_risk_regime | no |
POST /v1/tools/get_risk_summary | get_risk_summary | no |
POST /v1/tools/get_session_stats | get_session_stats | no |
POST /v1/tools/get_spread_alert | get_spread_alert | no |
POST /v1/tools/get_state_delta | get_state_delta | no |
POST /v1/tools/get_symbol_info | get_symbol_info | no |
POST /v1/tools/get_symbol_session_profile | get_symbol_session_profile | no |
POST /v1/tools/get_symbols | get_symbols | no |
POST /v1/tools/get_tick | get_tick | no |
POST /v1/tools/get_trade_history | get_trade_history | no |
POST /v1/tools/get_trade_stats | get_trade_stats | no |
POST /v1/tools/get_trade_universe | get_trade_universe | no |
POST /v1/tools/get_trailing_status | get_trailing_status | no |
POST /v1/tools/get_volatility_regime | get_volatility_regime | no |
POST /v1/tools/heartbeat | heartbeat | yes |
POST /v1/tools/list_connections | list_connections | no |
POST /v1/tools/list_hypotheticals | list_hypotheticals | no |
POST /v1/tools/manage_alerts | manage_alerts | no |
POST /v1/tools/manage_equity_guard | manage_equity_guard | yes |
POST /v1/tools/manage_news_guard | manage_news_guard | no |
POST /v1/tools/manage_prop_firm_rules | manage_prop_firm_rules | yes |
POST /v1/tools/manage_watchlist | manage_watchlist | yes |
POST /v1/tools/modify_pending_order | modify_pending_order | yes |
POST /v1/tools/modify_position | modify_position | yes |
POST /v1/tools/partial_close | partial_close | yes |
POST /v1/tools/place_order | place_order | yes |
POST /v1/tools/query_journal | query_journal | no |
POST /v1/tools/release_lease | release_lease | no |
POST /v1/tools/reverse_position | reverse_position | yes |
POST /v1/tools/scan_symbols | scan_symbols | no |
POST /v1/tools/score_journal_entry | score_journal_entry | no |
POST /v1/tools/set_breakeven | set_breakeven | yes |
POST /v1/tools/set_leverage | set_leverage | yes |
POST /v1/tools/set_margin_mode | set_margin_mode | yes |
POST /v1/tools/set_mode | set_mode | no |
POST /v1/tools/set_position_mode | set_position_mode | yes |
POST /v1/tools/set_protection | set_protection | yes |
POST /v1/tools/set_trailing_stop | set_trailing_stop | yes |
POST /v1/tools/simulate_rule_template | simulate_rule_template | no |
POST /v1/tools/track_hypothetical | track_hypothetical | no |
POST /v1/tools/write_trade_note | write_trade_note | no |