Getting Started

Production base URL, authentication, and your first Rave Trading quote.

Rave Trading exposes a production RFQ API for tokenized assets on BNB Smart Chain. Ethereum chain support is coming soon — watch the Smart Contracts page for deployed addresses across chains.

Base URL

export RAVE_API="https://rave-trading.com/api"
export RAVE_API_KEY="***"

Use production for partner-facing integrations.

Authentication

Send API keys from your backend only:

Authorization: Bearer ***

Never expose the key in browser code, mobile apps, public logs, or customer support screenshots.

First checks

/health is public and does not require a key:

curl -s "$RAVE_API/health"

All quote, asset, and stream endpoints use bearer auth:

curl -s "$RAVE_API/api/v2/assets" -H "Authorization: Bearer $RAVE_API_KEY"

First quote

A quote request uses contract addresses and raw base-unit strings. This example quotes BSC USDT into one raw-base-unit AAPLon amount:

curl -s "$RAVE_API/api/v2/quotes/soft" -H "Authorization: Bearer $RAVE_API_KEY" -H "Content-Type: application/json" -d '{"token_in":"0x55d398326f99059ff775485246999027b3197955","token_out":"0x390a684ef9cade28a7ad0dfa61ab1eb3842618c4","amount":"1000000000000000000","chain_id":56,"slippage_bps":10}'

For firm quotes, add recipient and submit the returned execution.transaction unchanged from your wallet/RPC layer.