Trabajo finalizado
Tarea técnica
i need a EA that creates a json array and submit it via HTTP POST request every x sec.
1. Input field (double) that sets the base Balance
1. input field (int) that sets the timer to execute (every x sec)
1. input field (varchar) for the url
1. input field (varchar) for the access token
if positions open
output array should contain current PnL in % (based on the balance input), Free margin, Running Pnl (in%) and equity Pnl (based on balance input)
if no position open just submit the pnl based on the set balance input.
here is a cURL example of what I need to be submit
curl -X POST \ -k -H "Accept: application/json" \ -H "X-Access-Token: -TOKEN-" \ -H "Cache-Control: no-cache" \ -d '{ "frames": [ { "text": "Margin 3000%", "icon": 45063, "index": 0 }, { "text": "Today PNL +5%", "icon": 45063, "index": 1 }, { "text": "open Positions +10%", "icon": 45063, "index": 2 } ] }' \ https://172.16.67.210:4343/api/xxxx
this is a extremely simple task .. time is the essence here!