Please help me repair cAlgo API reference problem.

Created at 27 Sep 2022, 19:49
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!
GK

gkj7net

Joined 12.09.2020

Please help me repair cAlgo API reference problem.
27 Sep 2022, 19:49


I upgrade to .net6 last month, but VS2022 is too slow on my PC. Thus I decide to use lightweight IDE which is nvim+LSP+omnisharp-rosyln.

The problem is I can't figure out how to make IDE identify cAlgo API. I google days and no result.

The project is created by cTrader Desktop which means sln and csproj files were created by cTrader Desktop automatically.

System and System.Text from .net sdk can be identified, but cAlgo.API can't.


@gkj7net
Replies

gkj7net
30 Sep 2022, 19:57 ( Updated at: 21 Dec 2023, 09:22 )

I figure it out. follow the steps:
Download NuGet form https://www.nuget.org/downloads
Run following command:
  >nuget install cTrader.Automate
  >dotnet add Test.csproj package cTrader.Automate
  >dotnet list Test.csproj package
Output will be:
Project 'Test' has the following package references
   [net6.0]:
   Top-level Package       Requested   Resolved
   > cTrader.Automate      1.0.2       1.0.2


@gkj7net