API CONNECT - WEBREQUEST PROBLEM

Other Integration MySQL PHP

Job finished

Execution time 17 hours
Feedback from employee
A great experience. I'd be happy to work with you again.
Feedback from customer
Vitor did an excellent job and quickly. He is also a person who can express himself very well and this facilitated the completion of the project. I wholeheartedly recommend this developer.

Specification

Hello!


I'm having trouble putting together the code to connect to a database and control a query.

I created this code through some queries but I have an error when complicating code 4029.


void Check()

  {

   string uri = "END_POINT_API";

   char post[100];

   char result1[100];

   string headers;

   string APIKEY = "";

   string LICENCEKEY = "";

   int res;

   string signal = "?api_key=" + APIKEY + "&license_key=" + LICENSEKEY;

   StringToCharArray(signal, post);


// Construct the request headers

   headers = "Content-Type: application/json";  // Set the correct header format


// Reset last error

   ResetLastError();


// Post data to REST API

   res = WebRequest(

            "POST",

            uri,

            headers,        // Pass headers as a string

            10,             // Timeout in seconds

            post,

            result1,        // Store the response in result1

            headers         // Response headers (optional)

         );


// Check errors

   if(res == -1)

     {

      int error_code = GetLastError();

      string error_msg = ErrorDescription(error_code);

      Print("Error in Webquest. Error Code ",error_code," Error ",error_msg);

      if(error_code==4060)

        {

         MessageBox("Add address '"+uri+"' in Expert Advisors tab of the Options window", "Error", MB_ICONINFORMATION);

        }

      else

        {

         // Successful

         Print("REST client's POST: ", signal);

         Print("Server response: ", CharArrayToString(result1, 0, -1));

        }

     }

  }

//+------------------------------------------------------------------+


Below is the documentation of the API in which I want to query and with the result I will search for some information to validate the license of my products.



It is important to mention that I inserted my end-point in the metatrader 4 options, ruling out that this is why the connection problem occurred.



Responded

1
Developer 1
Rating
(42)
Projects
49
47%
Arbitration
1
100% / 0%
Overdue
1
2%
Free
Published: 1 code
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(19)
Projects
27
26%
Arbitration
0
Overdue
2
7%
Free
4
Developer 4
Rating
(26)
Projects
34
29%
Arbitration
0
Overdue
1
3%
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hello I need a professional developer to code my indicator with my strategy and settings for TradingView I have specific requirements, how i want my bot settings to be, i have a video explanation for all the requirements after programming. I'm going to connect it with a bridge and a webhook Contact me only if you can handle it, and you know about TradingView, it's a complex code with a little budget, but I will
I want to generate analysis that gives me trades based on these examples from the developer youtube side Some extra info how i see refinement of analysis Ultimate Top Down Analysis Strategy (Step by Step) https://youtu.be/GKN-iVjJpyA?si=rJpX8YWzzlY6N1Pb some inducement entry model https://youtu.be/86wSTni7B14?si=4By5LiHMWk11p0Dr This entry model will change how you trade…
Telegram bot 100+ USD
Hell great developer I need a Telegram bot connected to my trading setup. Messages I receive (from MT5 into a bot channel): BareBull: OPEN TRADE - XAUUSD Buy Ticket: 1296584 Entry: 3388.1 SL: 3375 TP: 3395 BareBull: CLOSE TRADE - XAUUSD Buy Ticket 1296584 Bot must do: Read messages from bot channel. Link OPEN and CLOSE trades using ticket number. Forward to private channel (every trade, custom format). Forward to
Hi developer I want to have these charts created automatically based on the examples Based on SNR Method Based on RS break zone With as example this text on the screen 📉 Sell Zone 3399-3402 🔴Support Become Resistance 🔴Suply Zone 📈 Buy Zone 3384-3381 🔵Resistance Become Support 🔵Demand Zone The outcome generates automatically a pdf with the result like this image + text that is on the screen This project should
Bainanans 500+ USD
Bainanan good f المؤشر. ينبغي إضافة نقطة صفراء عند أعلى نقطة في الشموع في منطقة ذروة الشراء - وهي نقطة H. ينبغي إضافة نقطة خضراء عند النقطة المنخفضة للشموع في منطقة ذروة البيع - وهي نقطة L. إذا وُجدت نقطة L واحدة على الأقل بين نقطتي H، فابحث عن نقطة LL في الفترة الفاصلة بينهما. ستكون الشمعة ذات أدنى سعر قاع هي نقطة LL. بشكل عام، لا تُعتبر نقطة LL بالضرورة نقطة L. ابحث عن الشموع ذات أدنى سعر قاع. إذا كانت هناك نقطة H
Døsh forex 30 - 200 USD
I want a robot that will help me and trade the the robot will be very good I don’t want to loose money I repeat I don’t want to loose money
We are looking for an experienced MT5/MQL5 developer to build a data bridge that connects an external market data feed (tick-by-tick from a third-party provider) into the MT5 platform. Requirements: Capture real-time tick-by-tick market data (bid/ask/last price, volume) from an external API (source: WebSocket/REST or DLL). Push this data into MT5 in a format compatible with native charts and order execution
Shybossforex robot 30 - 50 USD
Shybossforex strategy full data continuation and reversal.The strategy of continuation and reversal is trading technique 5hat involves two different approach to trade execution.The continuation and reversal is based on assumption that current market trend will continuation in future and therefore inloves taking position in same direction as prevailing trending,I will wait for the pullback and continuation trade with
I am looking for an experienced MQL5 developer to build a trading robot based on my personal strategy. The EA should be coded professionally, with efficiency, accuracy, and risk management in mind. Strategy Overview: The strategy is structure-based with Fibonacci retracement (0.618–0.79) as the primary Point of Interest (POI). Secondary confluences include order blocks, support/resistance, psychological levels, and
I need a custom options scanner built with the following features: Scan ATM call or put options with the same expiry . Filter for open interest ≥ 175 . Expiration between 1 to 60 days . Underlying stock price between $5 and $175 . Use mark price for calculations. Results should be sortable by debit or credit . Scanner should include ETFs as well as stocks . Goal: A simple and efficient scanner that quickly identifies

Project information

Budget
30+ USD
For the developer
27 USD