SQL and json

Created at 26 Jun 2023, 00:13
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!
TradeMingZhi's avatar

TradeMingZhi

Joined 05.02.2019

SQL and json
26 Jun 2023, 00:13


Hey,

 

Why won't json and sql work with calgo? any way to bypass it? 

 

I want to optimize the way I store config for algorithms.


@TradeMingZhi
Replies

firemyst
26 Jun 2023, 05:30

JSON works perfectly with cAlgo. I use it in all my bots for saving states.

I'm using the NewtonSoft json package in Visual Studio.

You haven't stated anything on how you have your VS configured (if you're using it), nor any sample code reproducing your issue.

 


@firemyst

TradeMingZhi
26 Jun 2023, 05:32

RE:

firemyst said:

JSON works perfectly with cAlgo. I use it in all my bots for saving states.

I'm using the NewtonSoft json package in Visual Studio.

You haven't stated anything on how you have your VS configured (if you're using it), nor any sample code reproducing your issue.

 

It simply says package "netwonsoft.json" is not supported, same thing with entityframework. so i reckon its blocked due to some reason. i am running .Net6.0, but i already removed these packages, i resorted to saving notepad files separated by random characters ;(


@TradeMingZhi

firemyst
26 Jun 2023, 05:58 ( Updated at: 21 Dec 2023, 09:23 )

RE: RE:

Quant_Vs_Market said:

firemyst said:

JSON works perfectly with cAlgo. I use it in all my bots for saving states.

I'm using the NewtonSoft json package in Visual Studio.

You haven't stated anything on how you have your VS configured (if you're using it), nor any sample code reproducing your issue.

 

It simply says package "netwonsoft.json" is not supported, same thing with entityframework. so i reckon its blocked due to some reason. i am running .Net6.0, but i already removed these packages, i resorted to saving notepad files separated by random characters ;(

I suspect it may have something to do with the way it's been imported?

See with mine:

and it's a .Net 6.0 bot too:

and it's local to my machine when I add a reference in cTrader itself (make sure to do that instead of trying to add a reference in Visual Studio itself)

 

 


@firemyst

PanagiotisChar
26 Jun 2023, 08:34 ( Updated at: 21 Dec 2023, 09:23 )

Hi there,

Make sure you are using the correct compiler.

Aieden Technologies

Need help? Join us on Telegram

 


@PanagiotisChar