• Refine Query
  • Source
  • Publication year
  • to
  • Language
  • 2
  • Tagged with
  • 2
  • 2
  • 2
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • About
  • The Global ETD Search service is a free service for researchers to find electronic theses and dissertations. This service is provided by the Networked Digital Library of Theses and Dissertations.
    Our metadata is collected from universities around the world. If you manage a university/consortium/country archive and want to be added, details can be found on the NDLTD website.
1

Algorithms for Order Matching in Securities Lending

Ivarsson, Thobias January 2021 (has links)
Securities Lending is a significant part of the financial industry. One important part of the securities lending business is how to match different lending and borrowing orders to maximize profits as a middle man. However, order matching is not always as straightforward as it may seem. It is a very simple problem until you introduce the fact that some lenders and borrowers have a minimum quantity of shares for a stock they want to trade. In this paper, we have created two main algorithms that solve this problem, and one combined algorithm that uses the strengths of both algorithms. The result is that it is possible to automate the order matching process with these algorithms. With real-world data from Nordea, there is no problem using a brute force approach to solve the problem optimally in almost all cases. In the few cases where the brute force approach is too slow, a greedy approach can be used to solve the problem very quickly, even if there is a lot of orders with a minimum quantity. The trade-off is that an average error of 0.02% from the optimal solution is introduced. However, this is small enough that for most real-world applications it is better to have a good solution fast than an optimal solution slow. / Värdepapperslån är en stor del av den finansiella industrin. En stor del av att driva en verksamhet med värdepapperslån är att matcha långivare med låntagare för att maximera bankens förtjänst. Det är ett väldigt enkelt problem att lösa så länge varken långivaren eller låntagaren har några krav på ett minsta antal aktier de måste handla med. För att lösa detta problemet utvecklades två olika algoritmer. Båda algoritmerna har sina styrkor och svagheter.  BruteMatching är en algoritm där alla kombinationer av ordrar testas för att sedan välja den kombination som gav det högsta värdet. Denna algorithm körs i O(2nmin x n log n) tid. Där n är antalet ordrar och nmin är antalet ordrar med ett minimum krav. GreedyMatching är en algoritm som löser problemet först utan att ta hänsyn till om ordrarna har ett minimumkrav eller ej. Sedan kollar algoritmen om lösningen uppfylde kravet eller inte. Om lösningen inte uppfyllde kravet körs algoritmen om. Dock tas den order som inte uppfyllde kraven bort från matchningen. Den körs även om med ett nytt vilkor, att det är okej att ta med ordrar som kan skapa negativt värde så länge ett minimumkrav ej är uppfyllt. Sedan återupprepas detta tills det finns en eller två godkända lösningar och därmed väljs den som skapar det största värdet för banken. Denna algorithm körs i O(n log n + n x nmin) tid. Huvudalgoritmen som nu kommer användas i Nordeas system är en kombination av denna, där GreedyMatching körs först och om det finns misstankar om att lösningen inte är optimal så körs BruteMatching också. Dock körs bara BruteMatching om antalet ordrar med minimum krav är lägre än 20 då fler än det gör att det tar för lång tid. En utökning för algoritmerna  är att istället för att endast maximera värdet av alla ordar, ser man om det finns ett värde av att vikta om ordrarnas avgifter. Detta kan vara fördelaktigt om någon order är från en viktig kund eller om man vet att en viss order kommer att gälla under en längre tid än någon annan order.
2

Order Matching Optimization : Developing and Evaluating Algorithms for Efficient Order Matching and Transaction Minimization

Jonsson, Victor, Steen, Adam January 2023 (has links)
This report aimed to develop algorithms for solving the optimization problem of matchingbuy and sell orders in call auctions while minimizing the number of transactions. The developed algorithms were evaluated based on their execution time and solution accuracy.The study found that the problem was more difficult to solve than initially anticipated, and commercial solvers were inadequate for the task. The data’s characteristics werecritical to the algorithms’ performance, and the lack of specifications for instruments andexchange posed a challenge. The algorithms were tested on a broad range of datasets with different characteristics, as well as real trades of stocks from the Stockholm Stock Exchange. Evaluating the best-performing algorithm became a trade-off between time and accuracy, where the quickest algorithm did not have the highest solution accuracy. Therefore, the importance of these factors should be considered before deciding which algorithm to implement. Eight algorithms were evaluated: four greedy algorithms and four clusteralgorithms capable of identifying 2-1 and 3-1 matches. If execution time is the single most crucial factor, the Unsorted Greedy Algorithm should be considered. However, if accuracyi s a priority, the Cluster 3-1 & 1-3 Algorithm should be considered, even though it takes longer to find a solution. Ultimately, the report concluded that while no single algorithm can be definitively la-beled as the best, the Cluster 2-1 Algorithm strikes the most effective balance between execution time and solution accuracy, while also remaining relatively stable in perfor-mance for all test cases. The recommendation was based on the fact that the Cluster 2-1 Algorithm proved to be the quickest of the developed cluster algorithms, and that cluster algorithms were able to find the best solutions for all tested data sets. This study successfully addressed its purpose by developing eight algorithms that solved the given problem and suggested an appropriate algorithm that strikes a balance between execution time and solution quality.

Page generated in 0.1772 seconds