Public API Gateway

Expose K.I.T. trading and social data via a self-hosted REST API.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/datagridSolution/forex-trading-ai-agent --skill public-api-gateway-datagridsolution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Public API Gateway
Source: https://github.com/datagridSolution/forex-trading-ai-agent/tree/main/skills/public-api-gateway
Command: npx skills add https://github.com/datagridSolution/forex-trading-ai-agent --skill public-api-gateway-datagridsolution

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of integrating K.I.T. trading data (market, portfolio, and social) with third-party apps when you need a stable, self-hosted API instead of manual exports.

Core Features & Use Cases

  • Market Data API: Real-time quotes, historical OHLCV candles, order book depth, and 24h ticker statistics for trading dashboards and analytics pipelines.
  • Portfolio API: Auth-gated access to current positions, open orders, trade history, P&L calculations, and equity curve for monitoring and reporting.
  • Social API: Authenticated access to signals, follower data, performance metrics, and leaderboard position for community and signal-sharing products.
  • Execution API (Restricted): OAuth-protected order placement and order management for user-approved automation.

Quick Start

Ask the AI to help you self-host the gateway and then use an API client to fetch quotes for a symbol via GET /public/api/v1/quotes/:symbol.

Frequently Asked Questions about Public API Gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose trading data through a REST API for external applications?

To expose trading data through a REST API, you can self-host this gateway to provide a stable interface for market data, portfolio monitoring, and social signals. It serves endpoints under /public/api/v1/ for third-party integration.

How do I retrieve real-time market quotes and OHLCV data via a REST endpoint?

You retrieve real-time market quotes and historical OHLCV data by sending a GET request to the /public/api/v1/quotes/:symbol endpoint. The API also supports order book depth and 24h ticker statistics for analytics pipelines.

Do I need OAuth2 to access portfolio monitoring and trading data?

You need OAuth2 specifically for restricted execution tasks like order placement and management. Standard portfolio monitoring and market data retrieval use API key-based authentication with tiered rate limiting.

Can I subscribe to external trading applications using webhooks?

Yes, you can subscribe to external applications using webhooks. The API gateway supports webhook subscriptions to push trading and social data updates to third-party services automatically.

Does the API gateway enforce rate limiting for REST API requests?

Yes, the API gateway enforces tiered rate limiting for REST API requests to manage traffic. It requires HTTPS transport and API key-based authentication to ensure secure data exposure.

What is the best way to automate order execution using a self-hosted API?

The best way to automate order execution is using the OAuth-protected Execution API. It enables user-approved order placement and management through a secure, self-hosted REST interface.