API Example Scripts
Here are a few examples of some useful real-life scripts that could be implemented using the HollaEx API
Get Sign Ups
const hollaex = require("hollaex-node-lib");
const client = new hollaex({
apiURL: "<YOUR_EXCHANGES_URL>",
apiKey: "<USER_API_KEY>",
apiSecret: "<USER_API_KEY_SECRET>",
});
//Get the number of exchange user signups by each month.
const getSignups = async () => {
try {
const months= ["January","February","March","April","May","June",
"July", "August","September","October","November","December"];
const signups = {};
for(let i = 0; i < months.length; i++) {
const date = new Date();
const month = date.setMonth(date.getMonth() - i);
code
const res = await client.getExchangeUsers({ startDate: new Date(month) });
signups[`${months[date.getMonth()]}- ${date.getFullYear()}`] = res.data.length;
}
return signups;
} catch (error) {
return error.message;
}
}
getSignups().then(res => console.log(res);Reward New Users with USDT
Alert Admin to Large Deposits
Send Custom HTML Email to New Users
Find the Most Active Trader
Last updated