Commit 3443fad0 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 966442e2
......@@ -12,7 +12,8 @@ const client = redis.createClient(
);
let datas = []
appendDiffProfitLog('test1')
appendDiffProfitLog('test2')
const ccxt = require('ccxt')
......@@ -386,3 +387,13 @@ function getCalculateProfit(basePrice, value) {
}
function appendDiffProfitLog(log)
{
fs.appendFile('C:\\Users\\Administrator\\.pm2\\logs\\change-profit-diff.txt', log+'\n', function (err) {
if (err) throw err;
console.log('Saved!');
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment