Open OlegRa opened 6 years ago
Sorry, this is not a good tutorial for the C# version of the SDK. It would be nice to see some sample code to show how to handle the data that is received from the SDK. This is the major difference between C# and python. Thank you.
While it's not quite a step-by-step guide like the one this issue links to, if you're interested in this issue, you may want to look at the UsageExamples directory here.
Thank you!
Has anyone actually gotten this example to work? There are load of errors centered around the dependencies that I have not been able to resolve.
@dukeajuke If you have problems with building UsageExamples
project from sources - just open a separate issue and attach the build output with errors. I'll try to help you to resolve these errors.
Thanks Oleg. I was able to start a new console app project and got it to work using the usage examples and the GIT project example. I do have one question. Are we able to make more than one simultaneous connection to the API? If so how many?
@dukeajuke I've never heard about any limitations on simultaneous connections on Alpaca REST API. Most probably you'll not be allowed to open several web socket connections to Alpaca or Polygon but REST API is not limited AFAIK. But it's better to ask such questions to Alpaca support directly.
I can help with creating a new tutorial if you want
@ooples Unfortunately, I'm unable to provide you full access to Wiki but you can create a new .MD file in the root folder of this repo, write a tutorial, and make a pull request.
Ok I will start working on it
On Tue, Jun 16, 2020 at 2:02 PM Oleg Rakhmatulin notifications@github.com wrote:
@ooples https://github.com/ooples Unfortunately, I'm unable to provide you full access to Wiki but you can create a new .MD file in the root folder of this repo, write a tutorial, and make a pull request.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alpacahq/alpaca-trade-api-csharp/issues/23#issuecomment-644921116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXO4ZPZM56MQFZ3FX34RZLRW6XUHANCNFSM4GAYOD5Q .
@OlegRa Is this something that's still needed? The link to the python tutorial in original issue is dead. I took a look at the python repo and I don't see any tutorials (the wiki link just redirects back to the readme for me).
@natehitze Alpaca re-designed their documentation site completely. Right now it provides only reference information without any code snippets or tutorials. Of course, the old version can be restored from Git history but it's not necessary to use something as a base point - I just want to have more detailed instructions about connecting to both REST and WS APIs using .NET SDK and C# language.
I think we can use existing examples (like the MeanReversionPaperOnly
class) as a reference for the resulting code. Ideally, this tutorial should demonstrate how to write a simple trading bot from scratch. We can place it into the .NET documentation and add a link to the repo README file. If you can do so I'll be glad to assign this issue to you.
Use this great Python tutorial as base point and prepare .NET Core based version using C# and latest version of SDK.