Skip to main content

Docs · API reference

API reference

The routes ex7capital.com serves today, each with a cURL, Python and JavaScript sample. Routes marked auth need your EX7 sign-in.

3 routes liveHosted API: being redeployed

Contents

Before your first request

Base URL
https://ex7capital.com

Every route below is a path on this address.

Sign-in
Authorization: Bearer <session token>

Routes marked auth need your EX7 sign-in. In the browser your session goes along by itself; from code, send the session's access token in this header. Public routes need no header.

Error codes
What the routes on this page answer when a request does not go through.
StatusMeaning
400Bad requestA field is missing or invalid. Fix the body and send it again.
401UnauthorizedNo sign-in on a route marked auth. Send your session or its bearer token.
429Too many requestsToo many requests in a short time. Wait a minute and try again.
500Server errorSomething failed on EX7's side. Try again in a moment.

Strategies

post/api/vix/generate-strategyauth

Draft a strategy from a sentence

Turns an idea written in plain words into a flowchart draft you can open in the Workspace. Needs your EX7 sign-in: the session, or its bearer token.

Request body

{
  "prompt": "A 30-minute opening-range breakout with an ADX filter and a 1.5R target"
}

Responses

200The flowchart draft: its blocks and how they connect.
400The prompt is missing, empty or too long.
401No sign-in: send the session or a bearer token.
429Too many drafts this minute. Wait and try again.
Code samples (cURL · Python · JavaScript)
curl -X POST 'https://ex7capital.com/api/vix/generate-strategy' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "prompt": "A 30-minute opening-range breakout with an ADX filter and a 1.5R target"
}'

Account

post/api/waitlistpublic

Join the waitlist

Adds an email to the list EX7 writes to when it opens, and sends one confirmation email. The 18+ confirmation is required. No token needed.

Request body

{
  "email": "you@email.com",
  "age_gate_confirmed": true,
  "lang": "en"
}

Responses

200Saved, or the email was already on the list.
400Missing or invalid email, or the 18+ confirmation is missing.
429Too many tries from this connection. Wait a minute.
500The email could not be saved. Try again.
Code samples (cURL · Python · JavaScript)
curl -X POST 'https://ex7capital.com/api/waitlist' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "you@email.com",
  "age_gate_confirmed": true,
  "lang": "en"
}'

Health

get/api/healthpublic

Site health

Whether the site and the services behind it answer right now. The status page reads the same check. No token needed.

Responses

200The site answered. Its status field rolls up the checks; each check has its own status and latency.
Code samples (cURL · Python · JavaScript)
curl -X GET 'https://ex7capital.com/api/health'