Replies

george.secillano
24 Dec 2021, 07:37

RE: RE: RE:

amusleh said:

george.secillano said:

amusleh said:

Hi,

We are aware of this issue and it will be fixed on future releases, thanks for reporting.

Good to know, thanks!

Current version: 76

Where is the server version upgrade announced?  Do you have an ETA?

Hi,

I can't give you any ETA, but you can follow our Github proto message repository for updates and new releases: spotware/openapi-proto-messages: Open API Proto Messages (github.com)

The openapi-proto-messages has been updated (version 7.8).  When does it get pushed to the brokers' backend?


@george.secillano

george.secillano
07 Dec 2021, 19:47

RE:

amusleh said:

Hi,

We are aware of this issue and it will be fixed on future releases, thanks for reporting.

Good to know, thanks!

Current version: 76

Where is the server version upgrade announced?  Do you have an ETA?


@george.secillano

george.secillano
04 Dec 2021, 02:52

Figured it out

The new messages were missing from 

george.secillano said:

I recompiled the openapi2-client with the latest protocol buffers and I get the following exception in my java application.  Payload type 2176 is one of the newly added messages ProtoOAOrderListRes.  Please help.
 

2021-12-03T16:10:17,675 ERROR [nioEventLoopGroup-4-1] c.s.c.n.h.CloseOnExceptionHandler: Exception caught in channel [id: 0x944599c8, L:/192.168.4.27:64035 - R:demo.ctraderapi.com/46.183.116.240:5035]. Closing channel.
com.spotware.connect.netty.exception.IncorrectMessageException: protoObjectPrototype is null for payloadType=2176
	at com.spotware.connect.netty.handler.ProtoMessageToChannelMessageDecoder.channelRead0(ProtoMessageToChannelMessageDecoder.java:41)
	at com.spotware.connect.netty.handler.ProtoMessageToChannelMessageDecoder.channelRead0(ProtoMessageToChannelMessageDecoder.java:20)
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1526)
	at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1275)
	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1322)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:501)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:440)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:834)

 

 


@george.secillano

george.secillano
07 Feb 2021, 22:23

Additional feature

It would be great if the chart visualizing the trade can be displayed when opened from the history list.  Very similar to opening a live trade from the positions list.


@george.secillano

george.secillano
14 Nov 2020, 01:06

RE:

george.secillano said:

Hi, 

I'm trying to retrieve historical trendbars for the last 3 years on the H1 timeframe.  For each request I don't exceed 34 weeks between fromTime and toTime. however, the API only returns data starting from April 2020.

Is there no way to retrieve data beyond that?

Example:

From: Sun Jan 01 00:00:00 PST 2017
To: Sun Aug 27 00:00:00 PDT 2017

 

It looks like it's broker-specific behaviour.  Using the cTrader demo account, I was able to retrieve historical bars.  Can someone confirm this?


@george.secillano

george.secillano
12 Oct 2020, 06:47

RE: RE:

george.secillano said:

PanagiotisCharalampous said:

Hi Christian,

DeltaClose is not populated for Live trendbars, only for historical ones, since the bar has not closed yet. You should be using the bid price instead. 

 Best Regards,

Panagiotis 

Join us on Telegram

Hi Panagiotis,

Would you mind suggesting how the current bid price can be retrieved?  Should I be using tick data and calculate the current bid price?

Thanks,
George

Nevermind.  You were referring to the ProtoOASpotEvent. Thanks.


@george.secillano

george.secillano
12 Oct 2020, 05:43

RE:

PanagiotisCharalampous said:

Hi Christian,

DeltaClose is not populated for Live trendbars, only for historical ones, since the bar has not closed yet. You should be using the bid price instead. 

 Best Regards,

Panagiotis 

Join us on Telegram

Hi Panagiotis,

Would you mind suggesting how the current bid price can be retrieved?  Should I be using tick data and calculate the current bid price?

Thanks,
George


@george.secillano