Integrate your bussiness to the open finance world

Connect your application to the most popular blockchain financial instruments using your favorite development language: .

Defire in Action 👊

Check demo transaction on Etherscan! (Rinkeby)

Made For Developers

by developers
API for DeFi
Access to the future of financial services with just a few lines of code.
Trustless
Remain in control of your funds, all calls are secured by our proxy smart contracts.
Cloud Powered
Our API is always available, continuously upgraded, and auto-scales to meet your needs.
Fully Documented
All the information you need to get familiar with the Defire tools and explore their features.

How Does It Work

You're only a few simple steps away
1Create your secure keys

Create your public and private key pair if you do not have one already. Here you can find more information to do it securely.

2Connect to our API

Pick your favorite programming language SDK to securely sign and execute the financial transaction you desire.

3Access the open finance

Your transaction will be executed on the blockchain. Track it and capture various metrics on our management dashboard.

// Require the Defire library with a private key.
const defire = require('defire')('f702ab818a8c6b...86c1c064');

// Create a portfolio. Need ETH on the account.
const portfolio = await defire.portfolio.create({
  description: 'main portfolio',
  deposit: { 
    amount: 200,
    currency: 'eth'
  },
  auth: [{
    address: '0x165349b4c304B127489237B71ce060e382b75859',
    permissions: ['deposit', 'lend']
  }]
});
// Require the Defire library with a private key.
const defire = require('defire')('f702ab818a8c6b...86c1c064');

// Create a payment for Ethereum.
const payment = await defire.payment.create({
  amount: 80,
  currency: 'eth',
  to: '0x165349b4c304B127489237B71ce060e382b75859',
  description: 'My first payment'
});
// Require the Defire library with a private key.
const defire = require('defire')('f702ab818a8c6b...86c1c064');

// Create a market order for Ethereum.
const trade = await defire.trade.createOrder({
  protocol: "all", //Could be 0x, ForkDelta, Uniswap, etc.
  sourceAsset: "dai", 
  destinationAsset: "eth",
  sourceAmount: 1000, // Market fill if no destination amount
  minFillPercent: 40,
  description: 'My first trade'
});
// Require the Defire library with a private key.
const defire = require('defire')('f702ab818a8c6b...86c1c064');

// Create a lending on Compound.
const lend = await defire.lend.create({
  source: 'compound',
  amount: 2000,
  currency: 'dai',
  description: 'My first lend'
});
// Require the Defire library with a private key.
const defire = require('defire')('f702ab818a8c6b...86c1c064');

// Borrow dx/dy.
const borrow = await defire.borrow.create({
  source: 'dxdy',
  amount: 450,
  currency: 'dai',
  description: 'My first borrow'
});

Seamless Integrations

Access the most popular DeFi instruments

Get Started in No Time

With just a few lines, connect your product to the open financial system.