Slice 0 (Fable-Fixes): IClobClient-Seam fuer testbare CLOB-Interaktionen
Verhaltensneutrale Testinfrastruktur als Grundlage fuer Slice 1/2: - IClobClient-Interface (Core) ueber die von Leiter/Reconciliation genutzten CLOB-Methoden (Place/CancelConflicting/GetOpenOrders/CancelOrder). - PolymarketClobClient implementiert IClobClient (Signaturen unveraendert). - DI-Seam im Modul: IClobClient -> PolymarketClobClient-Singleton. - SellLadderService haengt jetzt an IClobClient (statische CalculateExactOrderAmounts bleibt am konkreten Typ). - InternalsVisibleTo(PolyTrader.Tests) + FakeClobClient-Test-Double. Verifikation: Build 0 Fehler, 207 Tests gruen, --smoke-ui Container-Aufbau ok. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
bb929fa23a
commit
ad8f7b0d03
@@ -100,7 +100,7 @@ namespace PolyTraderSharp.Services
|
||||
public byte SignatureType { get; set; }
|
||||
}
|
||||
|
||||
public class PolymarketClobClient
|
||||
public class PolymarketClobClient : IClobClient
|
||||
{
|
||||
private readonly HttpClient _httpClient;
|
||||
private readonly TerminalLogger _logger;
|
||||
|
||||
Reference in New Issue
Block a user