Based on the information of the yield curve (CR) of Colombia, it is sought to find the existing relationships between the titles that compose it; specifically sets of two or three assets; and with this analyze whether or not there are cointegration or equilibrium relations in the long term. Taking this into account, it was found that there are cointegration relations between October 18 and July 20 for the case of peer analysis and for the case of analysis of trios, a strong relationship was found between October 2018, November 2018 and July 2020. These results are obtained optimally using a Python algorithm that looks for all possible relationships between the considered assets. This algorithm is part of the contribution of this work, and also the finding and the evidence that there are cointegrated assets in the yield curve of Colombia. With this, medium-term debt portfolio investment strategies can be designed.