Skip to content
quivadPublic

About

Net short positions disclosed to nineteen market regulators, since 2010. Official zero-dependency client for the QuiVad API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

quivad

Net short positions disclosed to nineteen market regulators, since 2010.

The nineteen regulators are those of France, Belgium, Netherlands, Germany, Austria, Spain, Italy, Poland, the United Kingdom, Sweden, Norway, Ireland, Denmark, Finland, Greece and Luxembourg, plus Japan, Australia and the United States.

A regulator publishes the positions open today and drops the rest. This API keeps them, back to 2010 for the oldest regimes.

Anyone can call the API without a key or an account. Every figure here comes from a public source, so republish it with that source named. Every answer carries the sentence to do it with.

The API lives on the site, https://www.quivad.com. Its documentation for humans is at https://www.quivad.com/api. The contract is openapi.json, also served live at https://www.quivad.com/api/openapi.json.

Install

npm install quivad
import { moves, company, positions, ApiError } from 'quivad';

// What moved, and what the drift rules held back rather than serve wrong.

The client has no dependency, ships as ESM and runs on Node 18 or newer. It only builds the addresses, reads refusals as problem documents and follows pages, so curl works just as well.

Endpoints

Address Answers
GET /api/moves What moved over the last thirty days, qualified
GET /api/company/{slug} One company: who is short of it now, and its archive
GET /api/fund/{slug} One fund, across every register that names it
GET /api/isins Every declared company: one ISIN and one address per line
GET /api/positions.jsonl.gz Every open position, in one file
GET /api/openapi.json The contract, generated from the constants the code serves
GET /api The human documentation, in five languages

Conventions shared by the three APIs

auregistre, titelia and quivad answer by the same rules.

  • No version in the address, and none in the body. The contract states the promise that replaces it, in x-stability. A field may be added, but none is removed or renamed under a caller, and an address does not move.
  • Refusals are RFC 9457 problem documents, served as application/problem+json. type points at the documentation of the refusal and opens in a browser. title, status and detail carry the rest. An error is never an HTML page, because a program that calls .json() on one gets a parse error and looks for the fault in the wrong place.
  • Long collections are cut by limit and offset, never silently. The page block carries total, more, and the absolute addresses of the next and previous pages. The Link header carries the same two links. An unreadable parameter falls back to the default rather than refusing, and an offset past the end is an empty list, not an error.
  • Every address in an answer is absolute. A response stored on somebody's disk has to say which host it came from.
  • source names who produced the figures, and served_by who answered. Confusing the two is how a republished figure gets credited to the wrong party.
  • Every answer carries a weak ETag and honours If-None-Match. Send it back and the answer is a 304 with no body.
  • Every answer carries discovery links (RFC 8631). service-desc points at the contract and service-doc at the human documentation, so one answer in hand is enough to find the whole specification.
  • Rate limited by address, on /api only, and a cached answer does not count. A 429 carries retry-after and says in the body how long to wait.

What the data does not say

  • A position is the most recent declaration of a fund, never a sum. A fund redeclares at every move, and several regulators leave the end date empty on all of those lines. Adding them up gave 3 242% of one company's capital.
  • A market the drift rules flag is held back, and named in held_back. A truncated register shows every fund as having left.
  • Japan, Australia and the United States are not under EU regulation 236/2012. They are here because they are the large markets outside Europe that publish this at all.
  • FINRA counts SHARES, where every European register counts a share of capital. The unit travels with every figure and the two are never added.
  • The United Kingdom stopped naming position holders on 13 July 2026 (FCA PS26/5). On those rows, holder is null and aggregated is true.

Examples

Runnable examples are in examples/, in three languages (curl.sh, node.mjs, python.py).

Licence

The client code in this repository is MIT (see LICENSE).

The data is not covered by that licence: Public registers of the market authorities. Cite the source when you republish it - every answer carries the sentence to do it with.

Reporting something wrong

Report a wrong line as an issue at https://github.com/quivad/api/issues. Name the address you called and what you expected. Quote the served_by field of the answer, which shows whether the figure came from here or from the register itself.

About

Net short positions disclosed to nineteen market regulators, since 2010. Official zero-dependency client for the QuiVad API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages