Original title:
Nízkolatenční obchodování na burze s využitím externí DRAM
Translated title:
High-Frequency Trading Using External DRAM
Authors:
Nevrkla, Lukáš ; Kořenek, Jan (referee) ; Martínek, Tomáš (advisor) Document type: Bachelor's theses
Year:
2023
Language:
cze Publisher:
Vysoké učení technické v Brně. Fakulta informačních technologií Abstract:
[cze][eng]
Základní složku nízkolatenčního obchodování představuje stroj, který dokáže obchodovat s latencí nižší než jakýkoliv jiný obchodník. Pomocí hardwarových akcelerátorů je možné latenci snížit do řádu stovek nanosekund. Tato práce se zabývá datovou strukturou Order Book uvnitř hardwarového akcelerátoru, která poskytuje klíčové informace o aktuálních cenových hladinách na trhu. Aktuální implementace spravuje tuto strukturu v softwaru hostujícího stroje a v hardwarovém akcelerátoru ukládá pouze několik nejvýhodnějších hladin. Synchronizace hladin mezi hardwarem a softwarem je zatížena latencí v řádu mikrosekund. Proto vznikají situace, kdy obchodovací platforma nemá k dispozici aktuálně nejvýhodnější cenové hladiny. Výstupem práce je hardwarový modul schopný tuto datovou strukturu spravovat v FPGA a uložit v externí dynamické paměti. Latence tohoto modulu se pohybuje v rozsahu 150 až 200 nanosekund s občasným zvýšením (ve 2 % případů) na 450 až 650 nanosekund. Snížená latence umožní rychleji reagovat na velké změny trhu, které jsou pro obchodníky obzvláště zajímavé.
The primary part of low-latency trading is a machine that can trade with lower latency than any other trader. Hardware-accelerated platforms can reduce trading latency down to hundreds of nanoseconds. This work focuses on a specific data structure (Order Book) inside this hardware platform that manages the current market price levels. The current implementation manages this data structure inside the software of the hosting machine, and only a few best price levels are inside the hardware. Synchronization between hardware and software has a latency in the order of microseconds. Therefore the best price levels are sometimes unavailable inside the hardware platform. This work presents a solution for managing this structure inside FPGA while saving its content inside the external dynamic memory. The new solution reduces the latency down to 150–200 nanoseconds with occasional (2 % cases) increase to 450–650 nanoseconds. Lower latency will help the trading platform react faster to larger stock market changes which are very important for traders.
Keywords:
DDR4; DRAM; FPGA; HFT; high frequency trading; stock-exchange; burza; DDR4; DRAM; FPGA; HFT; nízkolatenční obchodování
Institution: Brno University of Technology
(web)
Document availability information: Fulltext is available in the Brno University of Technology Digital Library. Original record: http://hdl.handle.net/11012/212720