Skip to content

framework for aquiring exchange data through PENDAX and sending to Discord

Notifications You must be signed in to change notification settings

traderjoe155/PENDAX-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

framework for aquiring exchange data through PENDAX and sending to Discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published