---
title: "Validate own-account (BYO) trading credentials"
method: POST
path: "/trading/accounts/check"
tags: ["Trading"]
---

# Validate own-account (BYO) trading credentials

`POST /trading/accounts/check`

## Request

- Base URL: `https://foresea.ink` (the document declares no server; this is the origin it was published from)
- URL: `https://foresea.ink/trading/accounts/check`
- Auth: none declared

Report readiness for caller-supplied own-account credentials, never stored.

Lets the UI confirm a connected Kalshi/Polymarket account (e.g. the RSA key
parses) before placing an order. Credentials are used transiently and never
echoed back — only boolean readiness is returned.

## Request body

- TradingAccountCheckRequest: Legacy transient credential validation request. Kept for non-browser compatibility while the public product uses the secure account-connection endpoint below.
  - `venue_credentials` VenueCredentials: Credentials received only by the authenticated connection endpoint. These values are accepted once over TLS, encrypted server-side, and never returned to the browser. They are intentionally rejected on order-preview and order-submission requests so the public UI cannot fall back to a browser-held secret flow.
    - `kalshi_api_key_id` string, nullable
    - `kalshi_private_key` string, nullable: RSA private key PEM.
    - `kalshi_base_url` string, nullable
    - `polymarket_private_key` string, nullable: Wallet private key.
    - `polymarket_api_key` string, nullable
    - `polymarket_api_secret` string, nullable
    - `polymarket_api_passphrase` string, nullable
    - `polymarket_clob_host` string, nullable
    - `polymarket_chain_id` integer, nullable
    - `polymarket_signature_type` integer, nullable
    - `polymarket_funder_address` string, nullable

## Response `200`

Successful Response

- TradingAccountStatus: Trading readiness without exposing exchange secrets.
  - `trading_enabled` boolean, required
  - `byo_trading_enabled` boolean
  - `max_order_notional` number, required
  - `allow_market_orders` boolean, required
  - `confirmation_phrase` string, required
  - `credential_source` string, required
  - `venues` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/foresea/apis/foresea-intelligence-api.md) · [All operations](https://skmtc.dev/foresea/apis/foresea-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foresea/apis/foresea-intelligence-api/revisions/b03e49f4385d?raw)
