3 Commits
Author SHA1 Message Date
mika@stocksharp.com 6589b12d92 Let the connector coverage check know the venues that closed
The check required a README row for every connector the Connectors repository documents,
so dropping BitMEX from the READMEs - the exchange closed on 23 September - failed it in
all three languages, while the connector and its pages stay where they are.

A closed venue now needs no row, and a row that still links one is reported as RETIRED:
the documentation keeps those pages with a notice and drops every link to them, and the
list here is the one its validation tests hold. The READMEs are brought to the same rule -
Bibox, Bitalong, Bittrex, PrizmBit, ZB, AscendEX, FTX and WEX leave the logo tables, and
GDAX, Bittrex and Livecoin leave the list of available connections.
2026-09-30 19:43:51 +03:00
mika@stocksharp.com 0234229f1b Validate connector coverage in CI and complete the connector tables
The connector README check prints the titles of the localized sections, and
Python encodes stdout with the locale code page: on the English Windows runner
that is cp1252, which has no glyph for Cyrillic or Chinese, so the step died
with UnicodeEncodeError and every later step of the validate job never ran. A
Cyrillic or Chinese locale hides this locally. Script output now goes through
UTF-8 via the shared console_utf8 helper, with stderr keeping a forgiving error
handler so that reporting a failure cannot fail in turn, and the tests
reproduce the runner by forcing cp1252 on a child process.

With the job running again, the READMEs turned out to list 292 connectors out
of the 393 that exist, plus 26 that exist nowhere in the code. Nothing checked
that: the only guard that looked past the READMEs, the --metadata-since mode,
matched commit subjects, so it saw only connectors added by a commit worded
that way, and CI never passed the flag. It is replaced by a check that reads
the connector sources and pairs a connector with its row through the
documentation page - a connector declares
[Doc("topics/api/connectors/<group>/<page>.html")] and the row links the same
path behind a language prefix, which identifies it without relying on the
display name or the logo, both of which are shared between connectors. Ten
connectors live in the applications repository, which the validate job does not
check out, so the pages they document are named in the check rather than
discovered.

The missing rows are generated from the connector itself: the logo from
[MediaIcon], the link from [Doc], the name from the localization resource named
by [Display]. The English name is used in all three files, as the common tables
have never translated connector names; only the Russian-market section, which
no other file mirrors, keeps its localized names and is also the only place the
connectors of that market are listed. Crypto connectors join the table that has
received every recent crypto connector, and the connectors documented under
europe/ and common/ join the stock table for want of a section of their own.
The rows of the withdrawn connectors are gone: sixteen crypto exchanges that
shut down years ago, eight data feeds and brokers dropped since, and two of the
Russian market. All of them kept their documentation pages and so looked
healthy to the link checker while promising connectors that cannot be used.

Also ignore __pycache__, which running the repository's own tests leaves behind.
2026-08-14 19:55:37 +03:00
mika@stocksharp.com 1d1ece9813 Centralize maintenance scripts and validate connector coverage 2026-07-26 00:55:09 +03:00