Skip to main content

Base URL

https://vela-engine.fly.dev

Rate Limits

Rate limit exceeded returns HTTP 429 with:

Endpoints

GET /markets

Returns all active markets with current best bid/ask.

GET /orderbook/:market_id

Returns the full order book for a market.
Prices and quantities are in fixed-point format (multiply by 1,000,000 for display).

POST /orders

Place a new limit order. Requires wallet signature. Request:
Signature message format: vela:order::::: Sign via MetaMask personal_sign.

POST /orders/cancel

Cancel an existing order. Requires wallet signature. Request:
Signature message format: vela:cancel:::

POST /deposit

Credit the engine balance. Trust-based for non-ETH assets.
For ETH on-chain deposits, use the VelaSettlement contract directly.

POST /withdrawals

Submit a withdrawal request.

POST /withdrawal-signature

Request an operator signature for an on-chain ETH withdrawal.
Response:

GET /account/:address/balances

Returns all balances for a wallet address.

GET /ohlcv/:market_id

Returns OHLCV candlestick data for a market, derived from real trade history. Query parameters:
source is "LIVE" when built from real trades, "SIMULATED" when built from order book midpoints.

GET /account/:address/orders/by-client-id/:client_order_id

Look up a specific order by client order ID.

GET /referral/:address

Returns referral stats for a wallet address.

POST /referral/register

Register a referral relationship.
The signature message is vela:referral:{referred}:{referrer}:{nonce}, signed by the referred user.

GET /leaderboard

Returns the trading leaderboard.

GET /fees

Returns current global fee configuration.

GET /markets/:id/fees

Returns fee configuration for a specific market.

GET /orders/:id/da-proof

Returns a data availability proof for a filled order. Used by external parties to verify that a fill was included in the DA layer.

POST /force-include

Submit a signed transaction directly to the delayed inbox. The engine must include it within 24 hours or face an on-chain challenge.

GET /ws

WebSocket upgrade endpoint. Connect via wss://vela-engine.fly.dev/ws. See WebSocket Feeds for the full protocol reference.

GET /admin/state

Admin-only endpoint. Requires X-Admin-Token header.