mirror of
https://github.com/jaxperro/winning-wallet-finder.git
synced 2026-07-27 15:57:47 +00:00
paper FAK parity: no ask inside the protected band -> honest miss, not a pretend fill
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -336,8 +336,9 @@ class LedgerPaperExecutor(PaperExecutor):
|
||||
|
||||
def buy(self, token_id, shares, price, meta):
|
||||
r = super().buy(token_id, shares, price, meta)
|
||||
self.fills.append({"side": "BUY", "token": token_id,
|
||||
"shares": r["filled_shares"], "price": r["price"]})
|
||||
if r["ok"]: # a paper FAK no-match is not a fill
|
||||
self.fills.append({"side": "BUY", "token": token_id,
|
||||
"shares": r["filled_shares"], "price": r["price"]})
|
||||
return r
|
||||
|
||||
def sell(self, token_id, shares, price, meta):
|
||||
|
||||
Reference in New Issue
Block a user