Giter VIP home page Giter VIP logo

pendax-discord-bot's Introduction

PENDAX-Discord-Bot

framework for aquiring exchange data through PENDAX and sending to Discord

npm install

create .env file and format as such: KEY='' SECRET='' PASSPHRASE='' DISCHOOK='' TIMEDELAY='60000' INSTID='BTC-USDT-SWAP' INSTTYPE='SWAP'

this example will poll OKX for open interest or get liquidations and post to a discord webhook. (you will need to paste your webhook address in the env file as DISCHOOK. adjust time delay as needed (be careful not to get rate limited). set the env params according to OKX api documentation. FYI the returned data is in number of contracts for Oi.

if you wish to create a new function and source a different set of data you can follow the format provided in index.js and alter as needed. documentation for using PENDAX can be found at https://docs.compendium.finance/pendax/using-pendax-sdk

Screenshot 2023-01-07 at 1 00 23 PM

Screenshot 2023-01-07 at 4 23 40 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.