Skip to content

Trading Back-End on Solana #152936

Discussion options

You must be logged in to vote

hello,
This is very good question in trading back-end development.
MT5, MT4 and Crypto trading is similar to each other.
I think you will develop back-end with Node.js
There is promise function in node.js
This function enable to compose and chain multi async function.

please look at this:

// Function to simulate a task with some execution time
function simulateTask(id, time) {
return new Promise((resolve, reject) => {
setTimeout(() => {
console.log(Task ${id} completed in ${time}ms);
resolve(Task ${id} result);
}, time);
});
}

// Simulate tasks for each circle from 0 to 1000
const tasks = [];
for (let i = 0; i <= 50; i++) {
const taskTime = Math.floor(Math.random() * 100) + 1;
tasks.push(…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tosky199412091
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Security Build security into your GitHub workflow with features to keep your codebase secure Question
3 participants