Bot API
Trade from your own bot with the same quotes, fees and checks as the site. Your bot signs every transaction with your wallet key on your own machine. Degenly never sees that key and never signs for you.
The Bot API can be switched off. While it is off, every /v1 path answers 404.
API keys
Connect your wallet, accept the Terms and the API Terms, then create a key. The key is shown once; we store only its hash. A key belongs to one wallet. You can have up to 5 active keys per wallet and revoke any of them.
Signing requests
Every request carries the three headers below. The signature is an Ed25519 signature by the key's wallet over the line below, base58-encoded. The body hash is the hex SHA-256 of the raw request body (of zero bytes when there is no body).
X-Degenly-KeyX-Degenly-TsX-Degenly-Sig
degenly-api-v1:METHOD|/path?query|sha256hex(body)|timestampThe timestamp is Unix time in milliseconds and must be within 30 seconds of our clock. Each signature is accepted once.
Endpoints
| Method | Path | What it does | Limit per wallet |
|---|---|---|---|
| GET | /v1/whoami | The wallet and key id of this key. | 60 per minute |
| GET | /v1/quote | A swap quote for the key's wallet, with the transaction to sign. Same parameters as the site: mint, side, amount, decimals, optional slippage and priority. Solana only. | 60 per minute |
| POST | /v1/execute | Sends the transaction you signed for a quote's requestId. It must be exactly the transaction we quoted, or nothing is sent (409 TX_MISMATCH). | 30 per minute |
| GET | /v1/data/tokens | Token, price, holder, pool and OHLCV data. Same parameters as the site. | 60 per minute |
| GET | /v1/data/prices | Token, price, holder, pool and OHLCV data. Same parameters as the site. | 60 per minute |
| GET | /v1/data/holders | Token, price, holder, pool and OHLCV data. Same parameters as the site. | 60 per minute |
| GET | /v1/data/pools | Token, price, holder, pool and OHLCV data. Same parameters as the site. | 60 per minute |
| GET | /v1/data/ohlcv | Token, price, holder, pool and OHLCV data. Same parameters as the site. | 60 per minute |
| GET | /v1/data/holdings | SOL and token balances of the key's wallet. | 60 per minute |
| GET | /v1/data/ledger | The confirmed Degenly swaps of the key's wallet. | 60 per minute |
Over the limit, the answer is 429 with Retry-After. Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
Limits count per wallet, across all of its keys. A wallet can make 60 requests per minute in total, and 400 quotes and 2000 data requests per UTC day. If a wallet asks for more than 50 quotes per executed trade in a day, quotes slow down to 6 per minute.
Fees
API trades pay the same Degenly fee as trades on the site. The fee is set on our server and is part of the quoted transaction, so a changed transaction is refused.
Terms of Use
The API needs the current Terms and the API Terms (version 2026-10-1). When the API Terms change, existing keys stop working until you accept the new version.
Keep your keys to yourself
Never share your API key or your wallet's private key. A leaked API key alone cannot move funds, because every request also needs your wallet's signature. A leaked wallet key can: whoever holds it controls your funds, and Degenly cannot reverse that.
Errors
- 401: missing or wrong signature, timestamp out of range, reused signature, unknown or revoked key.
- 403: Terms or API Terms needed, trading paused, or the order or address is not the key's wallet.
- 404: unknown path, or the API is switched off.
- 409: the signed transaction is not the one we quoted.
- 429: over the limit. Wait Retry-After seconds.