Topics
03 Jan 2022, 09:09
 1122
 7
09 Sep 2020, 17:32
 1655
 4
23 Aug 2020, 23:41
 938
 4
21 Oct 2019, 17:57
 1129
 5
Replies

Ketu
03 Jan 2022, 11:32

RE: RE:

amusleh said:

Ketu said:

I've got the console sample app working on VS 2022 but it just hangs after authenticating

Hi,

Does it show any error message?

Sorry, Hangs wasn't the right word, the program still runs but the account authorisation window stays up and nothing happens


@Ketu

Ketu
03 Jan 2022, 11:15

I've got the console sample app working on VS 2022 but it just hangs after authenticating


@Ketu

Ketu
03 Jan 2022, 10:59

RE:

amusleh said:

Hi,

Try to use our console sample at: spotware/OpenAPI.Net: Spotware Open API .NET Rx library (github.com)

See if it works or you will get the same error message.

I just tested and everything was working fine.

You can also test this web app sample: Blazor.WebSocket.Sample (spotware.github.io)

And can you tell which broker you are using and which endpoint? live or demo?

PepperstoneUK is the broker, demo endpoint.
The new sample is giving this error at the moment "NETSDK1045 The current .NET SDK does not support targeting .NET 6.0"


@Ketu

Ketu
11 May 2021, 11:35

RE:

Ketu said:

 

I'm currently using a google sample app which asigns a random port
 

 

I've got it working using a specified port, but was wondering if it works with a random port. The previous sample app didn't have OAuth2.0, but I noticed the new app after I wrote the post so will have a look at it.


@Ketu

Ketu
10 May 2021, 22:39

RE:

amusleh said:

Hi,

You have to add the Redirect URI on your Open API application Redirect URIs list first before trying to use the API authentication.

To add the redirect URI go to your applications page: https://connect.spotware.com/apps

Click on edit "Button" of your application and then add your redirect URI.

I've added the http://127.0.0.1/xxxx to the app page but not sure about the syntax for a random port if it is possible


@Ketu

Ketu
11 Sep 2020, 11:19

RE:

PanagiotisCharalampous said:

Hi Ketu,

You can use ProtoOASymbolsForConversionReq to get a conversion chain and convert from one symbol to another.

Best Regards,

Panagiotis 

Join us on Telegram

Excellent, thanks.


@Ketu

Ketu
10 Sep 2020, 09:36

RE:

Ketu said:

Hi,

I can calculate the risk of my position with just the volume and account balance, but the volume is in USD and account is GBP, there is a BaseToUsdConversionRate but it is at 1 when an order execution event comes through, it should be at 1.29 today.

Thanks

I've realised the base conversion is just for the symbol, is there an easy way to convert the balance or do i need to send a request for it?.


@Ketu

Ketu
24 Aug 2020, 10:37

RE:

PanagiotisCharalampous said:

Hi Ketu,

Do you still experience this issue?

Best Regards,

Panagiotis 

Join us on Telegram

 

Panagiotis,

Working fine now, thanks.


@Ketu

Ketu
08 Jul 2020, 12:17

RE:

PanagiotisCharalampous said:

Hi Ketu,

You need to post the complete code for us to be able to help you.

Best Regards,

Panagiotis 

Join us on Telegram

 

It's based on your LinesTrader sample

public ProtoSignalLine(Chart chart, SignalType? signalType, DateTime time1, double y1)
        {
            _chart = chart;
            _signalType = signalType;
            double y2 = y1;
            DateTime time2 = time1.AddHours(20);
            _line = _chart.DrawTrendLine(string.Format("1", Guid.NewGuid()), time1, y1, time2, y2, LineColor);

            _line.ExtendToInfinity = false;
            _line.Thickness = 1;
            _line.IsInteractive = true;
        }

 


@Ketu

Ketu
28 Oct 2019, 10:29

RE:

Panagiotis Charalampous said:

Hi Rob,

If you cannot share your cBot maybe you can share a dummy cBot that reproduces the problem. 

Best Regards,

Panagiotis

28/10/2019 08:00:03.366 | New cBot, XBRUSD, h1 | onbar New cBot 8:00 AM
28/10/2019 07:00:02.562 | New cBot, XBRUSD, h1 | onbar New cBot 7:00 AM
28/10/2019 06:00:05.235 | New cBot, XBRUSD, h1 | onbar New cBot 6:00 AM
28/10/2019 05:00:00.355 | New cBot, XBRUSD, h1 | onbar New cBot 8:00 PM
28/10/2019 04:00:24.530 | New cBot, XBRUSD, h1 | onbar New cBot 8:00 PM
28/10/2019 03:00:02.802 | New cBot, XBRUSD, h1 | onbar New cBot 8:00 PM
28/10/2019 02:00:00.209 | New cBot, XBRUSD, h1 | onbar New cBot 8:00 PM
28/10/2019 01:00:04.786 | New cBot, XBRUSD, h1 | onbar New cBot 8:00 PM
25/10/2019 20:00:01.066 | New cBot, XBRUSD, h1 | onbar New cBot 8:00 PM
25/10/2019 19:00:01.069 | New cBot, XBRUSD, h1 | onbar New cBot 7:00 PM
25/10/2019 18:00:01.165 | New cBot, XBRUSD, h1 | onbar New cBot 6:00 PM

{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        protected override void OnStart()
        {
            // Put your initialization logic here
            Print("start " + MarketSeries.OpenTime.LastValue.ToShortTimeString());
        }

        protected override void OnBar()
        {
            // Put your core logic here
            Print("onbar New cBot " + MarketSeries.OpenTime.LastValue.ToShortTimeString());
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}


@Ketu

Ketu
22 Oct 2019, 10:51

RE:

Panagiotis Charalampous said:

Hi Rob,

Can you please post the complete cBot code so that we can run it and reproduce the problem?

Best Regards,

Panagiotis

It should recreate the problem with just that line, I can't share the rest of the code. I will run that line just before the weekend and see if it gives the same result.


@Ketu

Ketu
09 Oct 2018, 11:13

Hi,

 

Great update, is there any eta on the release?, or roughly how long long does it usually take?.


@Ketu