Commit c21e62d4 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 13bd8e7e
...@@ -14,9 +14,12 @@ ...@@ -14,9 +14,12 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"big-json": "^3.1.0", "big-json": "^3.1.0",
"body-parser": "^1.20.0",
"bybit-api": "^2.1.10", "bybit-api": "^2.1.10",
"ccxt": "^1.83.50", "ccxt": "^1.83.50",
"cors": "^2.8.5",
"execution-time": "^1.4.1", "execution-time": "^1.4.1",
"express": "^4.18.1",
"extract-zip": "^2.0.1", "extract-zip": "^2.0.1",
"fast-csv": "^4.3.6", "fast-csv": "^4.3.6",
"i": "^0.3.7", "i": "^0.3.7",
......
var cors = require('cors')
let express = require('express');
let app = express();
var bodyParser = require('body-parser')
let server = require('http').createServer(app);
let port = 80;
app.use(cors())
app.use(bodyParser.text());
server.listen(port, () => {
console.log('Server listening at port %d', port);
})
app.post('/signal', (req, res) => {
res.send('Done')
console(req.body)
})
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