Examples
These examples use the current Gateway route conventions and reflect the current closed-beta route shape. Actual availability depends on environment and access policy.
Health Check
curl https://dev.ollo.finance/health
List Markets
curl https://dev.ollo.finance/v1/markets
Create An Account
curl -X POST \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"owner":"0x..."}' \
https://dev.ollo.finance/v1/accounts/create
Deposit Margin
curl -X POST \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"amount":"1000000"}' \
https://dev.ollo.finance/v1/accounts/1/deposit
Query The Order Book
curl -H "X-API-Key: YOUR_KEY" \
https://dev.ollo.finance/v1/markets/0x.../orderbook
Place A Market Order
curl -X POST \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"market_id":"0x...",
"collateral":"1000000000",
"side":0,
"leverage":5,
"order_type":0,
"limit_price":"0"
}' \
https://dev.ollo.finance/v1/accounts/1/trade