Archived
feat!: a generic core, and Kalshi through it
The orchestrator, the connection loop and the book thread's shell move to src/core/, generic over an Exchange and its loss rule (ADR 0004). Polymarket runs through it unchanged. Kalshi joins: a signed handshake (KALSHI_KEY_ID_FILE, KALSHI_PRIVATE_KEY_FILE), a reconnect on a skipped sequence number, first one wins by clock and rank, and its market listing with markets tracked from three hours before they open. Breaking: the exchange is now the first argument, `engineering-challenge <polymarket|kalshi|kalshi-demo> [OUTPUT]`.
This commit is contained in:
33 files changed
+8150
-1846
No files matched your search
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"markets": [
|
||||
{
|
||||
"ticker": "KXNCAAWBTOTAL-26NOV11QUINSJU-106",
|
||||
"status": "active",
|
||||
"created_time": "2026-11-11T19:12:59.634595Z",
|
||||
"open_time": "2026-11-11T19:14:00Z",
|
||||
"close_time": "2026-11-13T19:00:00Z"
|
||||
},
|
||||
{
|
||||
"ticker": "KXNCAAWBTOTAL-26NOV11USAFAU-160",
|
||||
"status": "active",
|
||||
"created_time": "2026-11-11T19:12:39.6174Z",
|
||||
"open_time": "2026-11-11T19:14:00Z",
|
||||
"close_time": "2026-11-13T18:00:00Z"
|
||||
},
|
||||
{
|
||||
"ticker": "KXESOCCERGAME-26NOV111710EDERBONY-TIE",
|
||||
"status": "active",
|
||||
"created_time": "2026-11-11T19:11:51.921073Z",
|
||||
"open_time": "2026-11-11T19:12:00Z",
|
||||
"close_time": "2026-11-25T22:10:00Z"
|
||||
}
|
||||
],
|
||||
"cursor": "CgwI9_vS1wYQ6OqZtwMSJUtYRVNPQ0NFUkdBTUUtMjZOT1YxMTE3MTBFREVSQk9OWS1USUU"
|
||||
}
|
||||
Reference in new issue
Block a user