Inspiration
We want to ride 3 trends: crypto and DeFi getting bigger, crypto options trading growing (hopefully) bigger than the spot market, like in tradFi and a mutli-chain and multi-layer world. We want to help develop this part of the crypto ecosystem. This POC is meant to be a first step in that direction.
What it does
For this hackathon, we at Teal Finance, built Rainbow, a dashboard for people to access DeFi market data Options. Our tool enable traders to see in one place all the available offers on 3 different places: Deribit, a CEX which is currently the main venue for crypto Options trading; PsyOptions, the biggest DeFi Options protocol on Solana; Opyn, an innovative DeFi Option that reside on the Ethereum blockchain.
How we built it
The backend is done in Go. We directly fetch the data from Deribit API. For Psyoptions, we used the serum Go package to learn and understant how markets are structures. On Ethereum, we used TheGraph to fetch the market and 0x API to get the orders on Opyn.
Challenges we ran into
We have experience fetching data from various markets providers and blockchains. So this was useful to know where to look for answers on those providers. Each protocols was totally different, so even though we tried to harmonize our data, each had it specificities. A hacker mindset is clearly necessary to be able to add more protocols in the future.
Accomplishments that we're proud of
We are proud of learning how to interface with those Options providers that are so different in their architecture, APIs and documentation.
What we learned
The future is a world of multiple blockchains but this requires bridges and tools to bring interoperability. Right now, this is really hard to execute that vision. But it will get easier.
What's next for Rainbow
There are more protocols on the Ethereum world that have some traction, Thales, Lyra, Hegic, that we want to integrate. We also want to be ready for new projects on Solana. But mainly, the next important feature, will be to enable users to directly trade from our UI, whether on DEX but also on CEX.
Built With
- 0x
- golang
- graphql
- serum
- solana
- thegraph
- typescript
- vue
Log in or sign up for Devpost to join the conversation.