docs: rewrite the MSN Messenger and news, weather and quotes pages in Simplified Technical English

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
Claude committed 2026-11-14 10:37:21 +00:00
1 parent 8418a153cb
commit 7c4bb19dd0
2 files changed
+258 -224

No files matched your search

+129 -113
View File
@@ -1,9 +1,10 @@
The BBS has an MSN Messenger server (MSNP, the protocol of Microsoft's
MSN Messenger), beside its [IRC](IRC) and [AIM](AIM-and-ICQ) servers and
on the same chat. Someone signed in with MSN Messenger 1.0 to 7.5 or
Windows Messenger 4.x sees their BBS friends as contacts and IMs anyone on
the BBS: other MSN users, IRC and AIM users, and callers on telnet, SSH,
3270s and the web terminal.
The BBS has an MSN Messenger server (MSNP, the protocol of MSN Messenger
from Microsoft). This server is adjacent to the [IRC](IRC) and
[AIM](AIM-and-ICQ) servers of the BBS, and it uses the same chat. A user
who signs in with MSN Messenger 1.0 to 7.5 or Windows Messenger 4.x sees
BBS friends as contacts. The user can send IMs to all users on the BBS:
other MSN users, IRC and AIM users, and callers on telnet, SSH, 3270s and
the web terminal.
```ini
[msn]
@@ -18,22 +19,22 @@ tls_key = /etc/bbs/passport.key
| Setting | Default | What it sets |
|---|---|---|
| `address` | `:1863` | where to listen |
| `host` | the address each client came to | where clients are sent for conversations (`host:port`); set it behind NAT |
| `domain` | `bbs.invalid` | users' handles are `name@domain` |
| `max_clients` | `256` | connections at once |
| `max_per_ip` | `16` | from one address (each conversation is a connection) |
| `system` | `BBS` | the name the BBS's notices come from |
| `site` | none | a web address the client's links (inbox, profiles) open |
| `https_address` | none | where the [Passport server](#msn-messenger-50-to-75-passport) listens; without it, MSN 5.0 and later are not served |
| `address` | `:1863` | the address on which to listen |
| `host` | the address to which each client came | the address to which the BBS sends clients for conversations (`host:port`). Set it behind NAT |
| `domain` | `bbs.invalid` | the handles of users are `name@domain` |
| `max_clients` | `256` | the maximum number of connections at one time |
| `max_per_ip` | `16` | the maximum from one address (each conversation is a connection) |
| `system` | `BBS` | the name from which the notices of the BBS come |
| `site` | none | a web address that the links of the client (inbox, profiles) open |
| `https_address` | none | the address on which the [Passport server](#msn-messenger-50-to-75-passport) listens. Without it, the BBS does not serve MSN 5.0 and later |
| `tls_cert`, `tls_key` | none | its certificate, for `nexus.passport.com`, `login.passport.com` and `login.live.com` |
| `passport_host` | the name the client asked the nexus at | where clients are sent to log in (`host[:port]`) |
| `http_address` | none | the Passport server without TLS, behind a proxy that does it |
| `passport_host` | the name at which the client asked the nexus | the address to which the BBS sends clients to log in (`host[:port]`) |
| `http_address` | none | the Passport server without TLS, behind a proxy that does the TLS |
One port serves the messaging: sign-in, the contact list and presence
(the "notification server"), and the conversations ("switchboards").
MSN Messenger 5.0 and later also log in at a Passport server over
HTTPS, which the BBS serves on `https_address`.
One port serves the messages: sign-in, the contact list and presence
(the "notification server"), and the conversations ("switchboards"). MSN
Messenger 5.0 and later also log in at a Passport server over HTTPS. The
BBS serves this on `https_address`.
## Versions served
@@ -43,54 +44,62 @@ HTTPS, which the BBS serves on `https_address`.
| MSNP8 to MSNP11 | MSN Messenger 5.0 to 7.0 | Passport 1.4 (`login2.srf`), over HTTPS |
| MSNP12 | MSN Messenger 7.5 | Passport SOAP (`RST.srf`), over HTTPS |
Third-party clients that speak these versions work too. Windows Live
Messenger (MSNP13 and later) is not served yet: its address book and
sign-in are web services of their own. A client asking only for versions
not served is told so, and the log says why (without `https_address`,
MSNP8 and later are not served).
Third-party clients that use these versions also operate. The BBS does
not serve Windows Live Messenger (MSNP13 and later) yet: its address book
and sign-in are separate web services. If a client asks only for versions
that the BBS does not serve, the BBS tells the client, and the log gives
the reason (without `https_address`, the BBS does not serve MSNP8 and
later).
None of these has been tried with the real clients yet; the tests use
scripted ones.
We did not try these with the real clients yet. The tests use scripted
clients.
## Pointing a client at the BBS
The clients were made for Microsoft's servers, so each must be pointed
at the BBS:
The clients were made for the servers of Microsoft. Thus, you must point
each client at the BBS:
- With the BBS's [DNS server](DNS) (`[dns]`), the callers' machines that
use it are sent here for all of these names, with no hosts file.
- All of them: the server is `messenger.hotmail.com`, so a hosts file
entry sending it to the BBS points any of them here.
- MSN Messenger 1.0 to 4.7: the `Server` value (a string) under
- With the [DNS server](DNS) of the BBS (`[dns]`), the machines of
callers that use it come here for all of these names, with no hosts
file.
- All clients: the server is `messenger.hotmail.com`. Thus, an entry in
the hosts file that sends this name to the BBS points all clients
here.
- MSN Messenger 1.0 to 4.7: set the `Server` value (a string) under
`HKEY_CURRENT_USER\Software\Microsoft\MessengerService` in the
registry, set to the BBS's host (with `:1863` if the port is another).
A hosts file entry sending `messenger.hotmail.com` to the BBS may also
work. Neither has been tried with the real clients yet.
- Third-party clients (aMSN, Miranda, Trillian and others) take a server
and port in the account's settings.
registry to the host of the BBS (with `:1863` if the port is
different). An entry in the hosts file that sends
`messenger.hotmail.com` to the BBS can also operate. We did not try
these methods with the real clients yet.
- Third-party clients (aMSN, Miranda, Trillian and others) accept a
server and port in the settings of the account.
The deny list and bans in `[security]` apply as they do everywhere else.
The deny list and bans in `[security]` apply, as on all other routes.
## MSN Messenger 5.0 to 7.5: Passport
From MSN Messenger 5.0 the client gives its password not to the
messaging server but to Passport, over HTTPS, and hands the messaging
server the ticket Passport gave it. The BBS is that Passport server too
when `https_address` is set, and checks the password as any login's:
From MSN Messenger 5.0, the client does not give its password to the
messaging server. It gives it to Passport, over HTTPS. Then it gives the
messaging server the ticket from Passport. When `https_address` is set,
the BBS is also that Passport server. It checks the password as for all
logins:
- `nexus.passport.com/rdr/pprdr.asp` says where to log in
(`passport_host`, or the name the client asked at).
- `nexus.passport.com/rdr/pprdr.asp` tells the client where to log in
(`passport_host`, or the name at which the client asked).
- `login.passport.com/login2.srf` (Passport 1.4) logs in MSN 5.0 to 7.0.
- `login.live.com/RST.srf` (Passport SOAP) logs in MSN 7.5.
A ticket is good once, for ten minutes, for the account it was given to.
A ticket is valid one time, for ten minutes, for the account that got
it.
The machine running the client must send those three names to the BBS
(its hosts file) and trust `tls_cert` for them. No public certificate
authority signs for Microsoft's names, so make a small certificate
authority of your own, sign a certificate for the three names with it,
and add the authority's certificate (`ca.crt`) to the machine's trusted
roots:
The machine that runs the client must send those three names to the BBS
(in its hosts file) and trust `tls_cert` for them. No public certificate
authority signs for the names of Microsoft. Thus, do these steps:
1. Make a small certificate authority of your own.
2. With it, sign a certificate for the three names.
3. Add the certificate of the authority (`ca.crt`) to the trusted roots
of the machine.
```sh
openssl req -x509 -newkey rsa:2048 -sha256 -days 3650 -nodes \
@@ -102,81 +111,88 @@ openssl x509 -req -in passport.csr -CA ca.crt -CAkey ca.key -CAcreateserial \
-days 3650 -sha256 -extfile san.txt -out passport.crt
```
The hosts file entries, with the BBS at 192.0.2.1:
The entries in the hosts file, with the BBS at 192.0.2.1:
```
192.0.2.1 messenger.hotmail.com nexus.passport.com login.passport.com login.live.com
```
Windows XP
speaks only TLS 1.0 with old ciphers (3DES, RC4); the Passport server
takes those as well as current ones. With a proxy doing TLS in front of
the BBS, set `http_address` instead and send the proxy's requests there.
Windows XP uses only TLS 1.0 with old ciphers (3DES, RC4). The Passport
server accepts those, and also current ciphers. If a proxy does TLS in
front of the BBS, set `http_address` in place of `https_address`, and
send the requests of the proxy there.
## Signing in
Every MSN user is a BBS user. They sign in with `name@domain` as the
e-mail address (a name with spaces may be typed with or without them,
`CarolAnn@msn.example.org`) and their BBS password. The domain part is not
checked, so a client that insists on `@hotmail.com` (MSN 1.0) works too.
Failed sign-ins count towards the throttle and the hack log, like any
other login, and the user's access level must allow chat. One account is
signed in on one MSN client at a time: signing in again signs the older
one out.
Each MSN user is a BBS user. The user signs in with `name@domain` as the
e-mail address and with the BBS password. You can type a name with
spaces with or without the spaces (`CarolAnn@msn.example.org`). The BBS
does not check the domain part. Thus, a client that must have
`@hotmail.com` (MSN 1.0) also operates. Failed sign-ins count towards
the throttle and the hack log, as all other logins do. The access level
of the user must permit chat. One account can be signed in on one MSN
client at a time. A new sign-in signs out the older one.
MSN Messenger 5.0 and later sign in by [Passport](#msn-messenger-50-to-75-passport),
which checks the password itself. MSN 1.0 to 4.7 send the password as an
MD5 digest, which the BBS's password
hashes can't check. So the BBS keeps each account's MSN digest too, made
whenever the password is known: when the account is made, when its
password is set, and at any login by password. An account from before
`[msn]` was set up has none yet: its user logs in once some other way
(telnet, SSH, IRC, AIM, the web) and can then sign in with MSN. The log
says so when that is why a sign-in failed. The digest is kept only while
`[msn]` is set up. MSN's challenge for an account is the same each time,
as it was on Microsoft's servers, so anyone who saw a sign-in on the wire
(or read the digest from the database) could sign in by MSN as that
user. The connection is not encrypted.
MSN Messenger 5.0 and later sign in by
[Passport](#msn-messenger-50-to-75-passport), which checks the password
itself. MSN 1.0 to 4.7 send the password as an MD5 digest. The password
hashes of the BBS cannot check this digest. Thus, the BBS also keeps the
MSN digest of each account. It makes it each time that it knows the
password: when the account is made, when the password is set, and at all
logins by password. An account from before the configuration of `[msn]`
has no digest yet. Its user must log in one time by a different method
(telnet, SSH, IRC, AIM, the web). Then the user can sign in with MSN. If
this is the cause of a failed sign-in, the log tells you.
The BBS keeps the digest only while `[msn]` is configured. The MSN
challenge for an account is the same each time, as it was on the servers
of Microsoft. Thus, a person who saw a sign-in on the wire (or read the
digest from the database) can sign in by MSN as that user. The
connection is not encrypted.
## Contacts
The contact list is the user's [friends list](Chat-and-Paging#friends),
the same list the BBS's chat, IRC and AIM show, with its groups (MSN
Messenger 4.6 and later show them). A contact is always a BBS user;
adding anyone else is refused. A friend added elsewhere comes to a
client that is on at once, and one added or removed on MSN is on or off
the list everywhere. Someone who adds an MSN user is on their reverse
list, so the client asks "X has added you to their contact list".
Groups made on MSN are kept with the friends in them: a group left
empty is gone at the next sign-in.
The contact list is the [friends list](Chat-and-Paging#friends) of the
user. It is the same list that the chat of the BBS, IRC and AIM show,
with its groups (MSN Messenger 4.6 and later show them). A contact is
always a BBS user. The BBS refuses all other contacts. If you add a
friend on a different route, a client that is on gets it immediately. If
you add or remove a contact on MSN, the change applies on all routes. If
a user adds an MSN user, that user is on the reverse list of the MSN
user. Thus, the client asks "X has added you to their contact list". The
BBS keeps groups made on MSN with the friends in them. If a group is
empty, it is removed at the next sign-in.
The block list is the user's [blocked list](Chat-and-Paging#blocking),
shared with the chat's `/block`: a blocked user's messages are refused
however they come, and the user appears offline to them. "Only people on
my Allow List can see my status" shows the user offline to those not on
their friends list.
The block list is the [blocked list](Chat-and-Paging#blocking) of the
user. The chat command `/block` uses the same list. The BBS refuses the
messages of a blocked user on all routes, and the user shows as offline
to the blocked user. "Only people on my Allow List can see my status"
shows the user as offline to the users who are not on the friends list.
A contact is online while they are on the BBS by any route: with the
status their MSN client set (busy, away, appearing offline...), or plain
online on any other route. Between MSN clients 5.0 and later, display
pictures and the personal message (MSN 7.0 and later) pass as they did.
A contact is online while the contact is on the BBS by any route. The
contact has the status that the MSN client of the contact set (busy,
away, appear offline...), or plain online on all other routes. Between
MSN clients 5.0 and later, display pictures and the personal message
(MSN 7.0 and later) go across as they did on the servers of Microsoft.
## Conversations
An IM to an MSN user opens a conversation on their client as usual. An
IM to a BBS user on another route puts them in the conversation at once:
what is said reaches them as a private message (a `PRIVMSG` on IRC, an
IM on AIM, a message line on a terminal), and what they send back comes
into it. A private message from someone not on MSN opens a conversation
with them on the client. Conversations of several MSN users work as they
did on Microsoft's servers; typing notices and invitations pass between
MSN clients, not to other routes.
An IM to an MSN user opens a conversation on the client, as usual. An IM
to a BBS user on a different route puts that user in the conversation
immediately. The text goes to that user as a private message (a
`PRIVMSG` on IRC, an IM on AIM, a message line on a terminal). The
answers of that user come into the conversation. A private message from
a user who is not on MSN opens a conversation with that user on the
client. Conversations of more than one MSN user operate as they did on
the servers of Microsoft. Typing notices and invitations go between MSN
clients, not to other routes.
Every line is [kept](Chat-and-Paging#private-messages). One to a user who
isn't on is kept for them, and the sender told so (once); they get it
when they next log in. Lines kept for an MSN user come when they sign in,
in a conversation from each sender, marked with when they were sent. The
BBS's notices (new mail, a page for the sysop) come from the `system`
name. Calling someone who is offline is refused, as on Microsoft's
servers: to leave a message for them, use their conversation while it is
open, or another route.
The BBS [keeps](Chat-and-Paging#private-messages) each line. If a user
is not on, the BBS keeps the line for the user, and tells the sender
(one time). The user gets it at the next login. Lines kept for an MSN
user come at the sign-in, in one conversation from each sender, with
the time that they were sent. The notices of the BBS (new mail, a page
for the sysop) come from the `system` name. The BBS refuses a call to a
user who is offline, as the servers of Microsoft did. To leave a message
for that user, use the conversation with the user while it is open, or
use a different route.
+129 -111
View File
@@ -1,6 +1,7 @@
News feeds, each caller's own weather, and stock quotes, under one item
of the main menu (**[N]**), as CompuServe, Prodigy and AOL had them. Each
part is on when its section is in the configuration.
The BBS gives news feeds, the local weather of each caller, and stock
quotes, under one item of the main menu (**[N]**), as CompuServe,
Prodigy and AOL did. Each part is enabled when its section is in the
configuration.
```
News, weather, quotes
@@ -8,7 +9,7 @@ News, weather, quotes
[Q] Stock quotes [B] Back to the main menu
```
Sysop menus reach them with the actions `news` (the menu above),
Sysop menus get to them with the actions `news` (the menu above),
`headlines`, `weather` and `quotes`.
## News feeds
@@ -19,16 +20,17 @@ contact = sysop@example.org
catalog = all
```
A feed's items are posted to a message area of their own, read-only (only
the sysop posts), made the first time the feed is read and listed under
its group. So the news is read wherever areas are: the terminals and
3270s, newsreaders (make the area a newsgroup with `bbs area newsgroup`),
QWK packets, the web forum, gopher and Gemini. **Headlines** lists the
news areas, each with its newest story.
The BBS posts the items of a feed to a read-only message area of their
own (only the sysop posts). The BBS makes the area the first time that it
reads the feed, and lists it under its group. Thus, callers can read the
news in all locations where they read areas: the terminals and 3270s,
newsreaders (make the area a newsgroup with `bbs area newsgroup`), QWK
packets, the web forum, gopher and Gemini. **Headlines** lists the news
areas, each with its newest story.
An item becomes a short message: its headline, its summary as plain text,
a link to the whole story, and where and when it is from. That is what
feeds are published for; the BBS does not fetch the stories themselves.
An item becomes a short message: its headline, its summary as plain
text, a link to the full story, and its source and time. Feeds are
published for this purpose. The BBS does not get the stories.
```
Subj: AI stocks climb after trillions wiped from market values
@@ -42,34 +44,36 @@ https://www.bbc.co.uk/news/articles/c35ynnpzdq51o
-- BBC News, Fri 6 Nov 2026 21:06 UTC
```
RSS 0.9x to 2.0, RSS 1.0 (RDF), Atom and JSON Feed are read, in any
character set. Each feed is read every `every` minutes (with a little
jitter, and less often after failures or when the site asks with
`Retry-After`), and asked only for what changed (`If-None-Match`,
`If-Modified-Since`). An item is posted once: its Message-ID is made from
the feed and the item's id, and remembered after the message is purged.
The first reading of a feed posts at most `max_items` of its newest.
The BBS reads RSS 0.9x to 2.0, RSS 1.0 (RDF), Atom and JSON Feed, in all
character sets. It reads each feed every `every` minutes. It adds a
small random variation, and reads less frequently after failures or
when the site asks with `Retry-After`. It asks only for changes
(`If-None-Match`, `If-Modified-Since`). The BBS posts an item one time
only. It makes the Message-ID from the feed and the id of the item, and
it remembers it after it purges the message. The first time that the BBS
reads a feed, it posts a maximum of `max_items` of the newest items.
`contact` is sent in the User-Agent. The SEC refuses readers without a way
to reach the person running them, and the National Weather Service asks
for one.
The BBS sends `contact` in the User-Agent. The SEC refuses readers that
do not give a method to contact the person who runs them. The National
Weather Service asks for a contact.
### The catalogue
`bbs feeds catalog` lists the feeds the BBS knows. `catalog =` takes `all`,
groups or names:
`bbs feeds catalog` lists the feeds that the BBS knows. `catalog =`
accepts `all`, groups or names:
| Group | Feeds |
|---|---|
| News | BBC World, NPR, AP News (by way of Google News: AP has no feeds of its own), The Guardian, Al Jazeera, CBC, Deutsche Welle, Global Voices |
| News | BBC World, NPR, AP News (through Google News: AP has no feeds of its own), The Guardian, Al Jazeera, CBC, Deutsche Welle, Global Voices |
| Business | BBC Business, NPR Business, SEC press releases, SEC 8-K filings (EDGAR) |
| Technology | BBC Technology, Ars Technica, The Register, Hacker News |
| Science | NASA, USGS earthquakes of magnitude 4.5 and more |
| Government | the Federal Register (significant documents), Congress.gov (most-viewed bills, bills presented to the President, House and Senate floor), the White House, National Weather Service news |
The US government's feeds are in the public domain. The outlets' are
theirs: the BBS shows what they publish in their feeds, with the link.
Reuters and AP stopped publishing feeds (2020, 2024).
The feeds of the US government are in the public domain. The feeds of
the outlets belong to the outlets. The BBS shows what they publish in
their feeds, with the link. Reuters and AP stopped their feeds (2020,
2024).
### Feeds of your own
@@ -83,18 +87,21 @@ every = 60
keep_days = 14
```
`title` is who the messages are from (the feed's own title if not said),
`area` the area (the section's name if not said), `keep_days` how long
messages are kept when the area is made (`bbs area keep` changes it after).
A section named as a catalogue feed changes it (`[feed nasa]` with
`area = Space`), and `enabled = no` leaves it out.
- `title` is the sender of the messages (the title of the feed if you do
not set it).
- `area` is the area (the name of the section if you do not set it).
- `keep_days` is the time that the BBS keeps messages when it makes the
area (`bbs area keep` changes it later).
`bbs feeds read [NAME...]` reads the feeds now, `bbs feeds list` shows
what is configured.
A section with the name of a catalogue feed changes that feed (for
example, `[feed nasa]` with `area = Space`). `enabled = no` removes it.
A news area that is a newsgroup is offered to news peers like any other:
leave feed newsgroups out of a peer's `groups` unless you mean to pass the
news on.
`bbs feeds read [NAME...]` reads the feeds now. `bbs feeds list` shows
the configured feeds.
The BBS offers a news area that is a newsgroup to news peers, as all
other newsgroups. Do not put feed newsgroups in the `groups` of a peer
unless you want to send the news to that peer.
## Your weather
@@ -107,34 +114,38 @@ quake_min = 2.5
alerts_at_login = yes
```
The first time, the caller says where they are: a US ZIP code, a town
(`Springfield, IL`, `Leeds, UK`, `Paris, France`, `Tokyo`), or a latitude
and longitude. Towns are looked up in Open-Meteo's gazetteer (GeoNames);
when there are several of that name, the caller chooses. ZIP codes are
the US Census Bureau's tabulation areas, built into the BBS. The place is
kept with the account.
The first time, the caller gives the location: a US ZIP code, a town
(`Springfield, IL`, `Leeds, UK`, `Paris, France`, `Tokyo`), or a
latitude and longitude. The BBS looks up towns in the gazetteer of
Open-Meteo (GeoNames). If there are some towns with that name, the
caller selects one. ZIP codes are the tabulation areas of the US Census
Bureau, which are part of the BBS. The BBS keeps the location with the
account.
The weather screen has, in order:
The weather screen has these parts, in this sequence:
- **Warnings, watches and advisories** in force at that point, from the
National Weather Service (US only), the most serious first, with what
to do.
- **The forecast**: the National Weather Service's seven days in the US;
elsewhere Open-Meteo's (the weather now, then seven days). Open-Meteo
is free for non-commercial use and its data is CC BY 4.0, so the screen
credits it; `international = no` leaves it out.
- **Earthquakes** of the past week within `quake_radius` km of
`quake_min` or more (and great ones, 6 and more, from four times as
far), from the USGS, worldwide. Those with a PAGER alert above green or
a tsunami flag are marked.
- **Warnings, watches and advisories** that apply at that point now,
from the National Weather Service (US only). The most serious come
first, with the instructions.
- **The forecast**: the seven days of the National Weather Service in
the US. In other countries, the forecast of Open-Meteo (the weather
now, then seven days). Open-Meteo is free for non-commercial use and
its data is CC BY 4.0. Thus, the screen gives its credit.
`international = no` removes it.
- **Earthquakes** of the past week within `quake_radius` km, of
`quake_min` or more (and great earthquakes, 6 and more, from four times
that distance), from the USGS, worldwide. The screen marks the
earthquakes with a PAGER alert above green or a tsunami flag.
Units are US (°F, mph) in the US and metric elsewhere; the caller can
change them. With `alerts_at_login`, a caller is told of Severe and
Extreme warnings where they are as they log in.
Units are US (°F, mph) in the US and metric in other countries. The
caller can change them. With `alerts_at_login`, the BBS tells a caller
about Severe and Extreme warnings at the location of the caller at the
login.
What is fetched is kept a while (the NWS's points a day, forecasts half an
hour, alerts five minutes, the earthquake list ten minutes, shared by all),
so callers in one town cost one request.
The BBS keeps the data that it gets for some time (the points of the NWS
for a day, forecasts for half an hour, alerts for five minutes, the
earthquake list for ten minutes, shared by all callers). Thus, callers in
one town cause only one request.
## Stock quotes
@@ -144,20 +155,23 @@ file = /var/lib/bbs/quotes.json.gz
default = SPY DIA QQQ AAPL MSFT
```
The quotes are IEX's (the Investors Exchange): its own trades and quotes,
not the whole market's, with IEX's credit on each screen. Every caller has
a list of symbols (`default` until they add or remove one); a symbol
chosen shows its last trade, open, high, low, close, extended-hours price,
bid and ask, and IEX volume (all the market's, from Alpaca's paid plan).
The quotes come from IEX (the Investors Exchange). They are the trades
and quotes of IEX only, not of the full market, with the credit of IEX
on each screen. Each caller has a list of symbols (`default` until the
caller adds or removes one). For a selected symbol, the screen shows its
last trade, open, high, low, close, extended-hours price, bid and ask,
and IEX volume (the volume of the full market comes from the paid plan
of Alpaca).
### The day before's prices, free (HIST)
IEX publishes each session's whole TOPS feed the next day, free. `bbs
quotes fetch` reads the latest session's file into `file`. The file is
some 16 GB, so it is read as it downloads and nothing of it is kept but
the quotes (a few hundred KB); at 60 MB/s it takes under five minutes. A
download cut off is taken up where it stopped. Run it each morning as an
event:
IEX publishes the full TOPS feed of each session on the next day, free
of charge. `bbs
quotes fetch` reads the file of the latest session into `file`. The file
is about 16 GB. Thus, the BBS reads it during the download, and keeps
only the quotes (some hundred KB). At 60 MB/s, it takes less than five
minutes. If a download stops, the BBS continues it from the point where
it stopped. Run it each morning as an event:
```
[event quotes]
@@ -166,8 +180,9 @@ at = 06:30
timeout = 3600
```
The change from the day before needs the day before's prices: the first
time, fetch the session before by its date, then the latest:
To calculate the change from the day before, the BBS must have the
prices of the day before. The first time, get the previous session by
its date, then the latest:
```
bbs quotes fetch 20261105
@@ -175,12 +190,12 @@ bbs quotes fetch
bbs quotes show AAPL SPY
```
`bbs quotes load FILE` reads a TOPS capture you have (pcap or pcapng,
gzipped or not), and the BBS reads the new file when it changes, with no
restart.
`bbs quotes load FILE` reads a TOPS capture that you have (pcap or
pcapng, with or without gzip). The BBS reads the new file when it
changes, with no restart.
IEX's terms for HIST data ask for its credit ("Data provided for free by
IEX"), which the screens show.
The terms of IEX for HIST data ask for its credit ("Data provided for
free by IEX"). The screens show it.
### Live (TOPS)
@@ -191,16 +206,17 @@ interface = eth1
delay = 15 minutes
```
A sysop who receives IEX's TOPS feed (its real-time feed, or its free
delayed one; both need a connection to IEX) can give its UDP address. The
BBS joins the multicast group and keeps the quotes as they come; `delay`
is told to callers. Without trades yet today, the screens show the file's.
A sysop who receives the TOPS feed of IEX (its real-time feed, or its
free delayed feed. The two must have a connection to IEX) can give its
UDP address. The BBS joins the multicast group and keeps the quotes when
they arrive. The BBS tells callers the `delay`. If there are no trades
yet today, the screens show the data from the file.
The feed is IEX-TP carrying TOPS 1.6 (DEEP's messages are read too:
trades, quotes, official prices, trading status, system events). Test
securities are left out; odd lots count toward volume but not the last
sale, high or low; trades outside regular hours are the extended-hours
price.
The feed is IEX-TP that carries TOPS 1.6 (the BBS also reads the
messages of DEEP: trades, quotes, official prices, trading status,
system events). The BBS ignores test securities. Odd lots count toward
volume, but not toward the last sale, high or low. Trades outside
regular hours are the extended-hours price.
### Live from Alpaca
@@ -212,30 +228,32 @@ alpaca_feed = iex
alpaca_symbols = 30
```
[Alpaca](https://alpaca.markets/data)'s market data needs no connection
to IEX: an account (a paper-trading one will do) gives a key and secret.
Its free plan (`alpaca_feed = iex`) has IEX's trades and quotes, live; a
paid one (`sip`) every US exchange's, and `delayed_sip` them 15 minutes
late.
The market data of [Alpaca](https://alpaca.markets/data) does not need a
connection to IEX. An account (a paper-trading account is sufficient)
gives a key and secret. Its free plan (`alpaca_feed = iex`) has the
trades and quotes of IEX, live. A paid plan (`sip`) has those of all US
exchanges. `delayed_sip` gives them 15 minutes late.
A symbol a caller looks at is fetched then (Alpaca's snapshot: the day so
far, and the day before's close for the change), and followed on Alpaca's
stream: the default symbols and those looked at most recently, up to
`alpaca_symbols` (the free plan allows 30 at a time). What is followed is
fetched again every five minutes; the rest when it is next looked at, if
a minute old. The quotes begin again with each session's first trade, so
nothing need run each morning. The session (before the open, regular
hours, after hours, closed) is by the clock: a weekday with no trades by
9:35 is taken for a holiday.
When a caller looks at a symbol, the BBS gets it at that time (the
snapshot of Alpaca: the day until now, and the close of the day before
for the change). Then the BBS follows it on the stream of Alpaca. It
follows the default symbols and the symbols that callers looked at most
recently, up to `alpaca_symbols` (the free plan permits 30 at a time).
The BBS gets the followed symbols again every five minutes. It gets the
other symbols when a caller next looks at them, if they are one minute
old. The quotes start again with the first trade of each session. Thus,
nothing must run each morning. The BBS finds the session (before the
open, regular hours, after hours, closed) from the clock. If a weekday
has no trades by 9:35, the BBS thinks that it is a holiday.
`bbs quotes alpaca AAPL MSFT` tries the keys: the snapshots, then the
stream for a few seconds. Keep the configuration file 0640, as the keys
are in it.
stream for some seconds. Keep the configuration file at 0640, because
the keys are in it.
Alpaca's terms are for personal, non-commercial use: to make its data
available to others through your own application, they ask for 30 days'
written notice first, and its written consent to republish it. Tell them
of the BBS before you turn this on. `listen` and `alpaca_key` are one or
the other.
The terms of Alpaca are for personal, non-commercial use. To make its
data available to others through your own application, they ask for 30
days of written notice first, and their written consent to republish it.
Tell them about the BBS before you enable this function. Use `listen`
or `alpaca_key`, not the two together.
**See also:** [Message areas](Message-Areas), [Newsgroups and NNTP](Newsgroups-and-NNTP), [Sysop tools](Sysop-Tools)