API temporarily disabled
API Endpoints
Simple REST endpoints for integration — example routes and required params.
GET
/api/v1/healthStatus check — returns service & network status
GET
/api/v1/prices?pair=BTC_XMRLatest price for given trading pair
GET
/api/v1/wallets/{address}/balanceReturns balance for wallet (read-only)
POST
/api/v1/swapCreate a swap order. JSON body:
from, to, amount, callback_urlGET
/api/v1/tx/{txid}Query transaction status by id
Examples
Health check
curl -X POST -s http://onion.tor.my/api/v1/health
Create swap (JSON)
curl -X POST http://onion.tor.my/api/v1/swap \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{"from":"BTC","to":"XMR","amount":"0.01","callback_url":"http://onion.tor.my/callback"}'
Notes:Keep API keys secret. This service does not request personal data. Use Tor for all requests. Do not worry aboute rate limits. API requests are limited per Key, not per IP so Tor won't stop you.