Superior automated trading through programmatic access

By Artur de Araujo, Head of Quant Research at Reya Labs
When every millisecond matters, you need a venue that delivers execution you can rely on. Reya’s trading-optimized network offers a superior experience, ensuring you keep pace with—and even outpace—the market.
Manual trading simply can’t keep up with 100ms blocks. That’s why Reya offers superior programmatic access for traders at every level, taking your trading to the next level.
Successful trading is not only about predicting price but also about reading the market’s evolving information dynamics in real time and responding with precision. Effective trading requires a deep understanding of volume, liquidity, and the overall market profile. It’s about detecting and acting on information asymmetries and market imbalances—especially in the fast-paced world of DeFi, where order flow and liquidity shift around the clock.
Trading on Reya is trading at the speed of the markets
With a network fine-tuned to the unstoppable pace of crypto, you need tools that not only help you keep up but also thrive. Reya’s programmatic access keeps your trading fully on-chain and at market speed. The results speak for themselves: over the last quarter of 2024, 91.2% of trades on Reya were executed programmatically via our API endpoints, representing 71% of overall trading volume. This level of automated activity underscores the reliability of Reya’s execution.
Reya’s programmatic access points and tools
Reya provides multiple layers of programmatic access, each designed to serve different trading and automation needs. These access points are not exclusive—instead, they complement each other, allowing traders to choose the right tool for the right task while maintaining full control over their execution strategy.
- Direct RPC interactions forego intermediaries and provide you with the lowest latency and highest customizability when submitting transactions or generally interacting with the chain; on the other hand, this low level blockchain access comes with a significant overhead when interacting with its data structures (indexing, processing, etc).
- Reya DEX cloud server’s API, while still offering the ability to trade in a (slightly less) low latency, automated manner, provides you with a higher level language which you can more easily leverage to build your own SDKs; and more importantly, it offers you a streamlined and conveniently processed data structure and and an access point with increased availability.
Direct RPC access
For advanced users and infrastructure providers who require raw, low-level blockchain access, Reya offers direct RPC endpoints. Unlike the API, which provides pre-processed and optimized trading data, RPC access allows you to directly interact with Reya's blockchain nodes, offering:
- Full control over transactions, including customizability, signing and execution.
- The fastest possible access to blockchain state, without relying on intermediaries.
- Real-time monitoring of blocks and events.
With direct RPC access, you can:
- Submit transactions directly to the Reya network, bypassing higher-level abstractions.
- Query blockchain state in real time.
- Monitor network events with full transparency and granularity.
This is the most direct and lowest-latency method to interact with the Reya network. It’s particularly useful for infrastructure providers, power users, and traders looking to optimize execution down to the millisecond.
More details and contract addresses:Reya Technical Documentation
Reya DEX REST and Websocket APIs
For your convenience, Reya DEX offers a cloud REST and websocket APIs with access to its own indexed and pre-processed data structures as well as higher level trading tools, allowing you to easily process data both in an internal-driven and an event-driven logic.
These APIs inevitably introduce some latency compared with direct blockchain access but provide important advantages:
- Streamlined Data Structure – No need to index raw on-chain events; data is delivered in a structured, easy-to-use format, ranging from oracle prices, to funding rates or processed candles.
- Higher-Level Interactions – Execute orders and access market data without handling low-level blockchain mechanics (indeed you can build your own SDK on top of it).
- Better Availability – API servers ensure redundancy and uptime, minimizing reliance on individual blockchain nodes (although you can run your own node if you want to!).
Reya DEX’s UI deploys these API access points.
Python SDK – and beyond
Reya is built to bring pro trading to the everyday degen. If you are looking for a quick and efficient automation tool, the Python Software Developer Kit (SDK) provides an intuitive high level interface leveraging the Reya DEX APIs. This makes it the ideal tool to get you started with programmatic trading with the least overhead cost:
- Develop automated strategies with minimal set-up;
- Interact with market data feeds without dealing with direct API or blockchain calls (while still being able respond in an event driven manner through a websocket connection);
- Executing trades without managing infrastructure.
More importantly, the Python SDK is a reference implementation: you can chek its open and well documented repository, and use it to build your own SDK in your preferred language. Maybe you just need to squeeze that extra split second using Rust!
GitHub - Reya-Labs/reya-python-sdk at blog.reya.network
Key benefits of Reya’s Programmatic Trading
Whether you’re building complex trading strategies in Python, need structured, high-availability API access, or require the granular control of direct RPC access, Reya offers the tools and infrastructure to execute your vision. Each trader has different needs at different times, and these different tools complement each other to take your trading to the next (programmatic) level – whether you are an algorithmic trading fund, or a true degen quant.
But ultimately, what these tools provide you is all-around access to the CEX-like trading experience, but on-chain:
Speed — execute in real time
- Reya’s 100ms block times, combined with Stork’s 10ms data feeds, let you respond instantly to market changes.
- Seize emerging signals and arbitrage opportunities the moment they occur, minimizing adverse selection and slippage.
- Scale your operations with a throughput of 30,000+ TPS.
Precision — achieve optimal price execution
- By tapping into deep, aggregated liquidity, your orders are filled with pinpoint accuracy.
- The pegging mechanism to perpetual markets on major CEX venues ensures trades execute at optimal prices, capturing even the slightest market advantages.
Fairness — get transparent execution
- Trade without front-running, MEV distortions, or hidden costs, thanks to Reya’s robust network design.
- Enjoy a gasless trading experience that delivers predictable costs and maintains the integrity of your trading operations, even in volatile markets.
There’s a lot more to it, and you can read all about it here:
Start building your automated trading strategy on Reya today and experience the perfect blend of speed, precision, and fairness that only the future of on-chain trading can provide.