Benchmarking .NET Performance

C# Development, Programming, Uncategorized
Nerds do it better When we, nerds, are looking for the best solution to a programming problem we sometimes get distracted. We are asked to find a way to get from A to B and while we are finding our way we find out that there are often (always) multiple solutions to a problem. A lesser person would say: "Hey, if it brings me from A to B then it's alright!". Right? Well not us nerds. At least not always. For instance right now I am working on a pet project of mine where I want to receive data from a GPS unit that is sending positional and other data from my car to a receiver service I am currently programming. This service should receive the raw bytes from my…
Read More

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