Aurelia

Quickstart

From no account to your first answer in about a minute. 10,000 credits are free, with no card and no subscription.

1. Get a key

  1. Sign in with Google. Your first sign-in creates the account.
  2. On your account page, create a key and copy it. It starts with aur_ and is shown once.

2. Read a token

Wrapped SOL's price, market data and security checks, curl:

curl -s -H 'Authorization: Bearer aur_YOUR_KEY' \
  'https://app.aurelia.build/api/tokens/solana/So11111111111111111111111111111111111111112'

Wrapped SOL's price, market data and security checks, JavaScript:

const res = await fetch("https://app.aurelia.build/api/tokens/solana/So11111111111111111111111111111111111111112", {
  headers: { Authorization: "Bearer aur_YOUR_KEY" },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();
console.log(data);

Wrapped SOL's price, market data and security checks, Python:

import requests

r = requests.get(
    "https://app.aurelia.build/api/tokens/solana/So11111111111111111111111111111111111111112",
    headers={"Authorization": "Bearer aur_YOUR_KEY"},
    timeout=10,
)
r.raise_for_status()
print(r.json())

3. Draw a chart

Hourly candles in USD:

curl -s -H 'Authorization: Bearer aur_YOUR_KEY' 'https://app.aurelia.build/api/tokens/solana/So11111111111111111111111111111111111111112/candles?res=1h&currency=usd'

More in the OHLCV guide.

4. Follow it live

Every new trade of a token:

const ws = new WebSocket("wss://app.aurelia.build/api/live?apiKey=aur_YOUR_KEY");
ws.onopen = () => ws.send(JSON.stringify({ op: "subscribe", id: "sol", channel: "trades", chain: "solana", token: "So11111111111111111111111111111111111111112" }));
ws.onmessage = (e) => console.log(JSON.parse(e.data));

If something goes wrong

StatusWhat it meansWhat to do
401No key, or a bad, expired or revoked oneSend Authorization: Bearer <key>
402Your credits cannot pay for the requestAdd credit on your account page
429Over the burst limit: 5 a second free, 30 a second paidWait retryAfter seconds
404A token or pool Aurelia has not seenCheck the chain and the address

Next

Free to start: 10,000 credits, with no card and no subscription.

Create a free accountRead the API reference