All Projects → zeriontech → defi-sdk-js

zeriontech / defi-sdk-js

Licence: MIT License
JavaScript/TypeScript wrapper for DeFi SDK

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to defi-sdk-js

Rabby
The game-changing wallet for Ethereum and all EVM chains
Stars: ✭ 562 (+1603.03%)
Mutual labels:  dapp, defi
NFT-Dapp-Boilerplate
A highly scalable NFT and DEFI boilerplate with pre added web3 and different wallets with a focus on performance and best practices
Stars: ✭ 51 (+54.55%)
Mutual labels:  dapp, defi
synthetix-js
[deprecated] Please use https://github.com/Synthetixio/js-monorepo/tree/master/packages/contracts-interface
Stars: ✭ 63 (+90.91%)
Mutual labels:  dapp, defi
airswap-web
AirSwap Web App
Stars: ✭ 94 (+184.85%)
Mutual labels:  dapp, defi
MultiDexArbBot
This is an arbitrage bot that uses existing price aggregators such as 1inch, Paraswap, dex.ag, matcha and more to get the best exchange rates across different decentralized exchanges on different blockchains and ecosystems.
Stars: ✭ 67 (+103.03%)
Mutual labels:  dapp, defi
alcor-ui
Alcor Exchange | First self-listing onchain DEX for eosio tokens;
Stars: ✭ 103 (+212.12%)
Mutual labels:  dapp, defi
zeneth
🏵️ Let Your ETH Chill — Gasless Ethereum account abstraction with Flashbots
Stars: ✭ 112 (+239.39%)
Mutual labels:  dapp, defi
octofi-app-aquafarm
OctoFi - Track your DeFi portfolio, find new investment opportunities, buy and sell directly, and wrap your tentacles around a sea of gains. Hosted on Github Pages.
Stars: ✭ 36 (+9.09%)
Mutual labels:  dapp, defi
awesome-waves
Curated list of awesome things for development on Waves blockchain.
Stars: ✭ 60 (+81.82%)
Mutual labels:  dapp, defi
go-compound
Golang client for compound.finace api and smart contracts
Stars: ✭ 23 (-30.3%)
Mutual labels:  dapp, defi
Setheum
Setheum Network - Islamic Finance DeFi, Multi-Stablecoins, Payments, EVM, DeFi on Rockets to Heaven => 🚀ready for hacking🚀
Stars: ✭ 15 (-54.55%)
Mutual labels:  dapp, defi
setprotocol.js
🥞 Javascript library for a collateralized basket of ERC20 tokens
Stars: ✭ 57 (+72.73%)
Mutual labels:  dapp, defi
defi-dapps-solidity-smart-contracts
This is a Web 3 Smart Contract learning and teaching repo which will be used to teach students all across Pakistan.
Stars: ✭ 241 (+630.3%)
Mutual labels:  dapp, defi
defi
Tools for use in DeFi. Impermanent Loss calculations, staking and farming strategies, coingecko and pancakeswap API queries, liquidity pools and more
Stars: ✭ 464 (+1306.06%)
Mutual labels:  dapp, defi
core
SIREN Core Smart Contracts
Stars: ✭ 39 (+18.18%)
Mutual labels:  dapp, defi
quipuswap-webapp
🌐 🧙‍♂️ Decentralized application UI for Quipuswap protocol.
Stars: ✭ 21 (-36.36%)
Mutual labels:  dapp, defi
layer2-finance-contracts
Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.
Stars: ✭ 40 (+21.21%)
Mutual labels:  defi
spectrum
💠 Full Gamut Ethereum Lightsuite
Stars: ✭ 56 (+69.7%)
Mutual labels:  dapp
dapp-browser
A simple, ENS-powered browser for Ethereum dApps
Stars: ✭ 20 (-39.39%)
Mutual labels:  dapp
clp-contracts
AMM and Continous Liquidity Provider smart contracts on NEAR blockchain
Stars: ✭ 25 (-24.24%)
Mutual labels:  defi

defi-sdk

A JS client for interacting with Zerion API

Install

npm install defi-sdk

Getting Started

import { client } from "defi-sdk";

client.configure({ url: endpoint, apiToken: API_TOKEN });

API

General usage

client.subscribe(options)

import { client } from "defi-sdk";

client.subscribe({
  namespace: "assets",
  body: {
    scope: ["prices"],
    payload: { asset_codes: ["eth"], currency: "usd" }
  },
  onMessage: (event: Event, data: Response) => {
    /* handle data */
  }
});

Domain Helpers

Instead of calling client.subscribe and passing type information manually, the SDK provides helpers for most of the existing request scopes

addressAssets

import { client } from "defi-sdk";

client.addressAssets({
  payload: { asset_codes: ["eth"], currency: "usd" },
  onData: data => {
    /* handle data */
  }
});

Types

Request

interface Request<T, ScopeName extends string> {
  scope: ScopeName[];
  payload: T;
}

Response

interface Response<T> {
  meta: any;
  payload: T;
}

See Response in Zerion Docs

License

MIT License, see the included LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].