Python wrapper library over trading API that couldn't be changed

Easier retrieval of trading-analysis data, with its integrity intact

Data architecture

Trading analytics dashboard shown on a laptop

Who we worked with

Trading platform for crypto and tokenized assets

Our client is a trading platform for crypto and tokenized assets. Its trading analysis ran on data from one API, and it came to us because getting that data out was harder than it should have been.

Client under NDA

What we did

Fixing retrieval without touching the API

Trading data behind one API

Each request to the API returned few rows, and the API capped how many requests could be made. Any code that needed a long period of trading data had to work around both limits on its own. The brief was to make that data easy to reach.

A Python wrapper in front of the API

We built a Python wrapper library over the REST API, a change to the data architecture on the calling side only. Code that needs trading data now calls the library, which splits a long period into pieces, sends them in parallel within the request limit, retries a request the limit refused and joins the answers into one data set.

PythonREST API

Same numbers, easier to reach

The library changes how data is fetched, not the data itself, so retrieval got easier without compromising data integrity. Pulling trading data is now an ordinary Python call.

Diagram: a Python wrapper library sits in front of the REST API; the same data pull is 3x faster through the library

What our client achieved

3x

Faster for the same pull via the library

Data stuck behind an API you can't change?

Tell us which system your data comes from and what makes getting it out hard, and we'll reply within 24 hours.

Case studies

More fintech and data projects