alpaca-trade-api-csharp icon indicating copy to clipboard operation
alpaca-trade-api-csharp copied to clipboard

Prepare C#/.NET based step-by-step tutorial

Open OlegRa opened this issue 6 years ago • 12 comments

Use this great Python tutorial as base point and prepare .NET Core based version using C# and latest version of SDK.

OlegRa avatar Nov 01 '18 10:11 OlegRa

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.

ryanfalke avatar Mar 23 '19 08:03 ryanfalke

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.

ttt733 avatar May 06 '19 19:05 ttt733

Thank you!

ryanfalke avatar May 14 '19 06:05 ryanfalke

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 avatar Dec 13 '19 15:12 dukeajuke

@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.

OlegRa avatar Dec 13 '19 20:12 OlegRa

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 avatar Dec 14 '19 16:12 dukeajuke

@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.

OlegRa avatar Dec 14 '19 18:12 OlegRa

I can help with creating a new tutorial if you want

ooples avatar Jun 16 '20 17:06 ooples

@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.

OlegRa avatar Jun 16 '20 18:06 OlegRa

Ok I will start working on it

On Tue, Jun 16, 2020 at 2:02 PM Oleg Rakhmatulin [email protected] 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 .

ooples avatar Jun 16 '20 18:06 ooples

@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 avatar Apr 16 '22 00:04 natehitze

@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.

OlegRa avatar Apr 16 '22 07:04 OlegRa