Is there a leggit way to conect open api with nodejs?

Created at 06 Dec 2021, 03:41
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
DU

dudegrowth

Joined 06.12.2021

Is there a leggit way to conect open api with nodejs?
06 Dec 2021, 03:41


Hi,

I've been trying for 2 days now and i'm not being lucky in trying some github repos that already made nodejs version of open api v2.

I've tried this library which at first part it looked to me that i found the solution i was searching for but still im not able to do anything with it because in first part when i try to connect with it it fails. https://github.com/Reiryoku-Technologies/Mida.

Did you found any solution regard that?


@dudegrowth
Replies

amusleh
06 Dec 2021, 09:10

RE:

dudegrowth said:

Hi,

I've been trying for 2 days now and i'm not being lucky in trying some github repos that already made nodejs version of open api v2.

I've tried this library which at first part it looked to me that i found the solution i was searching for but still im not able to do anything with it because in first part when i try to connect with it it fails. https://github.com/Reiryoku-Technologies/Mida.

Did you found any solution regard that?

Hi,

Did you tried this one: Reiryoku-Technologies/cTrader-Layer: A Node.js communication layer for the cTrader Open API. (github.com)


@amusleh

vasile.peste
06 Dec 2021, 09:37

RE:

dudegrowth said:

Hi,

I've been trying for 2 days now and i'm not being lucky in trying some github repos that already made nodejs version of open api v2.

I've tried this library which at first part it looked to me that i found the solution i was searching for but still im not able to do anything with it because in first part when i try to connect with it it fails. https://github.com/Reiryoku-Technologies/Mida.

Did you found any solution regard that?

Hi, the Mida framework you tried is still under development, under the hood it's using cTrader Layer for Node.js which is a library allowing you to use Open API v2. Let me know if it solves your problem!


@vasile.peste

dudegrowth
06 Dec 2021, 10:00

RE: RE:

vasile.peste said:

dudegrowth said:

Hi,

I've been trying for 2 days now and i'm not being lucky in trying some github repos that already made nodejs version of open api v2.

I've tried this library which at first part it looked to me that i found the solution i was searching for but still im not able to do anything with it because in first part when i try to connect with it it fails. https://github.com/Reiryoku-Technologies/Mida.

Did you found any solution regard that?

Hi, the Mida framework you tried is still under development, under the hood it's using cTrader Layer for Node.js which is a library allowing you to use Open API v2. Let me know if it solves your problem!

Hi Vasile,

First thing a really big up in the work you've done and thank you for the reply.

I also tried cTrader Layer, but one think i'm not understanding on it, how for example can i place a trade or listening for market updates?


@dudegrowth