From 415e2d01c87155fc3da4cd5fc771724ba77557c6 Mon Sep 17 00:00:00 2001 From: artin Date: Mon, 17 Jul 2023 13:13:20 +0000 Subject: [PATCH] changed stop loss --- index.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index db427a9..89a917c 100644 --- a/index.js +++ b/index.js @@ -4,10 +4,14 @@ var fs = require('fs') var morgan = require('morgan') var path = require('path') const app = express() + + + const port = 3000 const host = "0.0.0.0" + var accessLogStream = fs.createWriteStream(path.join(__dirname, 'access.log'), { flags: 'a' }) app.use(morgan('combined', { stream: accessLogStream })) @@ -85,12 +89,12 @@ async function order(acct_id, api_key, instrument, quantity) { try { - let dist = "0.005" - let pdist = "0.005" + let dist = "0.001" + let pdist = "0.001" if (instrument.includes("JPY")) { - dist = "0.5" - pdist = "0.5" + dist = "0.1" + pdist = "0.1" } data = {