Calling all developers: SDK for Opium Exchange available now!

Riccardo Biosas
Opium
Published in
3 min readOct 8, 2020

Opium Protocol is excited to announce the release of the oex-js SDK v1.0 — built on top of the Opium Exchange API. The SDK will make it easier for developers to build trading bots and custom trading frontends interacting with Opium Exchange. We’re committed to continuously improving the developer experience of building on top of Opium Protocol.

Opium Network — open to anyone!

At Opium we are building an important piece of financial infrastructure for the future of finance. Opium Protocol is designed to be universal and robust so that it can be used by independent developers and organizations as well. But blockchains today are challenging to build on — especially when it comes to DeFi use-cases since it requires knowledge on finance and mathematics.

By using pre-existing derivative logic and oracle integrations on Opium Protocol, anyone can design and launch a decentralized derivative in a few hours! This SDK release marks yet another milestone in our continuous commitment to making it as easy as possible for independent organizations and developers to build on top of our work.

About the SDK

The use-cases for our new SDK range from building trading bots and market-making bots, to easy integrations with custom trading frontends.

As market-making and LPs are currently all the rage in the Ethereum landscape today, we expect our SDK to contribute to enriching the Opium ecosystem and also the overall DeFi derivatives space.

Our release includes

  • JavaScript (TypeScript) SDK which includes utilities to make building on top of the Opium Exchange infrastructure easier
  • Documentation Our SDK is written in Typescript from top to bottom, so do not hesitate to dig into the docs if you are in doubt whether you’re passing the correct type as an argument for some API request.
  • HTTP API for authentication, interacting with the order book and system configuration
  • Socket.io API for receiving real-time data on the orders, trades, and assets listed on Opium Exchange

Example code

Installing the SDK is as easy as installing your usual npm module:

npm i @opiumteam/oex-js

Have a look at the example code below to understand how it works.

Call to action: Start building!

In order for Opium Network to become a community-driven and community-governed ecosystem, we need builders to create bots, tools & derivatives using our universal and robust protocol.

Use our developer tooling such as the Opium Exchange SDK and API (links can be found earlier in the article), swap.rate SDK and API, and our developer documentation.

Also make sure to join the #developers channel in our Discord server for tech support — we’re online most of the time and are eager to help you get started!

About Opium

Opium is a universal and robust DeFi protocol that allows for creating, settling, and trading decentralised derivatives. Use our products today to speculate on opportunities inside and outside of DeFi, or hedge yourself against trading risks.

Explore Opium Protocol or try out Opium Exchange.

Stay informed through following us on Twitter, joining our Telegram chat and announcements channel.

Join the discussion on our Discord server!

--

--

Riccardo Biosas
Opium
Writer for

Principal Security Engineer @Procore | Founder @AgorApp | prev. Protocol Engineer@LivepeerOrg & Fullstack/Lead Smart Contract Dev @Opium_Network