Stage 4, day 19:
I got 2 flawless executions last night. I went to bed very enthusiast that I would have a nice surprise at my awakening this morning.
Alas, it didn't happen. Still more unexpected issues during the last execution that did happen while I was sleeping. I did tweak my logging so that I have the needed info to understand issue in that category easily in the future.
I still have fund stuck in some intermediary currency. However this time, it is USD instead of some low-volume crypto. (I got rid of my Watermelon coins yesterday after a long struggle!)
I wasn't error checking the result of a function and this was leaving a dangling structure in memory. I did address that as well.
I guess that I kept the hardest for the end. I need to understand the core issue that made the whole thing fail. I'm not sure that it will be possible with the amount of info that I currently have. I'll try but it is going to be hard.
Maybe, I will end up resetting everything and hope to have again the same situation repeating with the new logs in place. I prefer not do that because I have no idea how long it can take before it repeats (first time it was happening...). It could take a long long time. I prefer a lot to take care of this problem now and then let it go to restore my full confidence in the system.
I'm a bit frustrated but I stay positive by saying that for every failure that I encounter, it helps me making my system more robust and accurate...
Update:
I have found the problem. It is a nuance between average price and order price that some part of the code didn't make.
I'm not even sure how exactly I'm going to address it yet. I need to contact the exchange support to have clarification of their own rules regarding those 2 prices when receiving orders first. but at least, understanding what did happen is a HUGE relief.
This made me realize one thing. On one hand, I love building this system. It is fun and challenging. OTOH, I now start to be really deep in the rabbit hole and the system complexity has reached a point where getting an understanding of what is going on inside the system requires a good amount of brain juice...
I got 2 flawless executions last night. I went to bed very enthusiast that I would have a nice surprise at my awakening this morning.
Alas, it didn't happen. Still more unexpected issues during the last execution that did happen while I was sleeping. I did tweak my logging so that I have the needed info to understand issue in that category easily in the future.
I still have fund stuck in some intermediary currency. However this time, it is USD instead of some low-volume crypto. (I got rid of my Watermelon coins yesterday after a long struggle!)
I wasn't error checking the result of a function and this was leaving a dangling structure in memory. I did address that as well.
I guess that I kept the hardest for the end. I need to understand the core issue that made the whole thing fail. I'm not sure that it will be possible with the amount of info that I currently have. I'll try but it is going to be hard.
Maybe, I will end up resetting everything and hope to have again the same situation repeating with the new logs in place. I prefer not do that because I have no idea how long it can take before it repeats (first time it was happening...). It could take a long long time. I prefer a lot to take care of this problem now and then let it go to restore my full confidence in the system.
I'm a bit frustrated but I stay positive by saying that for every failure that I encounter, it helps me making my system more robust and accurate...
Update:
I have found the problem. It is a nuance between average price and order price that some part of the code didn't make.
I'm not even sure how exactly I'm going to address it yet. I need to contact the exchange support to have clarification of their own rules regarding those 2 prices when receiving orders first. but at least, understanding what did happen is a HUGE relief.
This made me realize one thing. On one hand, I love building this system. It is fun and challenging. OTOH, I now start to be really deep in the rabbit hole and the system complexity has reached a point where getting an understanding of what is going on inside the system requires a good amount of brain juice...