# Foresea Trading API

**Canonical:** https://apis.io/apis/foresea-ink/foresea-ink-trading-api/  
**Provider:** Foresea — https://apis.io/providers/foresea-ink/  
**Documentation:** https://foresea.ink/docs

Foresea Trading API is one of 17 APIs that [Foresea](https://apis.io/providers/foresea-ink/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 1 JSON Schema definition. Tagged areas include Trading. The published artifact set on APIs.io includes an OpenAPI specification and 1 JSON Schema.

Preview and submit guarded prediction-market orders for authenticated users.

## Operations (21)

| Method | Path | Summary |
|---|---|---|
| GET | `/portfolio/optimal-allocation` | Calculate optimal Fractional Kelly allocation across live Grade A/B… |
| POST | `/portfolio/optimize` | Optimize arbitrary list of market opportunities using Fractional Kelly |
| GET | `/trading/accounts` | Check configured trading venues |
| POST | `/trading/accounts/check` | Validate own-account (BYO) trading credentials |
| GET | `/trading/guardrails` | Read the signed-in user's real-money trading guardrails |
| PUT | `/trading/guardrails` | Narrow the signed-in user's real-money trading guardrails |
| GET | `/trading/guardrails/events` | List safe audit events for real-money trading controls |
| GET | `/trading/connections` | List encrypted exchange connections |
| PUT | `/trading/connections/{platform}` | Encrypt and save one exchange connection |
| DELETE | `/trading/connections/{platform}` | Delete one encrypted exchange connection |
| POST | `/trading/preview` | Preview a guarded prediction-market order |
| POST | `/trading/runs` | Create a durable, reviewable live-trade run |
| GET | `/trading/runs` | List the signed-in user's durable trade runs |
| GET | `/trading/runs/{run_id}` | Read one durable trade run |
| POST | `/trading/runs/{run_id}/execute` | Execute one saved run after explicit confirmation |
| POST | `/trading/orders` | Submit a confirmed prediction-market order |
| GET | `/trading/orders` | List the signed-in user's submitted order audit trail |
| GET | `/trading/portfolio` | Reconcile an exchange portfolio, orders, and fills |
| POST | `/trading/orders/{audit_order_id}/reconcile` | Refresh a submitted order's fill/status |
| POST | `/trading/runs/{run_id}/reconcile` | Reconcile the exchange order linked to a durable trade run |
| DELETE | `/trading/orders/{audit_order_id}` | Cancel the remaining quantity of a submitted order |

## Machine-readable artifacts (2)

- **OpenAPI** — https://artifacts.apis.io/foresea-ink/openapi/foresea-ink-trading-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/foresea-ink/json-schema/foresea-ink-trade-run-create-request-schema.json

## Other Foresea APIs (12)

- [Foresea Agent API](https://apis.io/apis/foresea-ink/foresea-ink-agent-api/)
- [Foresea Agents API](https://apis.io/apis/foresea-ink/foresea-ink-agents-api/)
- [Foresea Analytics API](https://apis.io/apis/foresea-ink/foresea-ink-analytics-api/)
- [Foresea Auth API](https://apis.io/apis/foresea-ink/foresea-ink-auth-api/)
- [Foresea Autonomous Twin API](https://apis.io/apis/foresea-ink/foresea-ink-autonomous-twin-api/)
- [Foresea Feed API](https://apis.io/apis/foresea-ink/foresea-ink-feed-api/)
- [Foresea Inference API](https://apis.io/apis/foresea-ink/foresea-ink-inference-api/)
- [Foresea Kite Connect API](https://apis.io/apis/foresea-ink/foresea-ink-kite-connect-api/)
- [Foresea Kite Personal API](https://apis.io/apis/foresea-ink/foresea-ink-kite-personal-api/)
- [Foresea Knowledge API](https://apis.io/apis/foresea-ink/foresea-ink-knowledge-api/)
- [Foresea Markets API](https://apis.io/apis/foresea-ink/foresea-ink-markets-api/)
- [Foresea Model Providers API](https://apis.io/apis/foresea-ink/foresea-ink-model-providers-api/)

## Tags

Trading

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/foresea-ink/foresea-ink-trading-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/foresea-ink/.
