Base URL
hn_test_ keys is available on request through the Hypernova Discord.
Quickstart
1
Create a key
In the app, open Settings → API Keys, give the key a label, choose read to start, and copy the key. It is shown once.
2
Make your first call
Every endpoint is an HTTPS POST with a JSON body and your key as a bearer token.You get your accounts, newest first. Pass an
- curl
- Python
- Node.js
accountId from the answer to every endpoint whose body names an account. ListAccounts, ListMarkets and StreamAccountEvents take none, and answer invalid_argument if you send one. See ListAccounts.3
Trade on a demo account
Create a write key the same way and start with PlaceOrder on a demo account, which trades against real prices with no money at stake.
A key reaches a demo account only during the pilot. Once the API is fully live, a call that names one answers
permission_denied, kind DEMO_VIA_API_KEY, and a key whose owner has only ever held demo accounts answers unauthenticated, kind ACCOUNT_REQUIRED.
Cancel the orders a key left resting on a demo account before then: they keep working afterwards, and only the app can then read or cancel them.
Neither means the key is broken, so do not replace it: place your test orders in the test environment instead, which you can ask for in the Hypernova Discord.{base}/<Endpoint>: the endpoint pages show only the JSON body.
StreamAccountEvents is the one exception, with a framing of its own.
Runnable Python and Node.js examples, a first call and a stream reader with no dependencies, are in hypernova-core/hypernova-api.
Accounts and automation
The API reaches Assessment and funded accounts, and demo accounts during the pilot only. Every call acts as the user who owns the key, sees only that user’s accounts, and is subject to the same rules as the app.API keys
Create and revoke keys in the app under Settings → API Keys, and send the key on every request asAuthorization: Bearer hn_live_….
- A request without a key, with a malformed or revoked key, or with a key of the wrong scope is refused before it reaches an account. A read key on a write endpoint answers
permission_denied. - A key is shown once, at creation. You can hold up to five live keys, and a revoked key fails on its next call.
- In Settings → Account → Sign out of all, Sign out everywhere ends your sessions and leaves your keys working. If a key may have leaked, choose Sign out and revoke all API keys, which ends every session and revokes every key together.
- When we detect a stolen session we end it and try to revoke your keys, and a key can stay live if that second step fails. Use Sign out and revoke all API keys to finish the recovery.
- After a revocation a running bot gets
unauthenticatedon every call until it is given a new key, and its resting orders stay on the book. - Production keys start with
hn_live_, test keys withhn_test_. Each environment keeps its own keys, so a key from one is unknown to the other. - Rate limits are per user, shared across all of your keys, so a second key does not buy more throughput. See Rate limits.

