SkillAgentSearch skills...

Gdax Orderbook Hpp

An in-memory copy of the order book on the GDAX cryptocurrency exchange, updated in real time via WebSocket feed, exposed in a thread-safe and lock-free data structure.

Install / Use

npx skills add feuGeneA/gdax-orderbook-hpp

Installs into whichever agent you are using.

About this skill

Quality Score

0/100

Supported Platforms

Universal

README

A copy of the GDAX order book for the product given during construction, exposed as two maps, one for bids and one for offers, each mapping price levels to order quantities, continually updated in real time via the level2 channel of the Websocket feed of the GDAX API.

Spawns a separate thread to receive updates from the GDAX WebSocket Feed and process them into the maps.

To ensure high performance, implemented using concurrent data structures from libcds. The price->quantity maps are instances of cds::container::SkipListMap, whose doc says it is lock-free.

Related Skills

View on GitHub
GitHub Stars40
CategoryDevelopment
Updated2y ago
Forks6

Languages

C++

Security Score

65/100

Audited on Jul 25, 2024

No findings