Rest API Application

Created at 20 Jan 2021
JO

joseph.leen1@gmail.com

Joined 20.01.2021

Status

Open


Budget

100.00 EUR


Payment Method

Direct Payment

Job Description

Hi,

I need an application (java perhaps) to make market data requests to the CTrader Rest API at fixed time intervals for historical market data. Data to be saved to multiple .txt files. I will provide a full outline but this is the basic requirements.

Regards,

Joe 

Comments
Log in to add a comment.
95
9544315 · 3 years ago

// -------------------------------------------------------------------------------------------------------------//
//        The cbot logs at regular intervals defined by the "Tiemr Sec" variable, all of the open position ID+NetProfit+Pips+Swap

// All files are saved with the position ID as file name and in the desktop folder                                                                                                       //
//    This cBot is intended to be used as a TEST and does not guarantee any particular outcome or               //
//    profit of any kind. Use it at your own risk.                                                              //
//                                                                                                              //
//    IF YOU LIKE THE CODE AND WOULD LIKE TO DONATE:                                                            //
//                                                                                                              //
//    XRP (XRP) can be sent to this wallet address                                                              //
//    rMdG3ju8pgyVh29ELPWaDuA74CpWW6Fxns                                                                        //
//                                                                                                              //
//    Basic Attention Token (BAT) can be sent to this wallet address                                            //
//    0x0bFc0EB112E76C96BA8374AEe8005aFfdca7D4c2                                                                //
//                                                                                                              //
//    Litecoin (LTC) can be sent to this wallet address                                                         //
//    LLnDKTB4VEyGLDi33itqZxhvN3AX694zNT                                                                        //
//                                                                                                              //
// -------------------------------------------------------------------------------------------------------------//

using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
using System.IO;

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
    public class OBiAL_DataLogActiveOrders : Robot
    {

        /// File writer parms
        [Parameter("Timer Sec", DefaultValue = 600, MinValue = 1)]
        public int TimerSec { get; set; }

        // stream for file
        StreamWriter _fileWriter;
        // desktop folder
        static string desktopFolder = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
        /// File writer parms


        protected override void OnStart()
        {

            DateTime stopdate = new DateTime(2021, 10, 10);
            if (Server.Time.Date >= stopdate)
            {
                Stop();
            }
            /// File writer parms
            Timer.Start(TimerSec);
            /// File writer parms

        }

        protected override void OnTick()
        {
//...
        }

        protected override void OnTimer()
        {

            ///positions routine 
            foreach (var position in Positions)
            {
                {
                    string filePath = Path.Combine(desktopFolder, position.Id + ".txt");

                    _fileWriter = File.AppendText(filePath);

                    _fileWriter.AutoFlush = true;

                    _fileWriter.WriteLine("Server Time: " + Server.Time + " , " + "Position ID: " + position.Id + " , " + "Position NetProfit " + position.NetProfit + " , " + "Position Pips " + position.Pips + " , " + "Position Swap " + position.Swap);

                    _fileWriter.Close();

                }
            }

        }

        protected override void OnStop()
        {
            /// File writer parms
            _fileWriter.Close();
            /// File writer parms
        }
    }
}

bienve.pf's avatar
bienve.pf · 3 years ago

Hi. I can do that.

Email: Bienve.pf@hotmail.com 

Whatsapp/Telegram: +34654115547

Regards

AL
AlgoGURU · 3 years ago

Hi Joe,

I have been developing automated FX systems since 2010.  I have big experiences  to develop for cTrader/cAlgo, DukaScopy JForex, Metatrader4, Metatrader5 platforms or  make OpenAPI  or FIX API  solutions with great references.

For more info please visit to www.algoguru.hu 

Best Regards,

Norbert

4xDev's avatar
4xDev · 3 years ago

Hello!
My name is Mike from 4xdev. I am a member of the 4xdev development company, specialized in creating trading tools:
custom indicators, EAs, scripts, bots, alerts, cAlgo, cBots, etc.

We have a great experience in a NinjaTrader 7/8, сTrader, MT4/5, Sierra Charts, Trading View platforms.
You can also find 4xdev website listed as recommended authorized programmers on NinjaTrader 7/8, сTrader, Sierra Charts websites.

Our clients are satisfied with the quality of our work and repeatedly contact us after completing an order to optimize their own strategies.
You can see reviews of us at forexpeacearmy.com and trustpilot.com, and our website 4xdev.com.

We can help you with your project. Please let me know if you are interested (support@4xdev.com).

Website: 4xdev.com

WhatsApp: +380508146716

Skype: live:.cid.285d85434983f29e

Telegram: https://t.me/Forexdev


We offer the rate in the amount of $40 per hour, including the work of our programmers and QA-engineer.
The cost starts from $150 on average.

Looking forward to hearing from you.

DonaldD's avatar
DonaldD · 3 years ago

Hi there,

We can help you with your project. You can contact us at contact@clickalgo.com for more information.

Best Regards,

Donald