# Triv: Building a Crypto and Digital Asset Exchange on Ruby on Rails

> How I built Triv's trading platform from the ground up on Peatio and Rails — trading workflows, blockchain and payment gateway integrations, WebSockets and AWS — for an Indonesian digital-asset marketplace.

Sector: Fintech / crypto. Role: Platform development, integrations and infrastructure. Market: Indonesia. Product: https://triv.co.id/id

Triv is an Indonesian marketplace for buying, selling and staking digital assets. I built its trading platform from the ground up using the Peatio framework and Ruby on Rails, and handled its infrastructure and deployment.

## Business context

A digital asset exchange has to move real money between bank systems, payment providers and blockchains, while giving customers live prices and a clear view of their balances. There is little tolerance for errors, because a mistake in a ledger is a financial loss rather than a visual bug.

## My responsibilities

- Built the trading platform from the ground up using Peatio and Ruby on Rails.
- Developed and customised core trading workflows, backend services and REST APIs.
- Worked with PostgreSQL, Redis and RabbitMQ.
- Integrated blockchain APIs for cryptocurrency deposits and withdrawals.
- Integrated payment gateways for transaction processing.
- Added WebSockets for real-time updates.
- Handled AWS infrastructure, application deployment, performance optimisation and production reliability, with Cloudflare supporting the platform.

## Technical challenges in this kind of product

Moving funds correctly is the central problem. External events such as blockchain confirmations and payment callbacks can arrive late or more than once, so the code handling them must be safe to repeat, and every balance change has to be traceable.

An exchange also has to deliver fresh data to many connected clients. Separating background services through a message queue, using Redis for fast-changing data and pushing updates over WebSockets allows the customer-facing experience to stay live without routing all of that work through ordinary web requests.

## Technologies used

- Ruby on Rails
- Redis
- RabbitMQ
- WebSockets
- PostgreSQL
- Blockchain APIs
- REST API
- Payment Gateway
- AWS
- Cloudflare

---

HTML version: https://fullstackweb.dev/projects/triv/
Maintained by Hendra Nicholas, Senior Full-Stack Software Engineer & AI Engineer, hello@fullstackweb.dev.
