Learning Web Development (5)

C# Development, Learning web development
So now I dove a bit into the Gekko docs and it seems fairly simple to create a strategy. This is the thing that outputs the trading advice to Gekko. The tutorials I used are: https://www.youtube.com/watch?v=6-74ZhrG0BE&t=1456s and https://gekko.wizb.it/docs/strategies/creating_a_strategy.html My strategy looks like this (just outputting some trivial things like in the youtube demo): The JavaScript function from the strategy.. The output Gekko can make use of strategies using all kinds of algorithms, but I don't want that. I want to decide each day if I want to buy or sell on a specific input. For this I wrote a Web Api endpoint in C#. For my first test, like I showed you in the previous post, this just takes in an integer parameter and outputs a dummy object. I've changed…
Read More

Learning Web Development (4)

C# Development, Learning web development
It has been a while since I was here but I decided to continue the series after being busy for a long time. Part of the solution entails calling a web api from javascript, so I decided to learn how that should be done. Because the TradingAdvice endpoint needs to be there in the future to return the trading advice I decided to get some practice with this. I took a look at what the gekko ticker stores from an incoming candle, and I found there's a Unix timestamp in there. That's an integer. So, even though I probably will not use that integer as a parameter for the api it is very convenient for testing. Saved candles from the bitcoin exchange I am using Let's create an endpoint with…
Read More
Learning Web Development (3)

Learning Web Development (3)

C# Development, Learning web development
Creating Entities Before I do anything else, I need to create the entity that gets saved to the database. I called this entity "Condition", but I think the word "Rule" is more appropriate since I need to store not only a condition but also the value that is used by the condition, and maybe some other data as well. Separate Functionality into Projects I like to organize different parts of software I write into different projects in Visual Studio: this way each project is responsible for its own set of tasks and I can reference these projects from new projects. For instance, I can create a website, a console application or a Windows Service and allow these to use the same existing set of core classes, datalayer, et cetera. Using…
Read More