Topics
15 Apr 2019, 17:43
 1578
 2
08 Aug 2017, 19:54
 2057
 2
Replies

ctid320188
02 Apr 2019, 13:30

RE:

Panagiotis Charalampous said:

Hi Rowie,

Yes it is, Check ProtoOACreateOrderReq.

Best Regards,

Panagiotis

Thank you for the information, indeed ProtoOACreateOrderReq has solved my problem!

Excellent support.

Ro


@ctid320188

ctid320188
02 Apr 2019, 12:20

RE:

Panagiotis Charalampous said:

Hi Rowie,

You can use ProtoOANewOrderReq and specify the existing position you want the order to be added to in the positionId field.

Best Regards,

Panagiotis

Thank you Panagiotis for the reply.

Is this still possible using API Reference 1.0? as I can't see the corresponding method in the outgoingMsgFactory class.

Thanks

Ro


@ctid320188

ctid320188
28 Mar 2019, 12:22

RE:

Panagiotis Charalampous said:

Hi Rowie,

Do you receive a response after a price stream logon? Can you send the messages you send and receive? 

Best Regards,

Panagiotis

 

I just get a byte array of 1024 zeros - so nothing helpful


@ctid320188

ctid320188
28 Mar 2019, 11:48

RE:

Panagiotis Charalampous said:

Hi Rowie,

1) You cannot use tokens with FIX API. You need the trading account passwords.

2) Can you tell us what problems do you have with FIX API Sample? Should be working out of the box.

Best Regards,

Panagiotis

 

Thank you for clarifying that for me. That will be a show stopper for me then.

The sample: I run it and fill in all the credentials. I click Price Stream logon and then click on the Spot Market Data Request button and it throws the following error:

"Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host"

I get this for any of the buttons after I click on the logon button


@ctid320188

ctid320188
12 Dec 2017, 16:33

Indeed, Spotware support team were very quick to reply and get me back up and running.

Thanks again to the Support Team.


@ctid320188

ctid320188
11 Dec 2017, 12:18

Also, my application status is at "submitted" - could this be the cause? not sure if it's always been at this status as it used to work.

Thanks


@ctid320188

ctid320188
03 Aug 2017, 12:34

Thank you guys for the answers.

This really helps me out loads. Top answers!

Ro


@ctid320188

ctid320188
26 Jul 2017, 14:57

Turns out it was some of the repository nugets that were not updating in the ConnectAPILibrary project even though they tried to reload/install and even after an update of all packages.

In the end I hade to uninstall RestSharp, Newtonsoft, GoogleProtocolBuffers and GoogleProtocolBuffers.Serialization references/packages.

Then re-install them.


Seems to build ok now.

Thank you for your help.


@ctid320188

ctid320188
26 Jul 2017, 14:31

For the Connect API Library I do see a correct reference without a yellow sign but when I look at the reference properties and it's path, I view the folder that it references the DLL and there is no DLL located in that folder.


@ctid320188

ctid320188
26 Jul 2017, 14:16

Hi,

Yes I did download both projects within the solution but it will not build, it comes up with many issues and there is no dll located in the project:

one error of which is:

OpenApiDeveloperLibrary\bin\Debug\OpenApiDeveloperLibrary.dll' could not be found

Thank you


@ctid320188

ctid320188
20 Jul 2017, 13:09

RE:

ctid320188 said:

Just a thought - does this "packaging" of the reference DLL's only happen when you "build" the algo rather than "build with source code"? As the testing on the other computer was always with the "build with source code" as I was tweaking some settings.

Obviously this won't be the case when I finally go to production version as there will be no source code available for other members and it will always be a simple "build".

Thanks

Just answered my own question - Yes it works just fine if you do a "build" rather than a "build with souce code". If that helps anyone else.

Thank you for pointing me in the right direction with the Packaged DLL's - all working and happy again.

Thanks guys


@ctid320188

ctid320188
20 Jul 2017, 12:51

Just a thought - does this "packaging" of the reference DLL's only happen when you "build" the algo rather than "build with source code"? As the testing on the other computer was always with the "build with source code" as I was tweaking some settings.

Obviously this won't be the case when I finally go to production version as there will be no source code available for other members and it will always be a simple "build".

Thanks


@ctid320188

ctid320188
20 Jul 2017, 12:40

RE:

Spotware said:

Dear ctid320188,

All referenced dlls to are packed inside the .algo file except those registered in GAC. So your cBot should work on any computer. Did you try it and it didn't work?

Best Regards,

cTrader Team

When I copy the algo file to another computer,  it won't build - get build errors relating to missing dll references so I have to go into the Manage References section on the calgo application and then go to libraries, untick the references that have my path in them "C:\Users\Fred\Documents\cAlgo\Sources\Robots\MyBot\MyBot\dll\Newtonsoft.Json.dll" and then browse to local versions of those DLL's on that computer.

To note: I am coding and building my robots using Visual Studio and adding the references to the DLLs through Visual Studio.

It would be excellent if those DLL's were packaged up in the main algo file with no references having to be made in the Manage References.

How do I do this? Any help would be massively appreciated as I need to distribute this to other users who will have little to no knowledge of how to re-reference other DLL's.

Thanks again


@ctid320188

ctid320188
12 Jul 2017, 14:55

Hi Thak you for the quick reply.

Is it possible for me to use this Connect API from within the robot code itself?

Just to explain where I'm aiming to get: I am coding up a bot for others to use but it relies on knowing when the owner of the account/bot has mad a deposit or withdrawl so I can maintain a correct "ledger" based on account balance/equity i.e. I know exactly how much the bot has made from closing positions by looking at the starting and current balance which gets a bit screwed if the owner of the account then for example deposits another £1000 into their account.

If the bot can access the deposit/withdrawl details via Connect API inside the bot this would be great as the bot will have access to "their account" details and I don't have access outside.

Cheers


@ctid320188

ctid320188
15 Jun 2017, 16:48

Do you have any links etc to such an API?

I have tried contacting Trading Central via their Contact Us to ask about API access but have had no replies back.

Anything Sportware Team can help me with this situation?

Thank you


@ctid320188