Forum

How to pass key value pairs with webrequest()

I would like the req.body to be formatted as key value pairs like so: req.body: { emailAddress: exampleemail@gmail.com, accessKey: 123456789 , accountNumber: 12345 } Improperly formatted code removed by moderator. ... I'm used to javascript and axios where you can just pass an object as the payload

Subtracting commissions during back testing!!

Is it possible to manipulate the ACCOUNT_BALANCE variable in any way (I've tried but keep getting errors when I compile, maybe I'm doing something wrong?)? If so, I can calculate and subtract the commission from my balance after every trade. If not does anyone have any way to account for commissions

Error code 130

I'm trading BTCUSDT which has a minimum stop loss of 50 pips. My stop loss is roughly $5 away (0.02%) for every trade. Only about 10% of the trades actually go through, and every time it throws an error I print the price, SL and TP. All the calculations are correct and exactly the same when it goes