Skip to main content

Install

JavaScript: browser WebSocket

TypeScript: Node.js client

Best practices

  • Use limit orders to protect against unfavorable price movements.
  • Monitor the order book to understand liquidity before placing orders.
  • Respect rate limits — see Errors & rate limits.
  • Handle errors gracefully with retry logic for transient failures.
  • Keep the WebSocket alive with ping/pong and automatic reconnection.
  • Test on Sepolia first before deploying to mainnet.